From unknown Tue Jun 17 01:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup 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: To: 11415@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133625499124534 (code B ref -1); Sat, 05 May 2012 21:57:02 +0000 Received: (at submit) by debbugs.gnu.org; 5 May 2012 21:56:31 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,FROM_12LTRDOM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 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 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 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 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 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== Received: by 10.182.152.72 with SMTP id uw8mr14731361obb.73.1336254859278; Sat, 05 May 2012 14:54:19 -0700 (PDT) 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) Message-ID: <4FA5A187.1010601@thompsonclan.org> Date: Sat, 05 May 2012 14:54:15 -0700 From: "Ryan C. Thompson" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-Received-From: 208.118.235.17 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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) From unknown Tue Jun 17 01:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 06 May 2012 11:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Ryan C. Thompson" Cc: 11415@debbugs.gnu.org Received: via spool by 11415-submit@debbugs.gnu.org id=B11415.133630212315523 (code B ref 11415); Sun, 06 May 2012 11:03:01 +0000 Received: (at 11415) by debbugs.gnu.org; 6 May 2012 11:02:03 +0000 Received: from localhost ([127.0.0.1]:37884 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQzE1-000425-85 for submit@debbugs.gnu.org; Sun, 06 May 2012 07:02:03 -0400 Received: from mailout-de.gmx.net ([213.165.64.23]:42819) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SQzDx-00041l-RD for 11415@debbugs.gnu.org; Sun, 06 May 2012 07:02:00 -0400 Received: (qmail invoked by alias); 06 May 2012 10:59:57 -0000 Received: from p57BB9A1E.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.154.30] by mail.gmx.net (mp037) with SMTP; 06 May 2012 12:59:57 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/1ClofMJv1aroHYAmjGf0Jgz/R0JpPRfX8BSyJGG Aanp+4x8w+45aZ From: Michael Albinus References: <4FA5A187.1010601@thompsonclan.org> Date: Sun, 06 May 2012 12:59:54 +0200 In-Reply-To: <4FA5A187.1010601@thompsonclan.org> (Ryan C. Thompson's message of "Sat, 05 May 2012 14:54:15 -0700") Message-ID: <87d36hshg5.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) "Ryan C. Thompson" writes: > 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"))' In Emacs 24.1.50, `dbus-call-method' changed from a synchronous call to an asynchronous one (see etc/NEWS). If Emacs runs in batch mode, it doesn't seem to read incoming events. Therefore, the return event of the call is not read. I will see what can be done. Either we must enable Emacs to receive some special input events also in batch mode. Or we must check inside `dbus-call-method', whether Emacs runs daemonized, and use the blocking call then. I would prefer the first alternative, because receiving D-Bus signals and running Emacs as D-Bus enabled server does not work either when Emacs does not accept incoming events. > There is no backtrace or anything, because the dbus call never > returns. In theory, it shall accept at least timeouts, like emacs -Q --daemon -l dbus --eval \ '(message "DBus system names: %s" \ (dbus-call-method \ :system dbus-service-dbus dbus-path-dbus dbus-interface-dbus \ "ListNames" :timeout 5000))' But it doesn't, which is another bug to be fixed. Best regards, Michael. From unknown Tue Jun 17 01:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup In-Reply-To: <4FA5A187.1010601@thompsonclan.org> Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 May 2012 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: "Ryan C. Thompson" Cc: Christopher Schmidt , 11415@debbugs.gnu.org Received: via spool by 11415-submit@debbugs.gnu.org id=B11415.133640101910325 (code B ref 11415); Mon, 07 May 2012 14:31:02 +0000 Received: (at 11415) by debbugs.gnu.org; 7 May 2012 14:30:19 +0000 Received: from localhost ([127.0.0.1]:39637 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SROx8-0002gT-M9 for submit@debbugs.gnu.org; Mon, 07 May 2012 10:30:19 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:42150) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SROx5-0002gF-IE for 11415@debbugs.gnu.org; Mon, 07 May 2012 10:30:16 -0400 Received: (qmail invoked by alias); 07 May 2012 14:28:07 -0000 Received: from p57BB97FB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.151.251] by mail.gmx.net (mp036) with SMTP; 07 May 2012 16:28:07 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/XVYl4ghHXJYbOVLckgk8m/JbJJ7aVvnJRhJWB0g HyV8+WZVcLNJ4x From: Michael Albinus References: <4FA5A187.1010601@thompsonclan.org> <87d36hshg5.fsf@gmx.de> Date: Mon, 07 May 2012 16:28:05 +0200 Message-ID: <87fwbc9ibu.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Michael Albinus writes: > In Emacs 24.1.50, `dbus-call-method' changed from a synchronous call to > an asynchronous one (see etc/NEWS). If Emacs runs in batch mode, it > doesn't seem to read incoming events. Therefore, the return event of the > call is not read. > > I will see what can be done. Either we must enable Emacs to receive some > special input events also in batch mode. Or we must check inside > `dbus-call-method', whether Emacs runs daemonized, and use the blocking > call then. > > I would prefer the first alternative, because receiving D-Bus signals and > running Emacs as D-Bus enabled server does not work either when Emacs > does not accept incoming events. I have debugged further. The problem is in kbd_buffer_get_event of keyboard.c - it does not read special events when noninteractive. The following patch cures the problem for me: --8<---------------cut here---------------start------------->8--- *** /home/albinus/src/emacs/src/keyboard.c.~108144~ --- /home/albinus/src/emacs/src/keyboard.c *************** *** 3801,3806 **** --- 3801,3807 ---- } #endif /* subprocesses */ + #if 0 /* We want to read special events in batch mode. */ if (noninteractive /* In case we are running as a daemon, only do this before detaching from the terminal. */ *************** *** 3811,3816 **** --- 3812,3818 ---- *kbp = current_kboard; return obj; } + #endif /* Wait until there is input available. */ for (;;) --8<---------------cut here---------------end--------------->8--- However, I don't know whether it has undesired side effects. What do people think? Best regards, Michael. From unknown Tue Jun 17 01:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup Resent-From: Christopher Schmidt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 07 May 2012 15:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 11415@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.133640323113611 (code B ref -1); Mon, 07 May 2012 15:08:01 +0000 Received: (at submit) by debbugs.gnu.org; 7 May 2012 15:07:11 +0000 Received: from localhost ([127.0.0.1]:39656 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRPWi-0003XM-FQ for submit@debbugs.gnu.org; Mon, 07 May 2012 11:07:11 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49286) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRPWe-0003Wp-Kr for submit@debbugs.gnu.org; Mon, 07 May 2012 11:07:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRPUV-0007lL-SO for submit@debbugs.gnu.org; Mon, 07 May 2012 11:04:53 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:36599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRPUV-0007lC-Ma for submit@debbugs.gnu.org; Mon, 07 May 2012 11:04:47 -0400 Received: from eggs.gnu.org ([208.118.235.92]:52553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRPUP-0002Uv-1z for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 11:04:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SRPUI-0007jC-HF for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 11:04:40 -0400 Received: from ristopher.com ([146.185.21.93]:55435 helo=saturn.ch.ristopher.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SRPUI-0007i9-4a for bug-gnu-emacs@gnu.org; Mon, 07 May 2012 11:04:34 -0400 Received: by saturn.ch.ristopher.com (Postfix, from userid 0) id DB6222027A; Mon, 7 May 2012 16:04:29 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ch.ristopher.com; s=mail; t=1336403069; bh=arFuo7jRtjkwVG0ue+nde476I2c0T7DS61aGG4IXmNc=; h=From:To:Subject:In-Reply-To:References:Date:MIME-Version: Content-Type:Message-Id; b=dd1eYZjN51JO+ycgjvy3fYfRw0IxwjjjmY4VNwM6H5wXeBKG9VjbqOaw58j+Tllxz 1hL9z+0TiVtg6breZLYOM8zXBgQnGW5a2X+metXjLbpfnANOP5W+mhhFt3VNQ3rCtW OBfAVv/LDNXQY2Z8986JhowIM6SCopVd9bNlOfoo= From: Christopher Schmidt In-Reply-To: <87fwbc9ibu.fsf@gmx.de> (Michael Albinus's message of "Mon, 07 May 2012 16:28:05 +0200") References: <4FA5A187.1010601@thompsonclan.org> <87d36hshg5.fsf@gmx.de> <87fwbc9ibu.fsf@gmx.de> Mail-Followup-To: bug-gnu-emacs@gnu.org Date: Mon, 07 May 2012 17:04:30 +0200 MIME-Version: 1.0 Content-Type: text/plain Message-Id: <20120507150429.DB6222027A@saturn.ch.ristopher.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 208.118.235.17 X-Spam-Score: -6.9 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) Michael Albinus writes: > Michael Albinus writes: > > I have debugged further. The problem is in kbd_buffer_get_event of > keyboard.c - it does not read special events when noninteractive. The > following patch cures the problem for me: [...] > However, I don't know whether it has undesired side effects. What do > people think? The patches fixes the problem for me as well. To me the patch looks correct. (I run emacs --daemon directly in my .Xsession and do not expect any interactions until I spawn the first frame.) Christopher From debbugs-submit-bounces@debbugs.gnu.org Tue May 08 06:04:26 2012 Received: (at control) by debbugs.gnu.org; 8 May 2012 10:04:26 +0000 Received: from localhost ([127.0.0.1]:40525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SRhHO-0000mY-77 for submit@debbugs.gnu.org; Tue, 08 May 2012 06:04:26 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:43403) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1SRhHM-0000mN-W0 for control@debbugs.gnu.org; Tue, 08 May 2012 06:04:25 -0400 Received: (qmail invoked by alias); 08 May 2012 10:02:13 -0000 Received: from p57BB9469.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.148.105] by mail.gmx.net (mp034) with SMTP; 08 May 2012 12:02:13 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18lsp12CGklTgIx6/LUuUJ7AhpD4TpY55JCTIDGXl vsLdkQ2JWWR+Vu Date: Tue, 08 May 2012 12:02:11 +0200 Message-Id: <87havr56u4.fsf@gmx.de> To: control@debbugs.gnu.org From: Michael Albinus Subject: control message for bug #11415 X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) tags 11415 patch From unknown Tue Jun 17 01:43:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.428 (Entity 5.428) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: "Ryan C. Thompson" Subject: bug#11415: closed (Re: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup) Message-ID: References: <87r4un1bqj.fsf@gmx.de> <4FA5A187.1010601@thompsonclan.org> X-Gnu-PR-Message: they-closed 11415 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 11415@debbugs.gnu.org Date: Mon, 14 May 2012 07:09:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1336979343-19631-1" This is a multi-part message in MIME format... ------------=_1336979343-19631-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 11415@debbugs.gnu.org. --=20 11415: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D11415 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1336979343-19631-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 11415-done) by debbugs.gnu.org; 14 May 2012 07:08:58 +0000 Received: from localhost ([127.0.0.1]:51999 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STpOr-00056M-MR for submit@debbugs.gnu.org; Mon, 14 May 2012 03:08:58 -0400 Received: from mailout-de.gmx.net ([213.165.64.22]:55525) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1STpOU-00055o-SV for 11415-done@debbugs.gnu.org; Mon, 14 May 2012 03:08:54 -0400 Received: (qmail invoked by alias); 14 May 2012 07:08:07 -0000 Received: from p57BB95CB.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.149.203] by mail.gmx.net (mp024) with SMTP; 14 May 2012 09:08:07 +0200 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18vcR9/YgQv3Zvd9bnT/ID2xblEyjcIP/eCizJR9x sMUxKElNiAT5FB From: Michael Albinus To: "Ryan C. Thompson" Subject: Re: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup References: <4FA5A187.1010601@thompsonclan.org> <87d36hshg5.fsf@gmx.de> <87fwbc9ibu.fsf@gmx.de> Date: Mon, 14 May 2012 09:08:04 +0200 In-Reply-To: <87fwbc9ibu.fsf@gmx.de> (Michael Albinus's message of "Mon, 07 May 2012 16:28:05 +0200") Message-ID: <87r4un1bqj.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 11415-done Cc: 11415-done@debbugs.gnu.org, Christopher Schmidt X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Michael Albinus writes: > I have debugged further. The problem is in kbd_buffer_get_event of > keyboard.c - it does not read special events when noninteractive. The > following patch cures the problem for me: > > --8<---------------cut here---------------start------------->8--- > *** /home/albinus/src/emacs/src/keyboard.c.~108144~ > --- /home/albinus/src/emacs/src/keyboard.c > *************** > *** 3801,3806 **** > --- 3801,3807 ---- > } > #endif /* subprocesses */ > > + #if 0 /* We want to read special events in batch mode. */ > if (noninteractive > /* In case we are running as a daemon, only do this before > detaching from the terminal. */ > *************** > *** 3811,3816 **** > --- 3812,3818 ---- > *kbp = current_kboard; > return obj; > } > + #endif > > /* Wait until there is input available. */ > for (;;) > --8<---------------cut here---------------end--------------->8--- > > However, I don't know whether it has undesired side effects. What do > people think? Nobody has objected, so I have committed the patch. Bug closed. Best regards, Michael. ------------=_1336979343-19631-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 5 May 2012 21:56:31 +0000 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 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 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 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=5.0 tests=BAYES_00,FROM_12LTRDOM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2 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 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 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 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 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== Received: by 10.182.152.72 with SMTP id uw8mr14731361obb.73.1336254859278; Sat, 05 May 2012 14:54:19 -0700 (PDT) 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) Message-ID: <4FA5A187.1010601@thompsonclan.org> Date: Sat, 05 May 2012 14:54:15 -0700 From: "Ryan C. Thompson" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-Received-From: 208.118.235.17 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.9 (------) 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) ------------=_1336979343-19631-1-- From unknown Tue Jun 17 01:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: bug#11415: 24.1.50; Dbus hangs indefinitely during batch mode & daemon startup References: <4FA5A187.1010601@thompsonclan.org> In-Reply-To: <4FA5A187.1010601@thompsonclan.org> Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 14 May 2012 15:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11415 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 11415@debbugs.gnu.org Received: via spool by 11415-submit@debbugs.gnu.org id=B11415.13370094886521 (code B ref 11415); Mon, 14 May 2012 15:32:02 +0000 Received: (at 11415) by debbugs.gnu.org; 14 May 2012 15:31:28 +0000 Received: from localhost ([127.0.0.1]:52998 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STxF9-0001h7-81 for submit@debbugs.gnu.org; Mon, 14 May 2012 11:31:27 -0400 Received: from smtp.cs.ucla.edu ([131.179.128.62]:56561) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1STxEn-0001gB-5c for 11415@debbugs.gnu.org; Mon, 14 May 2012 11:31:25 -0400 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 066AEA60004 for <11415@debbugs.gnu.org>; Mon, 14 May 2012 08:30:37 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu 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 DPMhmWPi5pNN for <11415@debbugs.gnu.org>; Mon, 14 May 2012 08:30:36 -0700 (PDT) Received: from penguin.cs.ucla.edu (Penguin.CS.UCLA.EDU [131.179.64.200]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 58C7E39E800A for <11415@debbugs.gnu.org>; Mon, 14 May 2012 08:30:36 -0700 (PDT) Message-ID: <4FB1251C.3020604@cs.ucla.edu> Date: Mon, 14 May 2012 08:30:36 -0700 From: Paul Eggert Organization: UCLA Computer Science Department User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: -1.9 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) That patch had a minor issue with it, discovered by configuring with "./configure --enable-gcc-warnings", in that it sometimes resulted in a local variable that was never used. I installed the following further patch to work around this. These days there's no point to making such variables 'register' so I removed the 'register' while I was at it. === modified file 'src/ChangeLog' --- src/ChangeLog 2012-05-14 15:11:10 +0000 +++ src/ChangeLog 2012-05-14 15:22:29 +0000 @@ -1,5 +1,7 @@ 2012-05-14 Paul Eggert + * keyboard.c (kbd_buffer_get_event) [!HAVE_DBUS]: Omit unused local. + * unexaix.c: Port to more-recent AIX compilers. (report_error, report_error_1, make_hdr, copy_sym) (mark_x, adjust_lnnoptrs, unrelocate_symbols): === modified file 'src/keyboard.c' --- src/keyboard.c 2012-05-14 07:05:03 +0000 +++ src/keyboard.c 2012-05-14 15:22:29 +0000 @@ -3786,7 +3786,6 @@ int *used_mouse_menu, struct timeval *end_time) { - register int c; Lisp_Object obj; #ifdef subprocesses @@ -3809,7 +3808,7 @@ detaching from the terminal. */ || (IS_DAEMON && daemon_pipe[1] >= 0)) { - c = getchar (); + int c = getchar (); XSETINT (obj, c); *kbp = current_kboard; return obj;