FS#42987 - [xorg-server] X crashes when unplugging USB

Attached to Project: Arch Linux
Opened by Tom Davis (tdavis) - Tuesday, 02 December 2014, 13:49 GMT
Last edited by Jan de Groot (JGC) - Thursday, 11 June 2015, 11:14 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Under 3.17 (Xorg 1.16.2), Xorg reliably crashes whenever I unplug a USB device from my laptop. Here is the log from around the time of a crash:


[ 85470.826] (II) config/udev: removing device HID 05f3:0007
[ 85470.827] (II) evdev: HID 05f3:0007: Close
[ 85470.827] (II) UnloadModule: "evdev"
[ 85470.827] (II) systemd-logind: releasing fd for 13:78
[ 85471.327] (EE) systemd-logind: failed to release device: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ 85471.328] (II) config/udev: removing device HID 05f3:0007
[ 85471.328] (II) evdev: HID 05f3:0007: Close
[ 85471.328] (II) UnloadModule: "evdev"
[ 85471.328] (II) systemd-logind: releasing fd for 13:79
[ 85471.828] (EE) systemd-logind: failed to release device: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
[ 85472.094] (EE)
[ 85472.094] (EE) Backtrace:
[ 85472.095] (EE) 0: /usr/bin/Xorg.bin (xorg_backtrace+0x56) [0x593d36]
[ 85472.095] (EE) 1: /usr/bin/Xorg.bin (0x400000+0x197e89) [0x597e89]
[ 85472.095] (EE) 2: /usr/lib/libc.so.6 (0x7f02258da000+0x33b20) [0x7f022590db20]
[ 85472.095] (EE) 3: /usr/lib/libc.so.6 (0x7f02258da000+0x9073a) [0x7f022596a73a]
[ 85472.095] (EE) 4: /usr/bin/Xorg.bin (0x400000+0xa15b8) [0x4a15b8]
[ 85472.095] (EE) 5: /usr/lib/libdbus-1.so.3 (dbus_connection_dispatch+0x3f1) [0x7f02273845d1]
[ 85472.095] (EE) 6: /usr/lib/libdbus-1.so.3 (0x7f0227374000+0x10825) [0x7f0227384825]
[ 85472.095] (EE) 7: /usr/bin/Xorg.bin (0x400000+0x9aeb1) [0x49aeb1]
[ 85472.095] (EE) 8: /usr/bin/Xorg.bin (WakeupHandler+0x6b) [0x43c38b]
[ 85472.095] (EE) 9: /usr/bin/Xorg.bin (WaitForSomething+0x1c7) [0x591167]
[ 85472.095] (EE) 10: /usr/bin/Xorg.bin (0x400000+0x374c1) [0x4374c1]
[ 85472.095] (EE) 11: /usr/bin/Xorg.bin (0x400000+0x3b846) [0x43b846]
[ 85472.095] (EE) 12: /usr/lib/libc.so.6 (__libc_start_main+0xf0) [0x7f02258fa040]
[ 85472.095] (EE) 13: /usr/bin/Xorg.bin (0x400000+0x25d0e) [0x425d0e]
[ 85472.095] (EE)
[ 85472.095] (EE) Segmentation fault at address 0x0
[ 85472.095] (EE)
Fatal server error:
[ 85472.095] (EE) Caught signal 11 (Segmentation fault). Server aborting
[ 85472.095] (EE)
[ 85472.095] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 85472.095] (EE) Please also check the log file at "/home/tom/.local/share/xorg/Xorg.0.log" for additional information.
[ 85472.095] (EE)
[ 85472.095] (II) AIGLX: Suspending AIGLX clients for VT switch
[ 85472.441] (EE) Server terminated with error (1). Closing log file.


Any ideas? This is pretty irritating!
This task depends upon

Closed by  Jan de Groot (JGC)
Thursday, 11 June 2015, 11:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  1.17.1-7.
Comment by Jan de Groot (JGC) - Thursday, 11 December 2014, 22:55 GMT
Does this still happen with dbus 1.8.12-1 installed?
Comment by Tom Davis (tdavis) - Wednesday, 18 March 2015, 14:41 GMT
Yes, this is still happening, currently with dbus 1.8.16-2

Sorry for the rather belated reply, I actually temporarily switched from Arch because of this as I was spending a lot of time restarting X. But I missed it, so here we are again ;)
Comment by Ernesto Zorrivel (zorrivel) - Saturday, 25 April 2015, 18:21 GMT
I get the exact same error but with a bluetooth keyboard. It's perfectly reproducible. Strange it only started around two weeks ago. Please let me know if you need any more information.
Comment by Liberty (helloworld1) - Tuesday, 05 May 2015, 17:54 GMT
I have exactly the same issue.
Kernel 4.0.1-1-ARCH
dbug 1.8.16-2
xorg-server 1.17.1-5

Related bug:
https://bugs.freedesktop.org/show_bug.cgi?id=89898
Comment by Tom Davis (tdavis) - Tuesday, 05 May 2015, 18:31 GMT
Yep, I've seen the monitor issue too. If I unplug my DisplayPort monitor, X crashes 100% of the time. Basically, removing anything plugged into the laptop causes X to crash and often times results in a failed suspend attempt that halts the entire machine.

Loading...