Binary package hint: xfce4-session
XUbuntu, xfce as window manager, with xfce panel and compiz running (started out of a terminal and sent in bg with everything redirected into /dev/null). GDM.
After some heavy OpenGL usage (ioquake and compiz abuse) the buttons
in logout/shutdown dialog were shown grayed out and disabled.
"Logout" and "Switch user" worked.
Trying to logout and select Shutdown causes a restart of GDM.
.xsession-errors has these:
libnm_glib_nm_state_cb: dbus returned an error.
(org.freedesktop.DBus.Error.AccessDenied) A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.NetworkManager" member "state" error name "(unset)" destination "org.freedesktop.NetworkManager")
Terminated
** (xfce4-session:2979): WARNING **: xfsm-shutdown-helper.c:151: Failed to contact HAL: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface "org.freedesktop.Hal.Device.SystemPowerManagement" member "ThisMethodMustNotExistInHal" error name "(unset)" destination "org.freedesktop.Hal")
** Message: xfsm-shutdown-helper.c:235: HAL not available or does not permit to shutdown/reboot the computer, trying sudo fallback instead.
(xfce4-session:2979): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
(xfce4-session:2979): Gtk-CRITICAL **: gtk_widget_set_sensitive: assertion `GTK_IS_WIDGET (widget)' failed
** (xfce4-session:2979): CRITICAL **: xfsm_shutdown_helper_destroy: assertion `helper != NULL' failed
and an attempt to strace the xfce4-session process shows:
$ strace -ff -e execve -v -s 1024 -p 2979
Process 2979 attached - interrupt to quit
Process 30804 attached (waiting for parent)
Process 30804 resumed (parent 2979 ready)
[pid 30804] execve("/usr/bin/sudo", ["sudo", "-H", "-S", "-p", "XFSM_SUDO_PASS ", "--", "/usr/lib/xfce4-session/xfsm-shutdown-helper"], ["GNOME_KEYRING_PID=2849", "USER=raa", "GNOME_KEYRING_SOCKET=/tmp/keyring-F9DoJ6/socket", "SSH_AGENT_PID=2968", "HOME=/home/raa", "DESKTOP_SESSION=xfce4", "LC_CTYPE=", "GDM_XSERVER_LOCATION=local", "DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-nhLYr6IaAT,guid=d8cb5f1dde9ec5612ec3580047ac9b61", "LOGNAME=raa", "USERNAME=raa", "WINDOWPATH=7", "PATH=/home/raa/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games", "DISPLAY=:0.0", "LANG=C", "XAUTHORITY=/home/raa/.Xauthority", "SSH_AUTH_SOCK=/tmp/ssh-TTajah2853/agent.2853", "SHELL=/bin/bash", "GDMSESSION=xfce4", "PWD=/home/raa", "XDG_DATA_DIRS=etc/xdg/xubuntu:/usr/local/share/:/usr/share/:/usr/share/gdm/:/usr/share", "MANPATH=:/home/raa/share/man", "SESSION_MANAGER=local/steel:/tmp/.ICE-unix/2979", "LC_ALL=C", "LANGUAGE=C"]) = 0
Process 30804 detached
--- SIGCHLD (Child exited) @ 0 (0) ---
Process 2979 detached
and some more
writev(16, [{"l\1\0\1\0\0\0\0\22\0\0\0\264\0\0\0\1\1o\0%\0\0\0/org/freedesktop/Hal/devices/computer\0\0\0\6\1s\0\23\0\0\0org.freedesktop.Hal\0\0\0\0\0\2\1s\0000\0\0\0org.freedesktop.Hal.Device.SystemPowerManagement\0\0\0\0\0\0\0\0\3\1s\0\33\0\0\0ThisMethodMustNotExistInHal\0\0\0\0\0", 200}, {"", 0}], 2) = 200
gettimeofday({1202510043, 226718}, NULL) = 0
poll([{fd=16, events=POLLIN, revents=POLLIN}], 1, 2000) = 1
read(16, "l\3\1\0014\1\0\0\23\0\0\0m\0\0\0\6\1s\0\5\0\0\0:1.17\0\0\0\4\1s\0\'\0\0\0org.freedesktop.DBus.Error.AccessDenied\0\5\1u\0\22\0\0\0\10\1g\0\1s\0\0\7\1s\0\24\0\0\0org.freedesktop.DBus\0\0\0\0/\1\0\0A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface \"org.freedesktop.Hal.Device.SystemPowerManagement\" member \"ThisMethodMustNotExistInHal\" error name \"(unset)\" destination \"org.freedesktop.Hal\")\0", 2048) = 436
read(16, 0x8405138, 2048) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "\n** (xfce4-session:2979): WARNING **: xfsm-shutdown-helper.c:151: Failed to contact HAL: A security policy in place prevents this sender from sending this message to this recipient, see message bus configuration file (rejected message had interface \"org.freedesktop.Hal.Device.SystemPowerManagement\" member \"ThisMethodMustNotExistInHal\" error name \"(unset)\" destination \"org.freedesktop.Hal\")\n", 393) = 393
write(2, "** Message: xfsm-shutdown-helper.c:235: HAL not available or does not permit to shutdown/reboot the computer, trying sudo fallback instead.\n", 140) = 140
I don't have /usr/lib/xfce4-session/xfsm-shutdown-helper and was not able to find it.
If the "Terminated" message means that dbus ended then it's more an nm bug, not an xfce4-session one. Can you try to reproduce the bug and see if the dbus session (the user session) is still running?
Thanks.