dbus-session doesn't handle signals gracefully

Bug #12643 reported by Lars Hansson
6
Affects Status Importance Assigned to Milestone
dbus (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

The dbus sessionbus is not properly terminated on session end (ie logout)
resulting in a stale dbus-daemon-1 processes for each time you login/logout.
Below is ps output after I logged in and out 5 times.
$ ps -x | grep dbus
 7353 ? Ss 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
--session
 7510 ? Ss 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
--session
 7628 ? Ss 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
--session
 7822 ? Ss 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
--session
 8173 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch
--exit-with-session /usr/bin/gnome-session
 8177 ? Ss 0:00 dbus-daemon-1 --fork --print-pid 8 --print-address 6
--session
 9174 pts/0 S+ 0:00 grep dbus

Revision history for this message
Rui Matos (tiagomatos) wrote :

I'd like to know about this one too. The only info I could find is this thread:

http://lists.freedesktop.org/pipermail/dbus/2004-April/000953.html

Revision history for this message
Sebastien Bacher (seb128) wrote :

Daniel, any idea on this ?

Revision history for this message
Rui Matos (tiagomatos) wrote :

If anyone is trying to reproduce this, note that (at least on my hoary) this
behaviour doesn't happen if you log out "normally" through the GNOME log out
menu item. It happens if you, for example, do a sudo /etc/init.d/gdm stop.

Revision history for this message
Al Stoltz (astoltz) wrote :

(In reply to comment #3)
> If anyone is trying to reproduce this, note that (at least on my hoary) this
> behaviour doesn't happen if you log out "normally" through the GNOME log out
> menu item. It happens if you, for example, do a sudo /etc/init.d/gdm stop.

Using Warty here and it does not seem to matter how seesion is terminated
(normal logout, /etc/init.d/gdm stop, ctrl-alt-backspace) dbus does not get
killed and a new process is created on next login. I found a redhat bug with
some possibly helpful info:
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=133557

Revision history for this message
Sebastien Bacher (seb128) wrote :

dbus issue, reassigning

Revision history for this message
Daniel Stone (daniels) wrote :

Will fix with 0.23.4-1, thanks.

Revision history for this message
Daniel Stone (daniels) wrote :

OK, maybe not so fast. dbus-session just doesn't handle signals; I won't fix
this right now, maybe later.

Daniel Stone (daniels)
Changed in dbus:
assignee: daniels → nobody
Matt Zimmerman (mdz)
Changed in dbus:
status: Unconfirmed → Confirmed
Revision history for this message
Laurent Bigonville (bigon) wrote :

The dbus daemon exits on logout on dapper.

Changed in dbus:
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.