Bug 121903

Summary: Strange KDE lockup with system reboot on shutdown
Product: [openSUSE] SUSE Linux 10.1 Reporter: Michael Stather <kontakt>
Component: KDEAssignee: Stefan Dirsch <sndirsch>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: eich, kde-maintainers, mt
Version: Alpha 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: kdm.log
xorg.0.log
xorg.1.log
xorg.99.log
messages log
xsession-errors
xsession-errors
the REAL xsession-errors
xorg.0.log
xorg.1.log
xsession-errors
xorg.99.log
xorg.0.log.old

Description Michael Stather 2005-10-09 23:12:53 UTC
I´ve seen a very strange bug. When I want to exit KDE it often locks up after
closinf kdesktop and kicker (only the mouse cursor is left on the screen). If I
kill X with CTRL+ALT+BACK it won´t restart, e.g. I´m in the console (where
usually KDM would restart). If I press CTRL-ALT-DEL there to reboot, when it
comes to "shutting down KDM" the system either hangs completely or just restarts
with no further messages.
I´ve no idea which logs are relevant for that or what the cause for this problem
could be. I´m using a TNT2 M64 graphics card with the "nv" driver. My system is
an Athlon 64 3200+ (32 bit linux installed).
Comment 1 Stephan Kulow 2005-10-10 08:19:23 UTC
hmm, pretty complex. If you have that stuck X cursor: please tar up 
~/.xession-errors, /var/log/kdm.log /var/log/Xorg*.log /var/log/messages 
 
we should concentrate on that one first. I somehow suspect your kernel oopses 
and leaves the system inconsistent from what you describe. 
Comment 2 Michael Stather 2005-10-10 18:19:34 UTC
Should I tar up the logs while KDE/KDM is still hangine, or can I kill the X
server and then tar up the logs?
Comment 3 Michael Stather 2005-10-16 23:19:05 UTC
Files attached.
Comment 4 Michael Stather 2005-10-16 23:19:45 UTC
Created attachment 54215 [details]
kdm.log
Comment 5 Michael Stather 2005-10-16 23:20:35 UTC
Created attachment 54216 [details]
xorg.0.log
Comment 6 Michael Stather 2005-10-16 23:20:53 UTC
Created attachment 54217 [details]
xorg.1.log
Comment 7 Michael Stather 2005-10-16 23:21:05 UTC
Created attachment 54218 [details]
xorg.99.log
Comment 8 Michael Stather 2005-10-16 23:23:14 UTC
Created attachment 54219 [details]
messages log
Comment 9 Michael Stather 2005-10-16 23:31:38 UTC
Created attachment 54220 [details]
xsession-errors
Comment 10 Michael Stather 2005-10-16 23:39:31 UTC
Created attachment 54221 [details]
xsession-errors
Comment 11 Michael Stather 2005-10-17 00:16:25 UTC
Created attachment 54222 [details]
the REAL xsession-errors
Comment 12 Michael Stather 2005-10-17 00:17:01 UTC
Please use the last xsession-errors, I submitted the wrong one 2 times :(
Comment 13 Stephan Kulow 2005-10-17 08:18:58 UTC
The only thing that looks halfway interesting is this piece from your messages (#8 - all others are just pointing out your X server stoped, not KDE):

Oct 16 23:46:05 r098088 su: (to root) michael on /dev/pts/2
Oct 16 23:46:16 r098088 kernel: st: Version 20050501, fixed bufsize 32768, s/g segs 256
Oct 16 23:47:33 r098088 syslog-ng[4401]: SIGHUP received, restarting syslog-ng
Oct 16 23:47:34 r098088 syslog-ng[4401]: new configuration initialized
Oct 16 23:48:59 r098088 syslog-ng[4401]: Changing permissions on special file /dev/xconsole
Oct 16 23:48:59 r098088 syslog-ng[4401]: Changing permissions on special file /dev/tty10
Oct 16 23:48:59 r098088 kdm[5399]: X server for display :0 terminated unexpectedly

So the X server crashed the very moment, syslog-ng restarted (and set some permissions). Did you do that syslog-ng restart on purpose? Can you trigger something using that method?

P.S. bugzilla is dumb, please help it in selecting the "this is a text file" option when creating attachments.
Comment 14 Stefan Dirsch 2005-10-17 08:30:36 UTC
First of all uninstall the nvidia driver when you want to use the nv driver.

-->   nvidia-installer --uninstall

If the problem still occurs attach the new Xorg.0.log and .xsession-errors.
Comment 15 Michael Stather 2005-10-17 21:30:12 UTC
I don´t have a nvidia driver any more on my system, I uninstalled it before I copied the logs.
The X server doesn´t crash, it lock up (I see only the cursor) and when I press CTRL+ALT+BACK KDM doesn´t respawn, I get the console. This is when I copied the logfiles.
Comment 16 Stefan Dirsch 2005-10-17 21:36:05 UTC
Of course you have it still installed

[...]
(II) LoadModule: "glx"
(II) Loading /usr/X11R6/lib/modules/extensions/libglx.so
(II) Module glx: vendor="NVIDIA Corporation"
	compiled for 4.0.2, module version = 1.0.7174
	Module class: XFree86 Server Extension
	ABI class: XFree86 Server Extension, version 0.1
(II) Loading extension GLX
[...]
(EE) Failed to initialize GLX extension (NVIDIA X driver not found)
Comment 17 Michael Stather 2005-10-17 21:52:46 UTC
I uninstalled it using the installer and when I run it it says that no driver was installed.
I´ll remove the "glx" module from startup and see if the bug reappears.
Comment 18 Michael Stather 2005-10-17 21:56:52 UTC
I reinstalled the ATI driver and the warning is gone
Comment 19 Stefan Dirsch 2005-10-17 22:06:23 UTC
ATI driver? You use a nvidia board! Attach the new logfile, please.
Comment 20 Michael Stather 2005-10-17 23:42:04 UTC
I switched from a nVidia card to an ATI card!
The bug happened again and so I attach the new logs.
Comment 21 Michael Stather 2005-10-17 23:42:34 UTC
Created attachment 54462 [details]
xorg.0.log
Comment 22 Michael Stather 2005-10-17 23:42:53 UTC
Created attachment 54463 [details]
xorg.1.log
Comment 23 Michael Stather 2005-10-17 23:43:09 UTC
Created attachment 54464 [details]
xsession-errors
Comment 24 Michael Stather 2005-10-17 23:43:32 UTC
Created attachment 54465 [details]
xorg.99.log
Comment 25 Stefan Dirsch 2005-10-18 05:16:32 UTC
Would you please try the radeon driver first? I probably will fail in trying to fix ATI "fglrx" driver bugs ...
Comment 26 Egbert Eich 2005-10-18 10:03:58 UTC
There is no indication of any crash in the log file robably because the server got restarted again.
Please attach Xorg.0.log.old.
Comment 27 Michael Stather 2005-10-18 16:29:35 UTC
Created attachment 54610 [details]
xorg.0.log.old
Comment 28 Michael Stather 2005-10-18 16:31:22 UTC
This occurs with both nvidia drivers, ATI proprietary and open-source drivers.
Comment 29 Stefan Dirsch 2005-10-18 16:38:40 UTC
According to this logfile the Xserver did not crash ...
Comment 30 Michael Stather 2005-10-18 16:42:09 UTC
The X server doesn´t crash, it locks up (I see only the cursor) and when I
press CTRL+ALT+BACK KDM doesn´t respawn, I get the console. This is when I
copied the logfiles.

I already posted this above, if I stated somewhere before thet the server crashed then sorry for that.
Comment 31 Stefan Dirsch 2005-10-20 21:06:36 UTC
Please try again with Alpha2. We switched to X.Org CVS for Alpha2. It doesn't make much sense to investigate X.Org 6.8.2 issues, when these might already fixed with X.Org CVS.
Comment 32 Stefan Dirsch 2005-11-10 15:46:17 UTC
No feedback. Please reopen if the problem persists. Thanks.
Comment 33 Michael Stather 2005-11-10 23:12:23 UTC
I can´t install Alpha2 on any of my systems, the installed system isn´t bootable so I can´t test this further.
Comment 34 Egbert Eich 2005-11-24 11:43:59 UTC
Michael:
> The X server doesn´t crash, it locks up (I see only the cursor) and when I
> press CTRL+ALT+BACK KDM doesn´t respawn, I get the console. This is when I
> copied the logfiles.

Does 'lock up' mean, that the mouse cursor doesn't move when you move the mouse? Generally when kdm tells the xserver to shut down it is conceivable that the server hangs someplace. But since you can 'zap' it it means that the server is still servicing the main loop so that's not really conceivable.
It's strange however that kdm doesn't attempt to start another Xserver. It should try 3 times before it decides to give up.
Comment 35 Michael Stather 2005-11-29 15:26:32 UTC
Beta2 didn´t work for me at all, so I´ve to test beta3 in the next days. Then I´ll see if the bug is fixed in Xorg CVS
Comment 36 Stefan Dirsch 2006-01-02 16:11:45 UTC
Any news on this one? 10.1 Alpha4 is available since Dec 15 2005.
Comment 37 Michael Stather 2006-01-03 22:15:40 UTC
I don´t have luck with your alphas *g
Alpha4 is unusable as Alpha3 was, at least on my system. I already filed a bug report for this.
Comment 38 Stefan Dirsch 2006-01-03 22:21:39 UTC
That's unfortunate. Anyway, as long as I can't get the appropriate feedback I can't work on this bugreport. I assume this one now as FIXED. Feel free to reopen if you ever manage to install a 10.1 (Alpha/Beta/final) and the problem persists.