After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 657509 - race condition in /gdbus/connection/life-cycle test (possible GDBusConnection leak)
race condition in /gdbus/connection/life-cycle test (possible GDBusConnection...
Status: RESOLVED DUPLICATE of bug 661896
Product: glib
Classification: Platform
Component: gdbus
unspecified
Other Linux
: Normal normal
: ---
Assigned To: David Zeuthen (not reading bugmail)
gtkdev
Depends on:
Blocks:
 
 
Reported: 2011-08-27 14:45 UTC by Dan Winship
Modified: 2011-10-17 01:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Winship 2011-08-27 14:45:01 UTC
build gio/tests/gdbus-connection with this patch:

diff --git a/gio/tests/gdbus-sessionbus.c b/gio/tests/gdbus-sessionbus.c
index f39583c..509d00d 100644
--- a/gio/tests/gdbus-sessionbus.c
+++ b/gio/tests/gdbus-sessionbus.c
@@ -299,2 +299,4 @@ session_bus_down_with_address (const gchar *address)
   g_hash_table_remove (session_bus_address_to_pid, address);
+
+  g_usleep (100000);
 }

and it will reliably hang at the end of test_connection_life_cycle(). It appears that if the connection gets closed before session_bus_down() returns, then c will have a ref count of 2 when it returns instead of 1.
Comment 1 Dan Winship 2011-10-17 01:22:58 UTC

*** This bug has been marked as a duplicate of bug 661896 ***