Bug 15570

Summary: [patch] bus addresses not reinitialised after dbus_shutdown()
Product: dbus Reporter: Scott James Remnant <scott>
Component: coreAssignee: Havoc Pennington <hp>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium CC: hp, walters
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Bug Depends on: 16166    
Bug Blocks:    
Attachments: Patch to correct problem
Patch in preferred format

Description Scott James Remnant 2008-04-17 15:52:28 UTC
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.
Comment 1 Scott James Remnant 2008-04-24 08:02:52 UTC
Created attachment 16155 [details] [review]
Patch in preferred format
Comment 2 Colin Walters 2008-05-30 17:01:19 UTC
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.

Comment 3 Colin Walters 2008-06-10 15:11:53 UTC
*** Bug 16300 has been marked as a duplicate of this bug. ***
Comment 4 Simon McVittie 2011-02-28 09:08:32 UTC
*** 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.