Created attachment 15990 [details] [review] Patch to correct problem The cached list of bus addresses is only initialised in init_connections_unlocked() if the initialized global is FALSE (which is the default). addresses_shutdown_func() is called by dbus_shutdown() to clean up, but never sets initialized back to FALSE. So after dbus_shutdown() all bus addresses are empty, and will not be reinitialized.
Created attachment 16155 [details] [review] Patch in preferred format
commit fd32a72b2f3855ef551d0063ea1e6bea4554be08 Author: Colin Walters <walters@verbum.org> Date: Fri May 30 19:58:13 2008 -0400 Bug 15570: Reset initialized state on dbus_shutdown (Scott James Remnant) * dbus/dbus-bus.c (addresses_shutdown_func): Reset initialized back to FALSE after cleaning up the address list so that it will be reinitialized again if D-Bus is used after dbus_shutdown() * test/name-test/test-privserver-client.c: Uncomment part of test which should now pass.
*** Bug 16300 has been marked as a duplicate of this bug. ***
*** Bug 9770 has been marked as a duplicate of this bug. ***
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.