Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464332 - x11-base/xorg-server-1.13.1 - Restarts randomly
Summary: x11-base/xorg-server-1.13.1 - Restarts randomly
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-03 11:35 UTC by Jiri Horky
Modified: 2015-02-22 22:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge.info,5.86 KB, text/plain)
2013-04-03 11:35 UTC, Jiri Horky
Details
lsusb -vvv output (lsusb,43.12 KB, text/plain)
2013-04-03 11:36 UTC, Jiri Horky
Details
Xorg.log.old (Xorg.0.log.old,57.70 KB, text/plain)
2013-04-03 11:37 UTC, Jiri Horky
Details
list of package (qlist -vI) (list.of.packages,35.34 KB, text/plain)
2013-04-03 11:38 UTC, Jiri Horky
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Horky 2013-04-03 11:35:01 UTC
Created attachment 344196 [details]
emerge --info

Hi,

since world update on 30.3.2013 with 300+ updated packages including udev-200, and whole KDE environment v4.10.1 but NOT including xorg-server, I am experiencing regular X restarts that conclude in kdm login screen being displayed.

It seems to me that it is somehow related to an usb device reconnection that kernel outputs:

tail -n 50000 /var/log/messages | grep -B3 unexpectedly
Apr  3 12:23:21 HotT410s polkitd[1948]: Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session6 (system bus name :1.124, object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr  3 12:23:21 HotT410s su[4526]: pam_unix(su:session): session closed for user root
Apr  3 12:23:21 HotT410s kdm[2452]: X server for display :0 terminated unexpectedly
--
Apr  3 12:51:38 HotT410s kernel: [66799.522443] usb 1-1.5.2.2: unlink qh8-0601/ffff8801e44ea480 start 7 [1/2 us]
Apr  3 12:51:38 HotT410s polkitd[1948]: Unregistered Authentication Agent for unix-session:/org/freedesktop/ConsoleKit/Session7 (system bus name :1.148, object path /org/kde/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr  3 12:51:38 HotT410s kdm[2452]: X server for display :0 terminated unexpectedly
--
Apr  3 12:53:00 HotT410s dhcpcd[2352]: wlp3s0: leased 195.113.219.162 for 1800 seconds
Apr  3 13:00:20 HotT410s kernel: [67320.598866] usb 1-1.5.2.2: unlink qh8-0601/ffff8801e44ea480 start 7 [1/2 us]
Apr  3 13:00:20 HotT410s kdm[2452]: X server for display :0 terminated unexpectedly
--
Apr  3 13:23:00 HotT410s dhcpcd[2352]: wlp3s0: leased 195.113.219.162 for 1800 seconds
Apr  3 13:23:17 HotT410s kernel: [68693.940288] usb 1-1.5.2.2: unlink qh8-0601/ffff8801e44ea480 start 7 [1/2 us]
Apr  3 13:23:17 HotT410s kdm[2452]: X server for display :0 terminated unexpectedly

I am not sure what usb device the "1-1.5.2.2" id stands for and how to check it. The message "unlink qh8-0601/ffff8801e44ea480 start 7 [1/2 us]" is nothing new in messages, it was present almost daily even before the world update, but never causing xorg server restart.

I would be really glad if you could point me to right direction since I am not sure where to start digging or which package to try downgrade/upgrade. I include some logs that might be helpful.

Thanks
Jiri Horky
Comment 1 Jiri Horky 2013-04-03 11:36:23 UTC
Created attachment 344198 [details]
lsusb -vvv output
Comment 2 Jiri Horky 2013-04-03 11:37:26 UTC
Created attachment 344200 [details]
Xorg.log.old
Comment 3 Jiri Horky 2013-04-03 11:38:21 UTC
Created attachment 344202 [details]
list of package (qlist -vI)
Comment 4 Tom Wijsman (TomWij) (RETIRED) gentoo-dev 2013-04-03 14:48:31 UTC
See http://www.gentoo.org/proj/en/qa/backtraces.xml and http://www.x.org/wiki/Development/Documentation/ServerDebugging for instructions on how to debug X with gdb, please note that you will need to have Xorg and the libraries listed in the backtrace with -ggdb as instructed in the first link in order to obtain a meaningful backtrace.

As for the USB device, I think you can figure out which one that is by running `dmesg | grep usb` if the first lines are still in your log, otherwise you will need to increase the log_buf_len kernel parameter.

So, in order to proceed here we will need a backtrace for X.
Comment 5 Jiri Horky 2013-04-04 08:04:37 UTC
OK, so the device seems to be a Logitech mouse. Here is the backtrace when it happens:

Program received signal SIGBUS, Bus error.
[Switching to Thread 0x7f6e8e1f3700 (LWP 3887)]
0x00007f6e8e499d11 in emit_span_boxes_solid () from /usr/lib64/xorg/modules/drivers/intel_drv.so
(gdb) bt full
#0 0x00007f6e8e499d11 in emit_span_boxes_solid () from /usr/lib64/xorg/modules/drivers/intel_drv.so
No symbol table info available.
#1 0x00007f6e8e4a0b3c in gen5_render_composite_spans_boxes__thread ()
from /usr/lib64/xorg/modules/drivers/intel_drv.so
No symbol table info available.
#2 0x00007f6e8e4642d4 in span_thread () from /usr/lib64/xorg/modules/drivers/intel_drv.so
No symbol table info available.
#3 0x00007f6e8e4756d7 in __run__ () from /usr/lib64/xorg/modules/drivers/intel_drv.so
No symbol table info available.
#4 0x00007f6e909e9d96 in start_thread (arg=0x7f6e8e1f3700) at pthread_create.c:305
pd = 0x7f6e8e1f3700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140112807540480, -4223854298169953073, 140112849487008, 
140112807541184, 140112862912512, 4096, 4304533989176292559, 4304592249866073295}, 
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, 
canceltype = 0}}}
not_first_call = <optimized out>
robust = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#5 0x00007f6e8f74046d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
No locals.



It starts to drive me crazy as it restarts every second hour. Last time it happened, I almost had this update written...

Thanks
Jiri
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2013-04-04 12:54:11 UTC
So you have modern userland (unstable xf86-video-intel) with old kernel. This combination is usually not working well.

If the issue persists after upgrading to latest ~arch kernel, best open a bug report upstream at https://bugs.freedesktop.org/ and include your stack trace there.

The USB issues are not related to the X server crash.
Comment 7 Jiri Horky 2013-04-07 17:33:03 UTC
Hi,
you are right, I completely forgot that I have an unstable version of intel drivers (yes, I know it is not a good idea to list a package in .keywords without a version :). Thank you for pointing that out. Going back to stable, the problem is gone.
My goal is to run stable version of everything if it is really stable so I will stick with this setup. 
One more thing: the usb problem with the mouse was actually the trigger that caused the X restart (SIGBUS) so I think it is a bit related at least.

Regards
Jiri Horky
Comment 8 Matt Turner gentoo-dev 2015-02-22 22:00:08 UTC
Hopefully fixed long ago. If not please file a bug upstream.