NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsrc/56993: xauth(1) broken



The following reply was made to PR xsrc/56993; it has been noted by GNATS.

From: Martin Husemann <martin%duskware.de@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: xsrc/56993: xauth(1) broken
Date: Sat, 3 Sep 2022 08:26:33 +0200

 Gdb says:
 
 (gdb) bt -full
 #0  0x0000f89b75c2c328 in _sys___nanosleep50 () from /usr/lib/libc.so.12
 No symbol table info available.
 #1  0x0000f89b75c9bc2c in _sleep (seconds=seconds@entry=2) at /work/src/lib/libc/gen/sleep.c:53
         rqt = {tv_sec = 2, tv_nsec = 0}
         rmt = {tv_sec = 1, tv_nsec = 966034275}
 #2  0x0000f89b7628109c in XauLockAuth (file_name=file_name@entry=0xf89b76275000 "/home/martin/.Xauthority", retries=<optimized out>, retries@entry=10, 
     timeout=timeout@entry=2, dead=600) at /work/xsrc/external/mit/libXau/dist/AuLock.c:104
         creat_name = "/home/martin/.Xauthority-c\000u\233\370\000\000\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 15 times>, "\001", '\000' <repeats 23 times>...
         link_name = "/home/martin/.Xauthority-l\000v\233\370\000\000PZ\205\377\377\377\000\000\000\000\000\000\000\000\000\000K\231\300u\233\370\000\000 \\\205\377\377\377\000\000\001", '\000' <repeats 15 times>, "\240[\205\377\377\377\000\000\000\000\000\000\000\000\000\000\200w)v\233\370\000\000\250[\205\377\377\377\000\000\250[\205\377\377\377\000\000\304S\352\357\377\377\000\000\000\244)v\233\370\000\000\000\000\000\000\000\000\000\000O\rN\000\000\000\000\000\200\\\205\377\377\377\000\000\001", '\000' <repeats 16 times>, "\\\205\377\377\377\000\000\000\000\000\000\000\000\000\000`r)v\233\370\000\000"...
         statb = {st_dev = 0, st_mode = 1, st_ino = 0, st_nlink = 1, st_uid = 0, st_gid = 0, st_rdev = 1, st_atim = {tv_sec = 0, tv_nsec = 1}, st_mtim = {tv_sec = 0, 
             tv_nsec = 1}, st_ctim = {tv_sec = 0, tv_nsec = 1}, st_birthtim = {tv_sec = 0, tv_nsec = 1}, st_size = 0, st_blocks = 1, st_blksize = 0, st_flags = 0, st_gen = 1, 
           st_spare = {0, 0}}
         now = <optimized out>
         creat_fd = <optimized out>
 #3  0x00000000004e7150 in auth_initialize (authfilename=0xf89b76275000 "/home/martin/.Xauthority") at /work/xsrc/external/mit/xauth/dist/process.c:753
         n = <optimized out>
         head = 0x4fd2e0 <defcmds>
         tail = 0x4e96f0 <main+512>
         authfp = <optimized out>
         exists = <optimized out>
 #4  0x00000000004e9644 in main (argc=<optimized out>, argv=<optimized out>) at /work/xsrc/external/mit/xauth/dist/xauth.c:167
         i = <optimized out>
         sourcename = <optimized out>
         arglist = <optimized out>
         nargs = <optimized out>
         status = <optimized out>
 
 .... and the st_uid = 0 was the hint I needed.
 
 Ooops, operator mishap, nothing to see here...
 
 Martin
 


Home | Main Index | Thread Index | Old Index