Comment 8 for bug 192088

Revision history for this message
In , Axel Pospischil (apos) wrote :

Thanks Hong and Micheal for your replies and tips.
I am new to X debugging, so it took me a little while ...

Hong, unfortunatly X freezes the whole system, it is NOT possible to kill the server with Crtl-Alt-Backspace. I did this when testing X on the warm booted machine with ltrace/strace.

- linux-image-generic Version: 2.6.24.8.8
- xserver-xorg-core Version: 2:1.4.1~git20080131-1ubuntu2
- xserver-xorg-video-intel Version: 2:2.2.0.90-2ubuntu2
- NO framebuffer is loaded, no vga=... boot options
- system boots without (!) bootsplash
- Option "ModeDebug" "yes" in the Device section of xorg.conf

-------------------------------------
Here's what I did on the hardware and software mentioned above:

1. Removed power plug and battery out of the machine for a few seconds (or leaving the machine for half an hour powered off). The notebook has a relatively new mainboard battery.
Booted into runlevel 5 (gdm disabled).
Ssh'd into the machine as root.

2. Via remote: # strace Xorg > strace_cold.log

RESULT:
X freezes. The resulting trace file is EMPTY. So I attached what I could catch from the remote shell in strace_cold-remoteshell.log.
Rebooted (!) the machine. Saved /var/log/... files as attachments.

------------------------------------
Now I tried something else according to https://wiki.ubuntu.com/DebuggingXorg.

# apt-get install xserver-xorg-core-dbg xserver-xorg-video-intel-dbg

Added the following to xorg.conf
Section "ServerFlags"
        Option "NoTrapSignals" "true"
EndSection

# sudo modprobe drm
# sudo echo 1 | sudo tee /sys/module/drm/parameters/debug
# ulimit -c unlimited
# sudo gdb /usr/bin/Xorg
# (gdb) run -keeptty -dumbSched

kern.log only shows one new line before freeze:
  Feb 19 14:11:18 ibmr31 kernel: [ 61.457528] [drm] Initialized drm 1.1.0 20060810

RESULT:
X tries to start but freezes the machine.
No core dump in /etc/X11. I attach the catched gdb remote session.
Rebooted the machine and attached /var/log/Xorg.0.log,messages,kern.log

------------------------------------
For today my time exeeded - sorry.

Could you tell me how to enable coredumps in Xorg in this case? Or probably how to define a breakpoint?

Greets
Axel