GNOME Bugzilla – Bug 67368
gnome-panel-2 dies when startup.
Last modified: 2004-12-22 21:47:04 UTC
When I execute gnome-panel-2 with latest gnome2 libraries (checked out from CVS), gnome-panel-2 is killed by SIGSEGV. With gdb, I found that g_free(s) at the end of append_format_items() in foobar-widget.c causes SIGSEGV. When aborted, 's' points to _("%I:%M:%S %p"), which is 2nd arguments of prior panel_gconf_get_string () call. g_free(s) tried to free constant value. I think callers of panel_gconf_get_string() must check that returned value is equivalent to the 2nd argument of it. When they are same and the 2nd argument is constant, g_free() must not be called. Or, change the semantics of panel_gconf_get_string() to return always newly allocated area.
Takayuki: is this still a problem in CVS?
Adding relevant keywords. You can filter on the phrase 'luis doing GNOME2 work' to catch all instances of this so that you can ignore them.
OK, I'll check where this is fixed in this weekend. Thanx.
The bug caused by g_free()ing returned value of panel_gconf_get_string() seems to be fixed. So, no SEGV occured by this problem at start up time.