GNOME Bugzilla – Bug 659070
gdbus-codegen' generated code segfaults when remote property changes
Last modified: 2011-09-14 17:04:21 UTC
Created attachment 196522 [details] [review] proposed patch glib2-2.29.90-1.fc17.x86_64 Application segfaults when gdbus proxy is constructed and property on the remote d-bus service is changed. See the patch commit message. I only hope people are always calling gdbus-codegen on package build.
Review of attachment 196522 [details] [review]: Patch looks good to me. Note that this only happens with D-Bus services that does not include the value in the PropertiesChanged signal (generally a very bad idea). Please commit to master and glib-2-30.
(In reply to comment #0) > I only hope people are always calling gdbus-codegen on package build. They are supposed to, yeah - git nor tarballs should ever contain generated code. But I'm sure a lot of people will get it wrong, but that's their problem :-)
Comment on attachment 196522 [details] [review] proposed patch Committed, thanks commit 659b287a92d951d7121584587cb7aefa28e88416 Author: Tomas Bzatek <tbzatek@redhat.com> Date: Wed Sep 14 19:02:01 2011 +0200 gdbus-codegen: Fix segfault when remote property is invalidated The 'key' variable is no longer valid outside the cycle, owned and probably already freed by GVariant. This causes apps to segfault when proxy is constructed and a property on remote d-bus service changes (actually is invalidated). Looks like a typo anyway. https://bugzilla.gnome.org/show_bug.cgi?id=659070