GNU bug report logs - #5283
23.1.90; If dbus session bus is not available, emacs is busily trying to contact it

Previous Next

Package: emacs;

Reported by: Andreas Köhler <andi5.py <at> gmx.net>

Date: Tue, 6 Oct 2009 18:55:07 UTC

Severity: normal

Done: Glenn Morris <rgm <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 5283 in the body.
You can then email your comments to 5283 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-submit-list <at> lists.donarmstrong.com, svenjoac <at> gmx.de, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#5284; Package emacs. (Wed, 09 Dec 2009 09:45:06 GMT) Full text and rfc822 format available.

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

From: Andreas Köhler <andi5.py <at> gmx.net>
To: emacs-pretest-bug <at> gnu.org
Subject: bug#5283: 23.1.90;
	If dbus session bus is not available, emacs is busily trying to
	contact it
Date: Tue, 29 Dec 2009 18:56:24 +0100
In GNU Emacs 23.1.90.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.18.3)
 of 2009-12-29 on ubuntu
configured using `configure  '--prefix=/home/andi/dev/emacs/inst''

Git: 9a339f5040b089f97a4b5c86eefa3942b2e5eda4

Initially, I observed that emacs-snapshot from ubuntu karmic in a dtach 
session as server starts using 100% of the cpu when i logged out. It 
seemed to be trying to contact the dbus session bus all the time, even 
after I logged in again.

I tried to track this down a bit further, so now the info is:

- emacs built from the git repo (9a339f5), with dbus support
- log in
- emacs -Q --daemon --eval "(require 'tramp)"
- log out

-> emacs is eating the whole cpu, but also growing with about 100 MB per 
second of resident memory. As I needed to kill it very quickly, I am not 
sure whether the dbus_bus_get calls are still the root cause of the problem.


Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5283; Package emacs. (Tue, 05 Jan 2010 23:03:55 GMT) Full text and rfc822 format available.

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

From: Chong Yidong <cyd <at> stupidchicken.com>
To: Michael Albinus  <michael.albinus <at> gmx.de>
Cc: 5283 <at> debbugs.gnu.org, Andreas Köhler <andi5.py <at> gmx.net>
Subject: Re: bug#5283: 23.1.90;
	If dbus session bus is not available, emacs is busily trying to
	contact it
Date: Fri, 01 Jan 2010 16:33:28 -0500
> Initially, I observed that emacs-snapshot from ubuntu karmic in a
> dtach session as server starts using 100% of the cpu when i logged
> out. It seemed to be trying to contact the dbus session bus all the
> time, even after I logged in again.
>
> I tried to track this down a bit further, so now the info is:
>
> - emacs built from the git repo (9a339f5), with dbus support
> - log in
> - emacs -Q --daemon --eval "(require 'tramp)"
> - log out
>
> -> emacs is eating the whole cpu, but also growing with about 100 MB
> per second of resident memory. As I needed to kill it very quickly, I
> am not sure whether the dbus_bus_get calls are still the root cause of
> the problem.

Hmm, I can't seem to reproduce this.  Michael, can you?




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5283; Package emacs. (Tue, 05 Jan 2010 23:03:55 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5283 <at> debbugs.gnu.org, Andreas Köhler <andi5.py <at> gmx.net>
Subject: Re: bug#5283: 23.1.90; If dbus session bus is not available, emacs
	is busily trying to contact it
Date: Sat, 02 Jan 2010 09:01:42 +0100
Chong Yidong wrote:
> Hmm, I can't seem to reproduce this.  Michael, can you?
>   
I've seen the report. I'm just fighting with some local problems; when 
my laptop is back to business, I'll investigate.

Best regards, Michael.




Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5283; Package emacs. (Tue, 05 Jan 2010 23:03:55 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5283 <at> debbugs.gnu.org, "=?UTF-8?B?QW5kcmVhcyBLw7,
	ZobGVy?=" <andi5.py <at> gmx.net>
Subject: Re: bug#5283: 23.1.90; If dbus session bus is not available, emacs
	is busily trying to contact it
Date: Sun, 03 Jan 2010 20:34:06 +0100
[Message part 1 (text/plain, inline)]
Looks like my previous mail didn't receive anybody, so I append it.

A simple scenario to force the problem (and to debug it) in a shell:

$ eval `dbus-launch`
$ emacs -Q --eval "(require 'tramp)" &
[1] 21501
$ kill -9 $DBUS_SESSION_BUS_PID

Best regards, Michael.

[Message part 2 (message/rfc822, inline)]
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Chong Yidong <cyd <at> stupidchicken.com>
Cc: 5283 <at> debbugs.gnu.org, =?UTF-8?B?QW5kcmVhcyBLw7ZobGVy?=
 <andi5.py <at> gmx.net>
Subject: Re: bug#5283: 23.1.90; If dbus session bus is not available, emacs
 is busily trying to contact it
Date: Sat, 02 Jan 2010 09:01:42 +0100
Chong Yidong wrote:
> Hmm, I can't seem to reproduce this.  Michael, can you?
>   
I've seen the report. I'm just fighting with some local problems; when 
my laptop is back to business, I'll investigate.

Best regards, Michael.


Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#5283; Package emacs. (Tue, 05 Jan 2010 23:03:56 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Köhler <andi5.py <at> gmx.net>
Cc: 5283 <at> debbugs.gnu.org
Subject: Re: bug#5283: 23.1.90;
	If dbus session bus is not available, emacs is busily trying to
	contact it
Date: Sun, 03 Jan 2010 20:52:37 +0100
Andreas Köhler <andi5.py <at> gmx.net> writes:

> Initially, I observed that emacs-snapshot from ubuntu karmic in a
> dtach session as server starts using 100% of the cpu when i logged
> out. It seemed to be trying to contact the dbus session bus all the
> time, even after I logged in again.

When you log out, the D-Bus session bus is killed. Emacs' dbusbind does
not recognize that, and still tries to poll the session bus.

I've added unsetting of $DBUS_SESSION_BUS_ADDRESS in xd_remove_watch,
when the session bus is meant. This shall fix the problem (at least, it
does it for me).

Thanks for reporting, and best regards, Michael.




bug closed, send any further explanations to Andreas Köhler <andi5.py <at> gmx.net> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Tue, 05 Jan 2010 23:37:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <bug-gnu-emacs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 03 Feb 2010 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 15 years and 138 days ago.

Previous Next


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