Bug 27002 - X crashes just about everytime I launch ksnapshot
Summary: X crashes just about everytime I launch ksnapshot
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: 7.5 (2009.10)
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-10 15:23 UTC by kc8hfi
Modified: 2010-09-17 20:25 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
output of dmesg (51.38 KB, text/plain)
2010-03-11 13:17 UTC, kc8hfi
no flags Details
xorg.0.log file (51.83 KB, text/plain)
2010-03-12 05:04 UTC, kc8hfi
no flags Details
xorg.0.log.old file (51.92 KB, text/plain)
2010-03-12 05:05 UTC, kc8hfi
no flags Details
dmesg output (60.91 KB, text/plain)
2010-03-12 14:17 UTC, kc8hfi
no flags Details
kdm.log file (3.49 KB, text/plain)
2010-03-17 06:42 UTC, kc8hfi
no flags Details
gdb debugging output (8.84 KB, text/plain)
2010-03-19 11:26 UTC, kc8hfi
no flags Details

Description kc8hfi 2010-03-10 15:23:21 UTC
Just about every time I launch ksnapshot, X will crash and return back to the login screen.  
ATI Technologies Inc RV730XT [Radeon HD 4670]
radeonhd driver version 1.3.0
kernel version 2.6.32.9-70
kms is enabled
Comment 1 Julien Cristau 2010-03-11 09:29:15 UTC
radeonhd doesn't work with kms.

if you filed this against the wrong component and are using radeon instead, please include the full X config and log as well as dmesg.
Comment 2 kc8hfi 2010-03-11 13:17:48 UTC
Created attachment 33967 [details]
output of dmesg
Comment 3 kc8hfi 2010-03-11 13:22:56 UTC
For the X config,  i'm using the autodetected magic and there isn't an xorg.conf file.  I can make one if I need to.
Comment 4 Michel Dänzer 2010-03-12 00:49:56 UTC
The X log file is more important than the config file anyway.
Comment 5 kc8hfi 2010-03-12 05:04:24 UTC
Created attachment 33994 [details]
xorg.0.log file

This is the xorg.0.log file.
Comment 6 kc8hfi 2010-03-12 05:05:01 UTC
Created attachment 33995 [details]
xorg.0.log.old file

Just in case this file may be of use.
Comment 7 Michel Dänzer 2010-03-12 06:51:34 UTC
Xorg.0.log.old shows an event queue overflow, but unfortunately there's no backtrace. Usually EQ overflows are just a symptom of a GPU lockup, but if the X server comes up again after the crash, that seems unlikely (but if it was the case, there should be something about it in dmesg, please attach the output of that). So I wonder if the queue could just be overflowing while ksnapshot is taking a screenshot... are you moving the mouse when it happens?
Comment 8 kc8hfi 2010-03-12 14:17:34 UTC
Created attachment 34011 [details]
dmesg output

I must have been moving the mouse.  I started ksnapshot several times and did not move the mouse and it didn't crash.  Then I started ksnapshot and moved the mouse and it took me back to the login screen.  So I reckon the event queue is filling up or something?

I forgot to mention that I am running dual 22 inch monitors, if that is useful.
Comment 9 Pauli 2010-03-15 02:12:52 UTC
[gkx]dm.log might be helpful too. Could you attach one where crash happens?
Comment 10 kc8hfi 2010-03-17 06:42:13 UTC
Created attachment 34143 [details]
kdm.log file

I apologize for the long delay in getting the kdm.log file.  x does crash if you move the mouse while ksnapshot is loading.  If you leave the mouse alone and wait till the initial capture is done, everything is ok.  

I noticed "[mi] EQ overflowing. the server is probably stuck in an infinite loop" inside the log file.
Comment 11 Michel Dänzer 2010-03-17 09:38:05 UTC
So it looks like the server abort is spurious, the event queue just overflows temporarily due to a request taking a long time to process. I think it would be better if the events were just dropped on the floor in that case. Peter, what do you think?
Comment 12 Peter Hutterer 2010-03-17 23:37:00 UTC
(In reply to comment #11)
> So it looks like the server abort is spurious, the event queue just overflows
> temporarily due to a request taking a long time to process. I think it would be
> better if the events were just dropped on the floor in that case. Peter, what
> do you think?

actually, this is what mieqEnqueue does when it happens, it simply stops appending events to the queue and returns early (see mi/mieq.c). This shouldn't crash the server though, I think there might be something else going on but I'd need to see an actual backtrace. Not sure why it is missing in the log file.

Comment 13 kc8hfi 2010-03-18 05:18:22 UTC
If there is something I can do to get a backtrace, I can do that because I can make it crash any time I need to.  
Comment 14 Peter Hutterer 2010-03-18 19:06:08 UTC
(In reply to comment #13)
> If there is something I can do to get a backtrace, I can do that because I can
> make it crash any time I need to.  
> 

do you have a second computer available? if so, you could ssh & gdb in and get a full backtrace when it happens.
See http://wiki.x.org/wiki/Development/Documentation/ServerDebugging
a simple "bt full" in gdb when it happens would already be quite helpful I guess.
Comment 15 kc8hfi 2010-03-19 11:26:02 UTC
Created attachment 34249 [details]
gdb debugging output

This is the debugging output from gdb.
Comment 16 Peter Hutterer 2010-03-21 23:27:17 UTC
(In reply to comment #15)
> Created an attachment (id=34249) [details]
> gdb debugging output
> 
> This is the debugging output from gdb.

It actually looks like it's seqfaulting _inside_ xorg_backtrace(). The mieqEnqueue() line indicated here (178) is the one where it prints the backtrace but then should continue otherwise. the backtrace generation fails however. weird.
Comment 17 Michel Dänzer 2010-03-31 01:25:44 UTC
(In reply to comment #16)
> It actually looks like it's seqfaulting _inside_ xorg_backtrace().

Indeed; given this and that the traces from it tend to be not too useful anyway, maybe the xorg_backtrace() calls should be disabled at least by default?

Submitter, if you disable the xorg_backtrace() call, does the server continue working properly under the same circumstances?
Comment 18 kc8hfi 2010-04-01 09:15:13 UTC
I'm looking up on how to disable the xorg_backtrace and then I'll try it.
Comment 19 kc8hfi 2010-04-27 06:49:23 UTC
It's still crashing, and I never did figure out how to disable xorg_backtrace.
Comment 20 Michel Dänzer 2010-04-27 09:50:20 UTC
(In reply to comment #19)
> It's still crashing, and I never did figure out how to disable xorg_backtrace.

Probably easiest to remove/disable the call in mi/mieq.c.
Comment 21 kc8hfi 2010-06-16 19:09:21 UTC
I upgraded to xorg-x11-server version 1.8.0-12 and this problem went away.
Comment 22 Jesse Adkins 2010-09-17 20:25:21 UTC
(In reply to comment #21)
> I upgraded to xorg-x11-server version 1.8.0-12 and this problem went away.

Closing this as fixed. Reopen if it shows up again.


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.