Hi, I got a little further in investigating the problem. What I did:
--boot, stop kdm, login on tty1, 'startx'; --ssh into the system, attach gdb to the x process; --from this session you can only logout and return to tty1. On logging out I got hit by the bug again (blank screen, no reaction to keys nor mouse), see attached gdb-output.log. Even though I added NoTrapSignals to the xorg.conf, Ctrl+C did not help at this point (it worked when I tested it before). So far this are very similar. The difference is that I was able to ssh into the system a second time, and I found x using about 100% cpu, see attached top-output.log. In addition I found that another x process (pid 3043) was using my cpu than the one I attached gdb to earlier (pid 2653): $ ps -A |grep X 2653 tty7 00:00:06 Xorg 3043 tty7 06:37:35 Xorg Trying to attach gdb again resulted in error messages, as well as everything using strace (regardless of process or user): $ strace -p 3043 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted $ strace -p 2653 attach: ptrace(PTRACE_ATTACH, ...): Operation not permitted # gdb -p 3043 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". Attaching to process 3043 ptrace: Operation not permitted. (gdb) quit # gdb -p 2653 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu". Attaching to process 2653 ptrace: Operation not permitted. (gdb) quit Even trying to kill the x processes was not really possible: # ps -A |grep X 2653 tty7 00:00:06 Xorg 3043 tty7 08:45:12 Xorg # kill 2653 # ps -A |grep X 2653 tty7 00:00:06 Xorg 3043 tty7 08:45:18 Xorg # kill -9 2653 # ps -A |grep X 2653 ? 00:00:06 Xorg <defunct> 3043 ? 08:45:22 Xorg # kill 3043 # ps -A |grep X 2653 ? 00:00:06 Xorg <defunct> 3043 ? 08:45:22 Xorg # kill -9 3043 # ps -A |grep X 2653 ? 00:00:06 Xorg <defunct> 3043 ? 08:45:22 Xorg <defunct> Rebooting was successful, though. What is the best to do in case I get my system in this bug-situation again? How do I figure out in which loop or function it spins? What is my problem with those strace error messages (after the reboot the used strace command worked)? Thanks in advance, Sten
brasilia:/home/mheinzes# ps -A |grep X 2653 tty7 00:00:02 Xorg brasilia:/home/mheinzes# gdb /usr/bin/Xorg 2653 GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Attaching to program: /usr/bin/Xorg, process 2653 Reading symbols from /lib/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Reading symbols from /usr/lib/libXfont.so.1...done. Loaded symbols for /usr/lib/libXfont.so.1 Reading symbols from /usr/lib/libXau.so.6...done. Loaded symbols for /usr/lib/libXau.so.6 Reading symbols from /usr/lib/libfontenc.so.1...done. Loaded symbols for /usr/lib/libfontenc.so.1 Reading symbols from /usr/lib/libpixman-1.so.0...done. Loaded symbols for /usr/lib/libpixman-1.so.0 Reading symbols from /usr/lib/libhal.so.1...done. Loaded symbols for /usr/lib/libhal.so.1 Reading symbols from /usr/lib/libdbus-1.so.3...done. Loaded symbols for /usr/lib/libdbus-1.so.3 Reading symbols from /usr/lib/libXdmcp.so.6...done. Loaded symbols for /usr/lib/libXdmcp.so.6 Reading symbols from /lib/i686/cmov/libm.so.6...done. Loaded symbols for /lib/i686/cmov/libm.so.6 Reading symbols from /lib/i686/cmov/librt.so.1...done. Loaded symbols for /lib/i686/cmov/librt.so.1 Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Reading symbols from /lib/i686/cmov/libc.so.6...done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/libfreetype.so.6...done. Loaded symbols for /usr/lib/libfreetype.so.6 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/i686/cmov/libpthread.so.0...done. [Thread debugging using libthread_db enabled] [New Thread 0xb7dc5a30 (LWP 2653)] Loaded symbols for /lib/i686/cmov/libpthread.so.0 Reading symbols from /usr/lib/xorg/modules/libpcidata.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libpcidata.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libpcidata.so Reading symbols from /usr/lib/xorg/modules/extensions/libextmod.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libextmod.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions//libextmod.so Reading symbols from /usr/lib/xorg/modules/extensions/libdbe.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libdbe.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions//libdbe.so Reading symbols from /usr/lib/xorg/modules/extensions/libglx.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libglx.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions//libglx.so Reading symbols from /usr/lib/xorg/modules/fonts/libfreetype.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/fonts/libfreetype.so...done. done. Loaded symbols for /usr/lib/xorg/modules//fonts/libfreetype.so Reading symbols from /usr/lib/xorg/modules/extensions/librecord.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/librecord.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions//librecord.so Reading symbols from /usr/lib/xorg/modules/extensions/libdri.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/extensions/libdri.so...done. done. Loaded symbols for /usr/lib/xorg/modules/extensions//libdri.so Reading symbols from /usr/lib/libdrm.so.2...done. Loaded symbols for /usr/lib/libdrm.so.2 Reading symbols from /usr/lib/xorg/modules/drivers/intel_drv.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/intel_drv.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//intel_drv.so Reading symbols from /usr/lib/xorg/modules/input/mouse_drv.so...done. Loaded symbols for /usr/lib/xorg/modules/input//mouse_drv.so Reading symbols from /usr/lib/xorg/modules/input/kbd_drv.so...done. Loaded symbols for /usr/lib/xorg/modules/input//kbd_drv.so Reading symbols from /usr/lib/xorg/modules/libint10.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libint10.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libint10.so Reading symbols from /usr/lib/xorg/modules/libvbe.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libvbe.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libvbe.so Reading symbols from /usr/lib/xorg/modules/libvgahw.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libvgahw.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libvgahw.so Reading symbols from /usr/lib/xorg/modules/drivers/sil164.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/sil164.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//sil164.so Reading symbols from /usr/lib/xorg/modules/drivers/ch7xxx.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/ch7xxx.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//ch7xxx.so Reading symbols from /usr/lib/xorg/modules/drivers/ivch.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/ivch.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//ivch.so Reading symbols from /usr/lib/xorg/modules/drivers/tfp410.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/tfp410.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//tfp410.so Reading symbols from /usr/lib/xorg/modules/drivers/ch7017.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/drivers/ch7017.so...done. done. Loaded symbols for /usr/lib/xorg/modules/drivers//ch7017.so Reading symbols from /usr/lib/xorg/modules/libfb.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libfb.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libfb.so Reading symbols from /usr/lib/xorg/modules/libexa.so...Reading symbols from /usr/lib/debug/usr/lib/xorg/modules/libexa.so...done. done. Loaded symbols for /usr/lib/xorg/modules//libexa.so Reading symbols from /usr/lib/dri/i915_dri.so...done. Loaded symbols for /usr/lib/dri/i915_dri.so Reading symbols from /usr/lib/libexpat.so.1...done. Loaded symbols for /usr/lib/libexpat.so.1 0xb80ce424 in __kernel_vsyscall () (gdb) cont Continuing. Program received signal SIGPIPE, Broken pipe. [Switching to Thread 0xb7dc5a30 (LWP 2653)] 0xb80ce424 in __kernel_vsyscall () (gdb) cont Continuing. Program received signal SIGPIPE, Broken pipe. 0xb80ce424 in __kernel_vsyscall () (gdb) cont Continuing. Program received signal SIGHUP, Hangup. 0xb80ce424 in __kernel_vsyscall () (gdb) cont Continuing. Program received signal SIGCONT, Continued. AutoResetServer (sig=1) at ../../os/utils.c:483 483 ../../os/utils.c: No such file or directory. in ../../os/utils.c (gdb) cont Continuing. ^C^C^C^C^C^C
top - 02:01:14 up 6:59, 2 users, load average: 1.03, 1.02, 1.00 Tasks: 71 total, 3 running, 67 sleeping, 1 stopped, 0 zombie Cpu(s): 0.0%us,100.0%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 1286724k total, 375556k used, 911168k free, 12360k buffers Swap: 1341388k total, 0k used, 1341388k free, 242296k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 3043 root 20 0 200m 6576 164 R 99.1 0.5 412:50.52 Xorg 2358 root 20 0 1752 624 428 S 0.3 0.0 1:06.50 hdapsd 2573 root 20 0 22060 2896 1908 S 0.3 0.2 0:05.32 NetworkManager 1 root 20 0 2100 688 588 S 0.0 0.1 0:01.56 init 2 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kthreadd 3 root 15 -5 0 0 0 S 0.0 0.0 0:00.20 ksoftirqd/0 4 root RT -5 0 0 0 S 0.0 0.0 0:00.18 watchdog/0 5 root 15 -5 0 0 0 S 0.0 0.0 0:00.04 events/0 6 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 36 root 15 -5 0 0 0 S 0.0 0.0 0:00.02 kblockd/0 38 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 39 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify 119 root 15 -5 0 0 0 S 0.0 0.0 0:00.02 kseriod 150 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 151 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush 152 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kswapd0 192 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 611 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd 612 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 702 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kmmcd 835 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 916 root 16 -4 2292 800 476 S 0.0 0.1 0:00.38 udevd 1175 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ktpacpid 1349 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 pccardd 1352 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kpsmoused 1358 root 15 -5 0 0 0 S 0.0 0.0 0:00.40 ipw2100/0 1630 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 irda_sir_wq 1881 root 15 -5 0 0 0 S 0.0 0.0 0:00.22 kondemand/0 1922 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 1923 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 1924 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kjournald 1994 daemon 20 0 1892 552 448 S 0.0 0.0 0:01.84 portmap 2218 root 20 0 1816 596 492 S 0.0 0.0 0:00.06 syslogd 2227 root 20 0 1764 416 344 S 0.0 0.0 0:00.00 klogd 2298 root 20 0 1764 660 540 S 0.0 0.1 0:00.00 acpid 2308 messageb 20 0 2744 1128 748 S 0.0 0.1 0:12.14 dbus-daemon 2326 root 20 0 5316 1000 656 S 0.0 0.1 0:00.00 sshd 2336 root 20 0 10200 972 368 S 0.0 0.1 0:00.00 citserver 2337 citadel 20 0 21256 4828 2764 S 0.0 0.4 0:04.01 citserver 2341 root 20 0 1980 484 400 S 0.0 0.0 0:00.36 gpm 2510 root 20 0 3540 804 624 S 0.0 0.1 0:00.00 famd 2518 root 20 0 2072 892 752 R 0.0 0.1 0:00.68 dhcdbd