Bug 87433

Summary: X crashes randomly at logout using radeonhd driver
Product: xorg Reporter: heavymetal
Component: Driver/RadeonAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg log with backtrace after crash on logout
none
dmesg output
none
gdb trace after Xfce logout
none
gdb trace after KDE logout none

Description heavymetal 2014-12-18 09:05:23 UTC
Created attachment 110976 [details]
xorg log with backtrace after crash on logout

I'm using Xorg with radeonhd driver on Gentoo x86_64, using KDM as a display manager. When I logout of an Xfce/KDE session, sometimes all goes well, sometimes Xorg just crashes and switches to an empty text console (blinking cursor only), and sometimes the monitor switches to standby mode.

Sometimes I'm able to switch to a text console (with the monitor in standby or not), login as root and restart Xorg successfully, but sometimes the only way out is using the sysrq keys to sync and shutdown somewhat properly.

Most of the times I'm not getting a useful Xorg log, as it ends with the line "(EE) Backtrace:", with no further info following.

However, I randomly managed to get a stacktrace (see attachment). I compiled the affected libraries with debug symbols, however the trace didn't seem to get resolved properly. Hope it helps anyway?

Tried different combinations of kernel, Xorg, mesa, and radeon driver, none seems to work.

Current combination (Gentoo package versions):
- gentoo-sources-3.17.4
- xorg-server-1.15.0
- xf86-video-ati-7.5.0
- radeon-ucode-20140823
- glamor-0.6.0
- mesa-10.3.5
Comment 1 Alex Deucher 2014-12-18 14:26:10 UTC
Can you get a proper backtrace with gdb with debugging symbols?

http://www.x.org/wiki/Development/Documentation/ServerDebugging/
Comment 2 Alex Deucher 2014-12-18 14:26:27 UTC
Please also attach your dmesg output.
Comment 3 heavymetal 2014-12-20 09:59:05 UTC
Sorry for the incomplete backtrace, I missed an option in the Gentoo package system.

I'll attach two similar gdb backtraces, one after logging out from an Xfce session, which resulted in a blinking text cursor in Xorg's current console, and one after logging out of a KDE session, which resulted in the screen going into standby.

After The Xfce logout, I was able to switch to another text console, login as root and restart X.
After the KDE logout, none of the text consoles were available, I couldn't even login "blindly" to restart X. However, restarting X from the remote PC via ssh worked like a charm.
Comment 4 heavymetal 2014-12-20 09:59:38 UTC
Created attachment 111075 [details]
dmesg output
Comment 5 heavymetal 2014-12-20 10:00:30 UTC
Created attachment 111076 [details]
gdb trace after Xfce logout
Comment 6 heavymetal 2014-12-20 10:00:51 UTC
Created attachment 111077 [details]
gdb trace after KDE logout
Comment 7 Michel Dänzer 2014-12-24 07:20:31 UTC
I suggest you configure your login manager (kdm?) to restart the X server after logging out, that should avoid problems like this.
Comment 8 heavymetal 2015-01-05 19:07:47 UTC
Thanks, setting TerminateServer=true in the [X-:0-Core] section of kdmrc config file as a workaround does the trick.
Comment 9 Martin Peres 2019-11-19 07:49:18 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/driver/xf86-video-ati/issues/121.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.