GNOME Bugzilla – Bug 590828
gnome-session crashed with SIGSEGV in g_main_context_dispatch()
Last modified: 2011-05-26 10:39:28 UTC
this report has been filed here: https://bugs.edge.launchpad.net/ubuntu/+source/gnome-session/+bug/408481 "got the crash after an update" ".
+ Trace 216797
Thread 1 (process 4287)
Created attachment 143559 [details] [review] 0001-Bug-590828-Fix-a-crash-on-logout-triggered-by-non-re.patch The issue here seems to be that the query-end-session phase times out due to a non-responding XSMP client, and it then crashes in xsmp_get_app_name before creating the inhibitor, because the client has no SmProgram property. The attached patch should fix that.
fwiw, I stumbled upon this some time ago -- the only reason I didn't commit something similar to this patch is that I didn't have time to check that it's fine to return NULL from this function...
*** Bug 580990 has been marked as a duplicate of this bug. ***
I committed a fix that is a bit more generic, since the issue appeared in various other places.