Launchpad has imported 6 comments from the remote bug at http://bugs.freedesktop.org/show_bug.cgi?id=9259.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2006-12-06T03:26:05+00:00 Sebastian Dröge wrote: Hi, the attached piece of code deadlocks when called via sudo but works fine otherwise. This is probably caused by DBUS_SESSION_BUS_ADDRESS pointing to a socket for the session bus of the user calling sudo which is not owned by root. When using dbus_threads_init_default() or not initializing threads at all it doesn't deadlock but fails gracefully. Bye Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/8 ------------------------------------------------------------------------ On 2006-12-06T03:26:58+00:00 Sebastian Dröge wrote: Created an attachment (id=7976) test.c Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/9 ------------------------------------------------------------------------ On 2006-12-06T03:27:13+00:00 Sebastian Dröge wrote: This is btw with dbus 1.0.1 and dbus-glib 0.72. Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/10 ------------------------------------------------------------------------ On 2006-12-12T06:15:10+00:00 Rob Taylor wrote: I think J5 mentioned he had a fix for this. Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/12 ------------------------------------------------------------------------ On 2006-12-12T12:17:52+00:00 Johnp-redhat wrote: One workaround is to use dbus_threads_init_default() instead of dbus_g_threads_init() since the internal thread implementation uses recursive threading and glib's uses non-recursive. dbus_g_threads_init should start to call dbus_threads_init_default() in the future. We should also fix this code to work with nonrecursive locks by dropping the lock whenever we call functions outside of bus.c that may call back into bus.c Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/13 ------------------------------------------------------------------------ On 2007-02-08T15:20:05+00:00 Rob Taylor wrote: Fixed in git head. Reply at: https://bugs.launchpad.net/dbus/+bug/71248/comments/25 ** Changed in: dbus Importance: Unknown => High -- Applications using dbus hang when ran with sudo https://bugs.launchpad.net/bugs/71248 You received this bug notification because you are a member of Registry Administrators, which is the registrant for D-Bus. _______________________________________________ Mailing list: https://launchpad.net/~registry Post to : [email protected] Unsubscribe : https://launchpad.net/~registry More help : https://help.launchpad.net/ListHelp

