GNOME Bugzilla – Bug 656248
patch for gconfd-dbus to avoid segmentation fault for gconfd-2
Last modified: 2011-08-15 05:10:56 UTC
Created attachment 193513 [details] [review] gconfd-dbus-segfal.patch In functoin, server_message_func(), we need to check if dbus_message_get_interface (message) is NULL before we do strcmp. Detailed in attached patch file, "gconfd-dbus-segfal.patch".
I would like to know how you were triggering this?
commit 150e7fbea18a1431891224a79e6710377b4aa9dc Author: Rob Bradford <rob@linux.intel.com> Date: Sun Aug 14 16:49:10 2011 +0100 gconfd-dbus: Handle messages that don't have an interface set Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=656248 Inspired by proposed solution from Joey Zheng.
Rob, Thanks for accepting this patch. I triggered this by using dbus-tool from http://code.google.com/p/dbus-tools, to list all of the members of org.gnome.GConf, by command "./dbus org.gnome.GConf". I didn't check if it is caused by incorrect code in dbus-tool, but I think we can add this as a foolproof patch. :) Thanks, Joey Zheng
Oops, I didn't noticed that the default status is "UNCONFIRMED", so change it back to RESOLVED.
I just built it with the new patch and can confirm the segmentation issue is gone.