After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 67368 - gnome-panel-2 dies when startup.
gnome-panel-2 dies when startup.
Status: RESOLVED FIXED
Product: gnome-core
Classification: Deprecated
Component: panel
1.5.x
Other other
: Normal critical
: ---
Assigned To: Panel Maintainers
Panel Maintainers
Depends on:
Blocks:
 
 
Reported: 2001-12-21 17:02 UTC by Takayuki KUSANO
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.0



Description Takayuki KUSANO 2001-12-21 17:02:06 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.
Comment 1 Luis Villa 2002-01-22 20:10:00 UTC
Takayuki: is this still a problem in CVS?
Comment 2 Luis Villa 2002-01-22 21:24:15 UTC
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.
Comment 3 Takayuki KUSANO 2002-01-23 01:38:34 UTC
OK, I'll check where this is fixed in this weekend. Thanx.
Comment 4 Takayuki KUSANO 2002-01-30 16:19:14 UTC
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.