From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Ryan C. Thompson" Newsgroups: gmane.emacs.bugs Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup Date: Sat, 05 May 2012 14:54:15 -0700 Message-ID: <4FA5A187.1010601@thompsonclan.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1336254923 8272 80.91.229.3 (5 May 2012 21:55:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 May 2012 21:55:23 +0000 (UTC) To: 11415@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 05 23:55:22 2012 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 1SQmwi-0006TN-UK for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 May 2012 23:55:21 +0200 Original-Received: from localhost ([::1]:35871 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmwi-0004ff-92 for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 May 2012 17:55:20 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52796) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmwd-0004fM-Ik for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:55:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQmwb-0003xI-97 for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:55:15 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmwb-0003xB-5C for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:55:13 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SQmyN-0006OQ-8G for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:57:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Ryan C. Thompson" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 May 2012 21:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 11415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.133625499124534 (code B ref -1); Sat, 05 May 2012 21:57:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 May 2012 21:56:31 +0000 Original-Received: from localhost ([127.0.0.1]:37487 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQmxq-0006Ne-EB for submit@debbugs.gnu.org; Sat, 05 May 2012 17:56:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47571) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQmxn-0006NR-MF for submit@debbugs.gnu.org; Sat, 05 May 2012 17:56:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQmvs-0003Vl-GP for submit@debbugs.gnu.org; Sat, 05 May 2012 17:54:30 -0400 Original-Received: from lists.gnu.org ([208.118.235.17]:44864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmvs-0003Vb-Cq for submit@debbugs.gnu.org; Sat, 05 May 2012 17:54:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51484) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmvq-0004HI-4b for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:54:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQmvn-0003Rq-8S for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:54:25 -0400 Original-Received: from mail-ob0-f169.google.com ([209.85.214.169]:56757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQmvn-0003RZ-1L for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 17:54:23 -0400 Original-Received: by obbwd18 with SMTP id wd18so7388607obb.0 for ; Sat, 05 May 2012 14:54:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding:x-gm-message-state; bh=QAmW2qTTVqcwoTiLR5pfCGDCJe+zuPhifnofDt/n9OA=; b=bWX9YEkZQxGoHfeD2RUNKy7cPGfaGWB/VXyVvHN7oMFzgLNbPgajW91X5FJjNHWn8y W8SumLiCoFYPvA7x+xgAFCesBqwkRNQkoINtftEj/xh2lvjtsebp8FJOusm3rY8HDSAi A7XSEqPcJMNOnpuvYqDr4eSHCE4ENwf7AK92mInIjRbTaSa5ZxYGYSlJmfvrC8T7xYFS BZGRuSWO84QrH/48xr2j+6lUspt5zoVncJkYmkym3IC2Gq4EN78ilEKIKMzcijqPofRe ElRpAdxkt9FjGWedChx3Z7SKzhW16XaKetLuqL56N81LgkYz7FiJM9X0nUs5U54EEzBy 7+Cg== Original-Received: by 10.182.152.72 with SMTP id uw8mr14731361obb.73.1336254859278; Sat, 05 May 2012 14:54:19 -0700 (PDT) Original-Received: from [192.168.1.202] ([209.134.82.37]) by mx.google.com with ESMTPS id r8sm10763032oer.6.2012.05.05.14.54.17 (version=SSLv3 cipher=OTHER); Sat, 05 May 2012 14:54:18 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 X-Gm-Message-State: ALoCoQkQi3qN+cwLaIbK9hp8ZwsZqQni5CISotTqBDSjtP1RFIIowN0u3K2AtRxvVBaLO9QUY5fh X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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 (newer, 2) 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:59789 Archived-At: This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': It seems that during the startup of any emacs without a terminal (i.e. "--batch" or "--daemon"), recent emacs snapshots cannot make dbus calls. Worse, any attempt to make a dbus call will hang indefinitely. This stops me from being able to use some of my config in emacs, since it is dbus based and cannot be loaded on startup in daemon mode. Specifically, I can easily reproduce the bug like this: emacs-snapshot -Q --batch -l dbus --eval '(message "DBus system names: %s" (dbus-call-method :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus "ListNames"))' Running the same command with emacs 23 works just fine: emacs23 -Q --batch -l dbus --eval '(message "DBus system names: %s" (dbus-call-method :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus "ListNames"))' Running the same command *without* batch mode works just fine (I add the extra kill-emacs eval so that you can run it from the command line without having to close emacs afterward): emacs-snapshot -Q -l dbus --eval '(message "DBus system names: %s" (dbus-call-method :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus "ListNames"))' \ --eval '(kill-emacs)' Running the same command in daemon mode triggers the bug: emacs-snapshot -Q --daemon -l dbus --eval '(message "DBus system names: %s" (dbus-call-method :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus "ListNames"))' However, starting the daemon and running the dbus call through emacsclient works fine: emacs-snapshot -Q --daemon -l dbus; emacsclient --eval '(message "DBus system names: %s" (dbus-call-method :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus "ListNames"))'; # Clean up emacsclient --eval '(kill-emacs)' I am using the Emacs 23 from the Ubuntu 12.04 repos, and the emacs-snapshot from this PPA: https://launchpad.net/~cassou/+archive/emacs, which I believe is generally built weekly. This started happening within the last month or so (I'm not sure how far behind that PPA lags, so add some time on for that as well). There is no backtrace or anything, because the dbus call never returns. It just hangs until I press Control+C. I am willing to try fixes and debug things if people will tell me what to do. If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /usr/share/emacs/24.1.50/etc/DEBUG. In GNU Emacs 24.1.50.1 (x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2012-05-02 on meitnerium, modified by Debian (emacs-snapshot package, version 2:20120502-1~ppa1~precise1) Windowing system distributor `The X.Org Foundation', version 11.0.11103000 Configured using: `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.1.50/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.1.50/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib/x86_64-linux-gnu/' '--with-x=yes' '--with-x-toolkit=lucid' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed -znocombreloc' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: /usr/share/emacs/24.1.50/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup /usr/share/emacs/24.1.50/site-lisp/flim/hex-util hides /usr/share/emacs/24.1.50/lisp/hex-util /usr/share/emacs/24.1.50/site-lisp/flim/md4 hides /usr/share/emacs/24.1.50/lisp/md4 /usr/share/emacs/site-lisp/rst hides /usr/share/emacs/24.1.50/lisp/textmodes/rst /usr/share/emacs/24.1.50/site-lisp/flim/ntlm hides /usr/share/emacs/24.1.50/lisp/net/ntlm /usr/share/emacs/24.1.50/site-lisp/flim/sasl-ntlm hides /usr/share/emacs/24.1.50/lisp/net/sasl-ntlm /usr/share/emacs/24.1.50/site-lisp/flim/sasl hides /usr/share/emacs/24.1.50/lisp/net/sasl /usr/share/emacs/24.1.50/site-lisp/flim/sasl-digest hides /usr/share/emacs/24.1.50/lisp/net/sasl-digest /usr/share/emacs/24.1.50/site-lisp/flim/sasl-cram hides /usr/share/emacs/24.1.50/lisp/net/sasl-cram /usr/share/emacs/24.1.50/site-lisp/flim/hmac-def hides /usr/share/emacs/24.1.50/lisp/net/hmac-def /usr/share/emacs/24.1.50/site-lisp/flim/hmac-md5 hides /usr/share/emacs/24.1.50/lisp/net/hmac-md5 Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting x-toolkit x multi-tty emacs)