DBus crash when connecting to the bus, disconnect and reconnect again

Bug #54375 reported by Xavier Claessens
2
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
Fix Released
Medium
Sebastian Dröge

Bug Description

Binary package hint: libdbus-glib-1-2

I just tried with this simple code:
 connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
 dbus_g_connection_unref (connection);
 connection = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
and the program segfault. This message is written on the terminal:

14375: arguments to dbus_connection_ref() were incorrect, assertion
"connection->generation == _dbus_current_generation" failed in file
dbus-connection.c line 1749.
This is normally a bug in some application using the D-BUS library.
Erreur de segmentation

Here is the interesting part of the call stack:
#0 0xb784fafb in dbus_watch_handle () from /usr/lib/libdbus-1.so.2
#1 0xb7836ac5 in dbus_connection_get_data ()
from /usr/lib/libdbus-1.so.2
#2 0xb7835b31 in dbus_bus_get_unix_user () from /usr/lib/libdbus-1.so.2
#3 0xb7835e10 in dbus_bus_register () from /usr/lib/libdbus-1.so.2
#4 0xb7836234 in dbus_bus_register () from /usr/lib/libdbus-1.so.2
#5 0xb786ad9f in dbus_g_bus_get () from /usr/lib/libdbus-glib-1.so.2

Bug discuted upstream: http://lists.freedesktop.org/archives/dbus/2006-July/005276.html

Sebastian Dröge (slomo)
Changed in dbus:
assignee: nobody → slomo
Sebastian Dröge (slomo)
Changed in dbus:
status: Unconfirmed → Confirmed
importance: Untriaged → Medium
Revision history for this message
Sebastian Dröge (slomo) wrote :

Should be fixed with 0.92-1ubuntu1

Changed in dbus:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.