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

Bug#465406: xserver-xorg: some xkb options crash the server



On Wed, Feb 13, 2008 at 06:13:11PM +0100, Lionel Elie Mamane wrote:

> Hmm... How do I beat the race condition of X dying before I can attach
> to it? Can I simply run "startx" from a gdb in an SSH session?

Running "xinit" or "/usr/bin/X" from a gdb in a SSH session doesn't
seem to give sensible results:

root@capsaicin:~ 0 # gdb /usr/bin/X
GNU gdb 6.7.1-debian


This GDB was configured as "x86_64-linux-gnu"...
(no debugging symbols found)
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (main) pending.
Starting program: /usr/bin/X 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

Program received signal SIGSEGV, Segmentation fault.
Cannot remove breakpoints because program is no longer writable.
It might be running in another process.
Further execution is probably impossible.
0x0000000000468690 in ?? ()
(gdb) bt
#0  0x0000000000468690 in ?? ()
#1  0x0000000000000000 in ?? ()


root@capsaicin:~ 0 # gdb /usr/bin/xinit 
GNU gdb 6.7.1-debian
(no debugging symbols found)
Using host libthread_db library "/usr/lib/debug/libthread_db.so.1".
(gdb) start
Function "main" not defined.
Make breakpoint pending on future shared library load? (y or [n]) y
Breakpoint 1 (main) pending.
Starting program: /usr/bin/xinit 
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)

X: warning; process set to priority -1 instead of requested priority 0

Program received signal SIGUSR1, User defined signal 1.
0x00002b2bb7be555a in *__GI___sigsuspend (set=0x7ffff331c910) at ../sysdeps/unix/sysv/linux/sigsuspend.c:63
63	../sysdeps/unix/sysv/linux/sigsuspend.c: No such file or directory.
	in ../sysdeps/unix/sysv/linux/sigsuspend.c
(gdb) 
Backtrace:
0: X(xf86SigHandler+0x6a) [0x4830da]
1: /usr/lib/debug/libc.so.6 [0x2ba57cd14090]
2: X(InitOutput+0x540) [0x468690]
3: X(main+0x29f) [0x4369af]
4: /usr/lib/debug/libc.so.6(__libc_start_main+0xf4) [0x2ba57cd001c4]
5: X(FontFileCompleteXLFD+0x279) [0x435ec9]

Fatal server error:
Caught signal 11.  Server aborting


(gdb) bt
#0  0x00002b2bb7be555a in *__GI___sigsuspend (set=0x7ffff331c910) at ../sysdeps/unix/sysv/linux/sigsuspend.c:63
#1  0x00000000004020fb in ?? ()
#2  0x00002b2bb7bd11c4 in __libc_start_main (main=0x401bd0 <fflush@plt+2056>, argc=1, ubp_av=0x7ffff331cb28, 
    init=<value optimized out>, fini=<value optimized out>, rtld_fini=<value optimized out>, stack_end=0x7ffff331cb18)
    at libc-start.c:222
#3  0x0000000000401409 in ?? ()
#4  0x00007ffff331cb18 in ?? ()
#5  0x0000000000000000 in ?? ()

-- 
Lionel



Reply to: