Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-base/xorg-server segmentation fault during suspend
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Tue Jul 10, 2012 2:30 am    Post subject: x11-base/xorg-server segmentation fault during suspend Reply with quote

After updating my laptop (thinkpad T420s), x11-base/xorg-server often segfaults during suspend to ram. The kdm log contains the following:

Code:

# tail -n 50  /var/log/kdm.log
kdmgreet(6497)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server"

kdmgreet(6497)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned
kdmgreet: Fatal IO error: client killed
Server terminated successfully (0). Closing log file.
klauncher(2244) kdemain: No DBUS session-bus found. Check if you have started the DBUS server.
kdeinit4: Communication error with launcher. Exiting!
kdmgreet(2238)/kdecore (K*TimeZone*): KSystemTimeZones: ktimezoned initialize() D-Bus call failed:  "Not connected to D-Bus server"

kdmgreet(2238)/kdecore (K*TimeZone*): No time zone information obtained from ktimezoned

Backtrace:
0: /usr/bin/X (xorg_backtrace+0x36) [0x56dbb6]
1: /usr/bin/X (0x400000+0x1716a9) [0x5716a9]
2: /lib64/libpthread.so.0 (0x7f7803f11000+0x10420) [0x7f7803f21420]
3: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7f77ff9e3000+0x2a88) [0x7f77ff9e5a88]
4: /usr/bin/X (BasicComputeAcceleration+0x7) [0x453367]
5: /usr/bin/X (0x400000+0x53c1e) [0x453c1e]
6: /usr/bin/X (0x400000+0x4ab92) [0x44ab92]
7: /usr/bin/X (GetPointerEvents+0xc7) [0x44bd97]
8: /usr/bin/X (QueuePointerEvents+0x1d) [0x44c21d]
9: /usr/bin/X (xf86PostMotionEvent+0xde) [0x48279e]
10: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7f77ff9e3000+0x44f8) [0x7f77ff9e74f8]
11: /usr/lib64/xorg/modules/input/synaptics_drv.so (0x7f77ff9e3000+0x649a) [0x7f77ff9e949a]
12: /usr/bin/X (0x400000+0x72517) [0x472517]
13: /usr/bin/X (0x400000+0x97cd3) [0x497cd3]
14: /lib64/libpthread.so.0 (0x7f7803f11000+0x10420) [0x7f7803f21420]
15: /lib64/libc.so.6 (__select+0x13) [0x7f7802ef9363]
16: /usr/bin/X (WaitForSomething+0x19f) [0x56b18f]
17: /usr/bin/X (0x400000+0x35e92) [0x435e92]
18: /usr/bin/X (0x400000+0x24eca) [0x424eca]
19: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f7802e452ad]
20: /usr/bin/X (0x400000+0x24a69) [0x424a69]

Segmentation fault at address 0x58

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


The relevant packages installed are:

Code:

x11-base/xorg-server-1.12.2
x11-drivers/xf86-video-intel-2.19.0  USE="dri sna (-glamor)"
x11-drivers/xf86-input-synaptics-1.6.2
x11-drivers/xf86-input-evdev-2.7.0
sys-kernel/gentoo-sources-3.3.8


Also I'm using KDE 4.8.4. Does anyone know what could be causing this or has any suggestion how to fix it? So far I have tried revdep-rebuild, re-emerging xorg-server, xf86-video-intel, downgrading the kernel to 3.2.12, disabling "sna" for xf86-video-intel. Nothing helped.

Thanks,

Martin
Back to top
View user's profile Send private message
thrantastic
n00b
n00b


Joined: 23 Jul 2012
Posts: 1

PostPosted: Mon Jul 23, 2012 7:00 pm    Post subject: x11-base/xorg-server segmentation fault during suspend Reply with quote

I have come across the same problem, but unfortunately can't pin it down any more than you can. When trying to suspend, X crashes, KDM restarts it, and a new graphical login prompt appears. Any action I've tried at that point has been unsuccessful: logging in, switching to virtual console, invoking any of the magic SysRq key sequences. Nothing happens. The only way to recover is to hold the power button to force the power off. It seems to me that most of the system processes get frozen successfully in the suspend sequence, and so the machine is stuck in a half-suspended state with no way to recover.

This started after an across-the-board upgrade and happens about once a week or roughly once in every 25 suspends. My computer is a Thinkpad T420 running up-to-date stable with KDE 4.8.4, and so all of the relevant software is at the same version levels (without "sna" USE-flag). The backtrace from kdm.log similarly seems to center around input devices:

Code:
Backtrace:
0: /usr/bin/X (xorg_backtrace+0x36) [0x56cf96]
1: /usr/bin/X (0x400000+0x170a99) [0x570a99]
2: /lib64/libpthread.so.0 (0x7f3c7f6bc000+0x103e0) [0x7f3c7f6cc3e0]
3: /usr/bin/X (XIChangeDeviceProperty+0x278) [0x50b5c8]
4: /usr/bin/X (DisableDevice+0x20c) [0x42f13c]
5: /usr/bin/X (xf86Wakeup+0x463) [0x472b63]
6: /usr/bin/X (WakeupHandler+0x5a) [0x43a06a]
7: /usr/bin/X (WaitForSomething+0x1bc) [0x56a58c]
8: /usr/bin/X (0x400000+0x35de2) [0x435de2]
9: /usr/bin/X (0x400000+0x24eca) [0x424eca]
10: /lib64/libc.so.6 (__libc_start_main+0xfd) [0x7f3c7e5f32ad]
11: /usr/bin/X (0x400000+0x24a69) [0x424a69]

Segmentation fault at address 0x11

Fatal server error:
Caught signal 11 (Segmentation fault). Server aborting


Maybe this is T420[s] specific? Any help would be appreciated.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 551
Location: Scotland

PostPosted: Mon Jul 23, 2012 7:45 pm    Post subject: Reply with quote

Hello, does pulling back the xf86-video-intel driver and Xorg-server resolve this?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Mon Jul 23, 2012 7:49 pm    Post subject: Reply with quote

This does indeed seem to be the same problem. I tired several things, such as disabling "sna" for the intel driver, and down-grading the intel driver. Nothing helped. At the end I down-graded to x11-base/xorg-server-1.11.4-r1 as a temporary solution.
Back to top
View user's profile Send private message
Thistled
Guru
Guru


Joined: 06 Jan 2011
Posts: 551
Location: Scotland

PostPosted: Mon Jul 23, 2012 8:11 pm    Post subject: Reply with quote

The thing is, xorg-server-1.12.2 is stable, so I don't know if maybe you should post a bug for this or not.
Any devs out there have any ideas on this?
If xorg-server-1.12.2 is stable then is it still possible to have a bug?
_________________
Whatever you do, do it properly!
Back to top
View user's profile Send private message
yarikoptic
n00b
n00b


Joined: 25 Jul 2012
Posts: 4

PostPosted: Wed Jul 25, 2012 5:24 pm    Post subject: confirming -- the same on Debian Reply with quote

FWIW -- ran into the same issue on a Debian system: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=681796

so far have not found a resolution
Back to top
View user's profile Send private message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Wed Jul 25, 2012 5:53 pm    Post subject: Reply with quote

I filed a bug report: https://bugs.gentoo.org/show_bug.cgi?id=428084

Please chime-in if you have additional info.

PS: yarikoptic, good to see you here, I really like neurodebian. I once started a neuro-gentoo repository but so far it only contains 3 ebuilds :?.

Best,

Martin
Back to top
View user's profile Send private message
yarikoptic
n00b
n00b


Joined: 25 Jul 2012
Posts: 4

PostPosted: Wed Jul 25, 2012 7:41 pm    Post subject: Reply with quote

and I filed it upstream (hopefully correctly): https://bugs.freedesktop.org/show_bug.cgi?id=52496

neuro-gentoo: wow -- either the world is indeed small or there is way too many "neuroscientists" ;)
what are your interests in neuro- world? may be you would like to join NeuroDebian effort... after all they are all just linuxes (more or less ;) )

btw -- to troubleshoot this beast upon occurrence, I have created a little gdb-python script:

Code:

$> cat troubleshoot_segfault_xorg.py
#!/usr/bin/gdb -x
import gdb

def on_stop(p):
  gdb.execute("i threads")
  try:
    gdb.execute("echo I: some variables, dev, dev->properties.handlers, handler\n")
    gdb.execute("p dev")
    gdb.execute("p dev->properties.handlers")
    gdb.execute("p handler")
  except:
    pass
  try:
    gdb.execute("echo I: bt\n")
    gdb.execute("bt")
    gdb.execute("echo I: bt full\n")
    gdb.execute("bt full")
  finally:
    # and just quit now
    gdb.execute("c")
    gdb.execute("q")

gdb.execute("handle SIGUSR1 nostop")
gdb.execute("handle SIGPIPE nostop")
gdb.events.stop.connect(on_stop)


which I attach to the running X while in the screen with the logging... at least it should dump extended information whenever things go nuts...
Back to top
View user's profile Send private message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Thu Jul 26, 2012 2:40 am    Post subject: Reply with quote

yarikoptic wrote:
and I filed it upstream (hopefully correctly): https://bugs.freedesktop.org/show_bug.cgi?id=52496

neuro-gentoo: wow -- either the world is indeed small or there is way too many "neuroscientists" ;)
what are your interests in neuro- world? may be you would like to join NeuroDebian effort... after all they are all just linuxes (more or less ;) )


Probably both, small and too many "neuroscientists" ;). I should contribute to NeuroDebian.. I work with MEG and it is actually on my to do list to create packages for mne/mne-python.

yarikoptic wrote:

btw -- to troubleshoot this beast upon occurrence, I have created a little gdb-python script:


Neat. How do you attach it to the X server process?
Back to top
View user's profile Send private message
yarikoptic
n00b
n00b


Joined: 25 Jul 2012
Posts: 4

PostPosted: Thu Jul 26, 2012 2:50 am    Post subject: Reply with quote

Mr. M wrote:
yarikoptic wrote:
and I filed it upstream (hopefully correctly): https://bugs.freedesktop.org/show_bug.cgi?id=52496

neuro-gentoo: wow -- either the world is indeed small or there is way too many "neuroscientists" ;)
what are your interests in neuro- world? may be you would like to join NeuroDebian effort... after all they are all just linuxes (more or less ;) )


Probably both, small and too many "neuroscientists" ;). I should contribute to NeuroDebian.. I work with MEG and it is actually on my to do list to create packages for mne/mne-python.


do you mean Alexander's open https://github.com/mne-tools/mne-python and the non-yet-open-sourced MNE?

Quote:

yarikoptic wrote:

btw -- to troubleshoot this beast upon occurrence, I have created a little gdb-python script:


Neat. How do you attach it to the X server process?


Code:

./troubleshoot_segfault_xorg.py -p `pgrep X`


;-) such script is shebang-ed by gdb -p, so all cmdline args would just be passed to gdb
Back to top
View user's profile Send private message
Mr. M
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 89
Location: USA

PostPosted: Thu Jul 26, 2012 3:05 am    Post subject: Reply with quote

yarikoptic wrote:


do you mean Alexander's open https://github.com/mne-tools/mne-python and the non-yet-open-sourced MNE?


Yes :-). The python package is easy but for MNE it would be good to have a package compiled for Debian, even if it is (still) closed source.
Back to top
View user's profile Send private message
yarikoptic
n00b
n00b


Joined: 25 Jul 2012
Posts: 4

PostPosted: Thu Jul 26, 2012 3:17 am    Post subject: Reply with quote

Mr. M wrote:
yarikoptic wrote:


do you mean Alexander's open https://github.com/mne-tools/mne-python and the non-yet-open-sourced MNE?


Yes :-). The python package is easy


yeap -- I thought that I even started it but now realized that I only complained, even sent few commits but never got around to package properly, partially because of having no MNE handy I guess ;-)

Quote:
but for MNE it would be good to have a package compiled for Debian, even if it is (still) closed source.


oh well -- usually we do not do such evil to ourselves -- it is unmaintainable and ... stinks ;)
Back to top
View user's profile Send private message
didi156
n00b
n00b


Joined: 05 Feb 2004
Posts: 47
Location: Vienna, Austria

PostPosted: Sat Aug 04, 2012 4:45 am    Post subject: Reply with quote

I think we have 2 distinct issues here.
Same have the segfault in BasicComputeAcceleration, others in XIGetDeviceProperty
In my case it's the first one, see: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-input-synaptics/+bug/1032612 or on freedesktop.org: https://bugs.freedesktop.org/show_bug.cgi?id=50953
For the second one (as already mentioned in this thread): https://bugs.freedesktop.org/show_bug.cgi?id=52496

If anybody finds a solution or at least a workaround to this, please report. It's very annoying.

Btw. does anybody here know how to best behave as user in such a situation? Should I only file a bug with Ubuntu (or whatever distro I'm running) or directly at freedesktop.org or both?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum