GNU bug report logs - #10710
23.4; left-over dbus processes

Previous Next

Package: emacs;

Reported by: starback <at> stp.lingfil.uu.se (Per Starback)

Date: Fri, 3 Feb 2012 17:01:01 UTC

Severity: normal

Found in version 23.4

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 10710 in the body.
You can then email your comments to 10710 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#10710; Package emacs. (Fri, 03 Feb 2012 17:01:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to starback <at> stp.lingfil.uu.se (Per Starback):
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 03 Feb 2012 17:01:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: starback <at> stp.lingfil.uu.se (Per Starback)
To: bug-gnu-emacs <at> gnu.org
Subject: 23.4; left-over dbus processes
Date: Fri, 03 Feb 2012 16:45:28 +0100
In GNU Emacs 23.4.1 (i686-pc-linux-gnu, GTK+ Version 2.18.9)
Windowing system distributor `Red Hat, Inc.', version 11.0.11004000
configured using `configure  '--prefix' '/local''
(It's CentOS 6.2.)

  $ ssh -Y somehost
  somehost$ emacs -Q --kill
  somehost$ pstree `id -un`
  dbus-daemon---{dbus-daemon}
  
  dbus-launch
  
  gconfd-2
  
  sshd---bash---pstree

So several dbus processes are created and left behind afterwards, which
is inconvenient. I found

  http://lists.gnu.org/archive/html/emacs-devel/2009-08/msg00940.html

which addresses a similar problem (where also dbus processes are created
after ssh + X).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10710; Package emacs. (Tue, 14 Feb 2012 21:12:01 GMT) Full text and rfc822 format available.

Message #8 received at 10710 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: starback <at> stp.lingfil.uu.se (Per Starback)
Cc: 10710 <at> debbugs.gnu.org
Subject: Re: bug#10710: 23.4; left-over dbus processes
Date: Tue, 14 Feb 2012 22:09:04 +0100
starback <at> stp.lingfil.uu.se (Per Starback) writes:

>   $ ssh -Y somehost
>   somehost$ emacs -Q --kill
>   somehost$ pstree `id -un`
>   dbus-daemon---{dbus-daemon}
>   
>   dbus-launch
>   
>   gconfd-2
>   
>   sshd---bash---pstree

If you analyze further, you'll see:

# ps -eaf | grep dbus-launch
albinus    4821     1  0 21:48 pts/3    00:00:00 dbus-launch --autolaunch 716f0514c3c408105bcdc5494b5c3d04 --binary-syntax --close-stderr

D-Bus is launched via the auto-launch feature of libdbus. This is
activated by default, if $DISPLAY is set. The invocation command as seen
above is hard-coded in dbus-sysdeps-unix.c, we cannot change it
ourselves.

It would be helpful, if the dbus-launch command would be called with the
--exit-with-session argument, but it isn't. I have no idea how to change
this behaviour.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10710; Package emacs. (Sun, 26 Feb 2012 09:37:02 GMT) Full text and rfc822 format available.

Message #11 received at 10710 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: Per Starback <starback <at> stp.lingfil.uu.se>, 10710 <at> debbugs.gnu.org
Subject: Re: bug#10710: 23.4; left-over dbus processes
Date: Sun, 26 Feb 2012 17:33:17 +0800
Michael Albinus <michael.albinus <at> gmx.de> writes:

> D-Bus is launched via the auto-launch feature of libdbus. This is
> activated by default, if $DISPLAY is set. The invocation command as seen
> above is hard-coded in dbus-sysdeps-unix.c, we cannot change it
> ourselves.

Closing this bug, since it doesn't seem to be an Emacs issue.




bug closed, send any further explanations to 10710 <at> debbugs.gnu.org and starback <at> stp.lingfil.uu.se (Per Starback) Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Sun, 26 Feb 2012 09:37:03 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10710; Package emacs. (Mon, 27 Feb 2012 12:26:01 GMT) Full text and rfc822 format available.

Message #16 received at 10710 <at> debbugs.gnu.org (full text, mbox):

From: starback <at> stp.lingfil.uu.se (Per Starbäck)
To: Chong Yidong <cyd <at> gnu.org>
Cc: Michael Albinus <michael.albinus <at> gmx.de>, 10710 <at> debbugs.gnu.org
Subject: Re: bug#10710: 23.4; left-over dbus processes
Date: Mon, 27 Feb 2012 13:22:00 +0100
> Closing this bug, since it doesn't seem to be an Emacs issue.

It's an issue for Emacs since it means problems for Emacs users.
If there is no workaround for this problem I think "--without-gconf"
should be the default when compiling Emacs. Since font-use-system-font
is nil by default most users won't have use for the gconf support
anyway. (Or is it used for anything else?)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#10710; Package emacs. (Mon, 27 Feb 2012 12:50:02 GMT) Full text and rfc822 format available.

Message #19 received at 10710 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: starback <at> stp.lingfil.uu.se (Per Starbäck)
Cc: Chong Yidong <cyd <at> gnu.org>, 10710 <at> debbugs.gnu.org
Subject: Re: bug#10710: 23.4; left-over dbus processes
Date: Mon, 27 Feb 2012 13:45:56 +0100
starback <at> stp.lingfil.uu.se (Per Starbäck) writes:

> It's an issue for Emacs since it means problems for Emacs users.
> If there is no workaround for this problem I think "--without-gconf"
> should be the default when compiling Emacs. Since font-use-system-font
> is nil by default most users won't have use for the gconf support
> anyway. (Or is it used for anything else?)

I don't know whether it is an Emacs issue. Most of the people would
install Emacs as bundled by their preferred GNU/Linux distribution. So
you would need to ask the distributor.

And a distributor could solve it even otherwise, for example providing a
libdbus-1.so compiled with "--enable-x11-autolaunch=no".

Btw, it isn't only Emacs which suffers from this problem. I have
replayed your initial scenario, starting "gedit" instead of "emacs -Q".
Same result.

Best regards, Michael.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 27 Mar 2012 11:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.