The major details of this problem can be found at http://bugzilla.gnome.org/show_bug.cgi?id=395488 since this was seen when gnome-session added internal D-Bus support. Basically, dbus will write its PID twice to the PID file handle. The first time is properly processed, but the second time causes a SIGPIPE which crashes the session bus. I'm not sure what the proper fix is, but I have included a patch that simply ignores SIGPIPE for both writes. Perhaps the second write should be eliminated altogether. These patches are against dbus-1.0.2.
Created attachment 9944 [details] [review] Ignore SIGPIPE when writing PID
as mentioned on http://bugzilla.gnome.org/show_bug.cgi?id=395488 I think the better fix would be to avoid writing the pid twice. It looks likely the fix for bug #1720 introduced the problem, though I have not verified. Need to fix it in such a way that it works both with and without --fork.
Created attachment 13764 [details] [review] Write pid to pipe once This proposed patch writes to pid to pipe just once.
patch doesn't apply to git head. Please repost one that does. I don't think this will make 1.2.0.
Brian Cameron has pointed out to me Havoc's commit of 2007-08-17. to bus/bus.c and dbus/dbus-sysdeps-util-unix.c. I think that fixes the problem and this bug can be closed.
Sounds like this one is fixed, closing; thanks Padraig.
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.