FS#8125 - GDM doesnt shutdown properly
Attached to Project:
Arch Linux
Opened by Robin Heggelund Hansen (Skinney) - Wednesday, 26 September 2007, 00:31 GMT
Last edited by Jan de Groot (JGC) - Saturday, 11 October 2008, 23:24 GMT
Opened by Robin Heggelund Hansen (Skinney) - Wednesday, 26 September 2007, 00:31 GMT
Last edited by Jan de Groot (JGC) - Saturday, 11 October 2008, 23:24 GMT
|
Details
Description: Whenever i reboot or shutdown the computer i
get an error msg concerning GDM. It seems that Arch cannot
shutdown GDM becouse it doesnt have the correct pid...
Additional info: GDM 2.20 Steps to reproduce: Shutting down/Rebooting the computer |
This task depends upon
Closed by Jan de Groot (JGC)
Saturday, 11 October 2008, 23:24 GMT
Reason for closing: Fixed
Additional comments about closing: Updated to 2.20.8, silenced gdm-stop warnings.
Saturday, 11 October 2008, 23:24 GMT
Reason for closing: Fixed
Additional comments about closing: Updated to 2.20.8, silenced gdm-stop warnings.
[0:13 maciek ~] ps ax | grep gdm
2742 ? Ss 0:00 /usr/sbin/gdm-binary @
2744 ? S 0:00 /usr/sbin/gdm-binary @
2753 tty7 Rs+ 14:00 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
5686 pts/0 S+ 0:00 grep gdm
5928 ? Ss 0:00 /usr/sbin/gdm-binary
5931 ? S 0:00 /usr/sbin/gdm-binary
5949 tty7 SLs+ 0:20 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
7000 pts/0 R+ 0:00 grep gdm
[roadboy@bozhane:~]$ ps aux | grep -i gdm
roadboy 3738 0.0 0.0 3184 792 pts/0 R+ 08:54 0:00 grep -i gdm
root 7855 0.0 0.0 12616 1136 ? Ss Oct16 0:00 /usr/sbin/gdm-binary
root 7858 0.0 0.1 12976 2676 ? S Oct16 0:00 /usr/sbin/gdm-binary
root 7863 0.0 0.6 22332 13024 tty7 SLs+ Oct16 0:22 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
root 7893 0.0 0.6 22332 13024 tty7 SL+ Oct16 0:00 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
/var/run/gdm.pid doesn't exist, perhaps GDM isn't running
root 6179 0.0 0.2 87624 2268 ? Ss 16:07 0:00 /usr/sbin/gdm-binary
root 6182 0.0 0.3 100296 3440 ? S 16:07 0:00 /usr/sbin/gdm-binary
root 6201 2.1 2.9 76124 29944 tty7 SLs+ 16:07 0:37 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
perkin 6612 0.0 0.0 8868 992 pts/0 S+ 16:37 0:00 grep -i gdm
root 4092 0.0 0.0 86864 1744 ? Ss 11:55 0:00 /usr/sbin/gdm-binary
root 4111 0.0 0.1 99532 2908 ? S 11:55 0:00 /usr/sbin/gdm-binary
fredrik 5256 0.0 0.0 8516 968 pts/2 S+ 21:48 0:00 grep -i gdm
$ cat /var/run/gdm.pid
4092
Starting normally (ie, not backgrounding it) it via rc.conf.
Also getting the following error right when it starts, perhaps it's related?
Oct 17 11:55:18 grimreaper gdm-binary[4048]: WARNING: Didn't understand `' (expected true or false)
I have not changed any config files manually and it was working fine before the upgrade to 2.20.0-1.
FS#8115and during the last shutdown I couldn't even see the shutdown sequence, I got a blank screen for some reason so I'm not sure if I still have the pid-file problem.[root@highvoltage mrunion]# ps ax | grep gdm
6259 ? Ss 0:00 /usr/sbin/gdm-binary
6262 ? S 0:00 /usr/sbin/gdm-binary
6266 tty7 SLs+ 1:04 /usr/bin/X :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
14667 pts/0 S+ 0:00 grep gdm
I also only see an error message when I shutdown, and don't get a listing of the shutdown sequence.
The pid file does exist and contains PID.
gdm-binary[8307]: GLib-GObject-CRITICAL: g_object_unref: assertion `G_IS_OBJECT (object)' failed
This is the only line I get when shutting down -- no "status" of other things shutting down like used to. The machine DOES shut down properly though, as evidenced by it not wanting to recheck the drives when it starts up.
Here is the results of shutting down from inside Gnome as logged from the "everything.log":
Nov 1 01:12:09 gconfd (mrunion-8423): Exiting
Nov 1 01:12:09 highvoltage gdm-binary[8307]: WARNING: Command failed /usr/bin/poweroff: Failed to execute child process "/usr/bin/poweroff" (No such file or directory)
Nov 1 01:12:09 highvoltage shutdown[21572]: shutting down for system halt
Nov 1 01:12:09 highvoltage init: Switching to runlevel: 0
Nov 1 01:12:10 highvoltage dhcpcd[8215]: eth0: broadcasting for a lease
Nov 1 01:12:10 highvoltage cpufreqd: event_wait : Error polling ACPI Event handler (0x0011).
Nov 1 01:12:10 highvoltage cpufreqd: acpi_event_exit : Couldn't cancel event thread (No such process).
Nov 1 01:12:10 highvoltage ntfs-3g[8521]: Unmounting /dev/sda1 (OS)
Nov 1 01:12:10 highvoltage ntfs-3g[8515]: Unmounting /dev/sda2 (HP_RECOVERY)
Nov 1 01:12:10 highvoltage ntfs-3g[8513]: Unmounting /dev/sdb1 (DATA)
Nov 1 01:12:10 highvoltage ifplugd(eth0)[8241]: Exiting.
Nov 1 01:12:10 highvoltage wlan0: deauthenticate(reason=3)
Nov 1 01:12:10 highvoltage dhcpcd[8580]: wlan0: received SIGTERM, stopping
Nov 1 01:12:10 highvoltage dhcpcd[8580]: wlan0: removing default route via 10.0.0.1 metric 0
Nov 1 01:12:10 highvoltage dhcpcd[8580]: wlan0: removing IP address 10.0.0.107/24
Nov 1 01:12:11 highvoltage dhcpcd[8580]: wlan0: exiting
Nov 1 01:12:11 highvoltage dhcpcd[8215]: eth0: received SIGTERM, stopping
Nov 1 01:12:11 highvoltage gdm-binary[8307]: GLib-GObject-CRITICAL: g_object_unref: assertion `G_IS_OBJECT (object)' failed
Nov 1 01:12:11 highvoltage dhcpcd[8215]: eth0: removing IP address 169.254.18.87/16
Nov 1 01:12:11 highvoltage dhcpcd[8215]: eth0: exiting
Nov 1 01:12:11 highvoltage syslog-ng[8213]: Termination requested via signal, terminating;
Nov 1 01:12:11 highvoltage syslog-ng[8213]: syslog-ng shutting down; version='2.0.5'
Usually it just switches to a blank screen, and back just before it shutdowns, but every now and then it's slow enough for the mouse pointer to appear. To me it looks like one of the GDM's are killed and the other realizes that there is no X running and restarts just before it gets killed. Like I mentioned earlier if I change to a console and stop it by using the rc.d script and then using shutdown there are no problems. It only happens when shutting down through GDM. This is my deamons list in rc.conf:
DAEMONS=(syslog-ng network netfs crond @alsa @sshd @sensors @smartd @mpd @arch32 @cpufreq gdm)
I start GDM with inittab in runlevel 5
everything.log says to me:
Nov 7 14:59:24 neurone gdm-binary[7279]: WARNING: Command failed /usr/bin/reboot: Failed to execute child process "/usr/bin/reboot" (No such file or directory)
Nov 7 14:59:24 neurone shutdown[9840]: shutting down for system reboot
Nov 7 14:59:25 neurone init: Switching to runlevel: 6
[root@neurone ~]# ps ax | grep -i gdm
7220 ? Ss 0:00 /usr/sbin/gdm-binary -nodaemon
7248 ? S 0:00 /usr/sbin/gdm-binary -nodaemon
7250 tty7 SLs+ 0:57 /usr/bin/Xorg :0 -audit 0 -auth /var/lib/gdm/:0.Xauth -nolisten tcp vt7
[root@neurone ~]# cat /var/run/gdm.pid
7220
- when I shutdown from gnome, most of the times I get back to GDM, but sometimes I get a shutdown
- when I shutdown from gdm, everything works fine, though I get some warnings.
The 1st thing is actually the bug, the 2nd isn't a bug: gdm closes itself on shutdown and gets stopped by the rc.d script, which notices there's no gdm running anymore.
So (like Roman Kyrylych said), there should be a check in the /etc/rc.d/gdm file, if gdm is running.
With this solution the 'gdm' entry can and should be removed from the DAEOMONS array in rc.conf.
gdm-stop should clean up this file when it is executed, should it not? That would make it a GDM bug...
- when I shutdown from gnome, most of the times I get back to GDM, but sometimes I get a shutdown
...
The 1st thing is actually the bug...
I agree that this is the real bug, the other one is cosmetics (though maybe annoying). I can influence the shutdown behaviour. On my system it is apparently shutting down in the background. GDM restarts itself after X exited when I tell gnome to shutdown the system. It looks like the shutdown doesn't work. But if I switch to the first VC the system will shutdown immediately. It seems that it waits for the terminal to become active/ready (?). And GDM respawning takes away this focus. Please try this and see if you have the same behaviour.
Steps to reproduce:
1. Activate shutdown from desktop environment
2. X stops, GDM respawns.
3. As soon as GDM appears, change to VC 1 immediately.
4. You should see a standard shutdown running and the box will power off.
I've only changed the pkgver and md5sums, and I suspect some dependency also needs to be upgraded since every other shutdown/reboot it prints a backtrace. It flashes by too quickly for me to see what was the cause and there are nothing in the logs (filesystem already unmounted).