GNOME Bugzilla – Bug 583345
Exits when the system D-Bus daemon restarts
Last modified: 2009-07-29 00:37:28 UTC
Whenever the system D-Bus daemon is restarted (for example when it is upgraded), any running gnome-session instance exits. It doesn’t look like a crash. When attaching gdb to the process, it just says “Process exited with code 1”. Using breakpoints on exit() and _exit() doesn’t give any better results. I’m running out of ideas on how to debug that. The issue is a bit Debian-specific since other distributions don’t restart D-Bus upon upgrades, but there are good reasons to do that, and the other GNOME programs that used to crash have been fixed.
Created attachment 135080 [details] [review] Do not exit when the D-Bus connection is lost Sjoerd Simmons is again the hero of the day.
Hrm, shouldn't we listen to the Disconnected signal and reset some variables to NULL? Else, the GsmConsoleKit object will have some invalid references to dbus objects, won't it?
Created attachment 137619 [details] [review] [gsm] Do not exit when the system bus restarts We also need to reconnect later to the bus.
Created attachment 137631 [details] [review] [gsm] Do not exit when the system bus restarts Updated patch to fix a misuse of g_object_unref, and make sure we reconnect to the bus when necessary.
It seems to work fine here, thanks.
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.