From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#14474: 24.3.50; Zombie subprocesses (again) Date: Sun, 26 May 2013 10:37:52 -0700 Organization: UCLA Computer Science Department Message-ID: <51A24870.8020909@cs.ucla.edu> References: <87ppwevddb.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1369589947 32349 80.91.229.3 (26 May 2013 17:39:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 26 May 2013 17:39:07 +0000 (UTC) To: 14474@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 26 19:39:05 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UgeuN-0001Gl-UW for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 19:39:04 +0200 Original-Received: from localhost ([::1]:47342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgeuN-00077o-DQ for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 May 2013 13:39:03 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:39268) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgeuJ-00077R-0a for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 13:39:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UgeuE-0001yz-OY for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 13:38:58 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47317) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UgeuE-0001yu-Lk for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 13:38:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UgevK-0005AW-7R for bug-gnu-emacs@gnu.org; Sun, 26 May 2013 13:40:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87ppwevddb.fsf@web.de> Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 May 2013 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14474 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14474-submit@debbugs.gnu.org id=B14474.136958995619781 (code B ref 14474); Sun, 26 May 2013 17:40:02 +0000 Original-Received: (at 14474) by debbugs.gnu.org; 26 May 2013 17:39:16 +0000 Original-Received: from localhost ([127.0.0.1]:35675 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgeuY-00058x-8k for submit@debbugs.gnu.org; Sun, 26 May 2013 13:39:15 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]:37455) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UgeuV-00058h-TU for 14474@debbugs.gnu.org; Sun, 26 May 2013 13:39:13 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id ACEC5A60001 for <14474@debbugs.gnu.org>; Sun, 26 May 2013 10:37:57 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22OxERg-To2W for <14474@debbugs.gnu.org>; Sun, 26 May 2013 10:37:56 -0700 (PDT) Original-Received: from [192.168.1.9] (pool-71-108-49-126.lsanca.fios.verizon.net [71.108.49.126]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id E7DC539E8108 for <14474@debbugs.gnu.org>; Sun, 26 May 2013 10:37:56 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:74580 Archived-At: A workaround, for me at least, is to propagate the DBUS_SESSION_BUS_ADDRESS environment variable into the child process with a different userid. For example, here is a failing session, where I became the user 'exp' and later observed the problem in a shell window: $ env | grep DBUS DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bpx4rxPk7z,guid=6e491bf38a5b2b6fce17d0a251a221bf $ sudo sh # su exp $ env | grep DBUS $ emacs ** (emacs:15115): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-x2KgryK9C8: Connection refused And here is a session that worked. The key difference is that I used su's '-E' option: $ env | grep DBUS DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bpx4rxPk7z,guid=6e491bf38a5b2b6fce17d0a251a221bf $ sudo -E sh # su exp $ env | grep DBUS DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-bpx4rxPk7z,guid=6e491bf38a5b2b6fce17d0a251a221bf $ emacs ** (emacs:15441): WARNING **: Couldn't connect to accessibility bus: Failed to connect to socket /tmp/dbus-x2KgryK9C8: Connection refused In both cases, the dbus library complains to stderr that it can't connect to /tmp/dbus-x2KgryK9C8 (I don't know where it's getting that name from). When DBUS_SESSION_BUS_ADDRESS is unset, the dbus library arranges to run the shell script /usr/bin/dbus-launch, which seems to cause the problem. But when DBUS_SESSION_BUS_ADDRESS is set, the dbus library falls back on its contents and doesn't invoke dbus-launch.