GNOME Bugzilla – Bug 158917
gconfd crashes when changing values with gconf-editor
Last modified: 2005-05-06 12:44:29 UTC
If I start gconf-editor and change a value, gconfd segfaults. It isn't noticeable because it restarts immediately and successfully. Program received signal SIGSEGV, Segmentation fault.
+ Trace 52347
Thread 1076605600 (LWP 22427)
$1 = (GConfValue *) 0x0
Created attachment 33980 [details] [review] Proposed fix for gconf 2.8.1
Ping?
More correct fix is: - cvalue = gconf_corba_value_from_gconf_value (value); + if (value != NULL) + { + cvalue = gconf_corba_value_from_gconf_value (value); + } + else + { + cvalue = gconf_invalid_corba_value (); + } Committed on HEAD and gnome-2-10: 2005-05-06 Mark McLoughlin <mark@skynet.ie> Fix for crasher. Based on patch from Josselin Mouette <joss@debian.org> in bug #158917 * gconf/gconfd.c: (gconfd_notify_other_listeners): if the value is unset, create an InvalidVal ConfigValue. Thanks
Hmm, the gconf_value_free() needed to be moved into the if (value != NULL) case too. 2005-05-06 Mark McLoughlin <mark@skynet.ie> Small fix for previous commit. * gconf/gconfd.c: (gconfd_notify_other_listeners): Don't try and free a NULL GConfValue.