GNOME Bugzilla – Bug 553980
crash in Metacity: user logging in after 2....
Last modified: 2009-02-08 20:55:44 UTC
What were you doing when the application crashed? user logging in after 2.24 upgrade Distribution: Unknown Gnome Release: 2.24.0 2008-09-24 (FreeBSD GNOME Project) BugBuddy Version: 2.24.0 System: FreeBSD 8.0-CURRENT FreeBSD 8.0-CURRENT #0: Fri Sep 26 12:06:13 EDT 2008 jsa@mephisto.wickedmachine.net:/usr/obj/usr/src/sys/MEPHISTO i386 X Vendor: The X.Org Foundation X Vendor Release: 10402000 Selinux: No Accessibility: Disabled GTK+ Theme: (null) Icon Theme: (null) Memory status: size: 16384000 vsize: 16384000 resident: 10182656 share: 45584091 rss: 10182656 rss_rlim: 2486 CPU usage: start_time: 0 rtime: 0 utime: 0 stime: 0 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 133 Backtrace was generated from '/usr/local/bin/metacity' [New Thread 8101140 (LWP 100115)]
+ Trace 207406
Thread 8101140 (LWP 100115)
*** Bug 553981 has been marked as a duplicate of this bug. ***
I see the same thing on FreeBSD. What is happening is that gdm's metacity is crashing. The reason for this is that metacity is sent a SIGTERM. However, it's SM restart hint is set to SmRestartImmediately. This causes it to be restarted. Unfortunately, the underlying dbus socket has already been closed. Therefore, GConf fails which leads to a NULL pointer dereference. To fix this in FreeBSD, I added a SIGTERM handler which sets the SM restart hint to SmRestartIfRunning. Basically, I'm just calling the standard metacity shutdown functions when a SIGTERM is delivered. I'm not sure this is the right way of doing things, but it does keep gdm's metacity from restarting which prevents the crash. Patch is attached.
Created attachment 120202 [details] [review] Prevent metacity from restarting after receiving a SIGTERM
*** Bug 563771 has been marked as a duplicate of this bug. ***
*** Bug 565875 has been marked as a duplicate of this bug. ***
This patch was already committed in r3974.
*** Bug 570989 has been marked as a duplicate of this bug. ***