GNOME Bugzilla – Bug 685699
Critical when emitting property changes
Last modified: 2018-05-24 14:41:16 UTC
There's a report in ModemManager (bug 684693) where we're getting a critical like this: GLib-GIO-CRITICAL **: g_dbus_connection_emit_signal: assertion `G_IS_DBUS_CONNECTION (connection)' failed
+ Trace 230992
I've looked at the code and I cannot see how this could happen, so reporting the bug to see if anyone has an idea. Some context: * The skeleton object has a valid reference when this happened but it was probably already unexported from DBus. * I cannot see why g_dbus_connection_emit_signal() triggers the G_IS_DBUS_CONNECTION (connection) warning, as the GDBusConnection being used has a valid object reference (given that g_dbus_interface_skeleton_get_connections() returns a list of new references). * GLib version was probably 2.30.x but I'm not 100% sure. Any hint?
Hard to say, maybe the application is erroneously unreffing the connecting elsewhere or maybe memory corruption? Try valgrind(1)?
But if the connection was unrefed somewhere else, I would have gotten criticals already in the g_object_ref()s done internally by g_dbus_interface_skeleton_get_connections(). Valgrind would be helpful if it was easily reproducible :-)
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/glib/issues/611.