From unknown Fri Jun 20 19:51:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62018: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 06 Mar 2023 23:46:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 62018@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167814634217181 (code B ref -1); Mon, 06 Mar 2023 23:46:01 +0000 Received: (at submit) by debbugs.gnu.org; 6 Mar 2023 23:45:42 +0000 Received: from localhost ([127.0.0.1]:43984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZKWT-0004T2-K8 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 18:45:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:51142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZKWR-0004Sv-KX for submit@debbugs.gnu.org; Mon, 06 Mar 2023 18:45:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZKWR-00083W-FG for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 18:45:39 -0500 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZKWO-0007xn-UK for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 18:45:39 -0500 From: Spencer Baugh Date: Mon, 06 Mar 2023 18:45:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 1. emacs --batch --eval '(execute-kbd-macro (read-kbd-macro "M-: (require SPC (quote SPC dbus)) RET"))' 2. Observe that it hangs forever. Note that this doesn't need to be direct; running any command through execute-kbd-macro which eventually loads dbus will hang indefinitely. (battery), for example. This may seem like an odd thing to do, but I use execute-kbd-macro to run tests for keybindings in my Emacs packages. This issue appears to also happen on Emacs 28 and Emacs 27. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2023-02-27 built on igm-qws-u22796a Repository revision: af94369f90a5d3ad44dcc80d205665ccb2d41995 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --with-gif=ifavailable' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 45855 9960) (symbols 48 7444 0) (strings 32 17715 2032) (string-bytes 1 502705) (vectors 16 9297) (vector-slots 8 147891 12010) (floats 8 31 19) (intervals 56 211 0) (buffers 976 10) (heap 1024 17345 1168)) From unknown Fri Jun 20 19:51:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62018: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Spencer Baugh Cc: 62018@debbugs.gnu.org Received: via spool by 62018-submit@debbugs.gnu.org id=B62018.16800991936951 (code B ref 62018); Wed, 29 Mar 2023 14:14:01 +0000 Received: (at 62018) by debbugs.gnu.org; 29 Mar 2023 14:13:13 +0000 Received: from localhost ([127.0.0.1]:54669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phWY4-0001o2-LB for submit@debbugs.gnu.org; Wed, 29 Mar 2023 10:13:12 -0400 Received: from mout.gmx.net ([212.227.17.20]:55819) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phWY1-0001nm-Q1 for 62018@debbugs.gnu.org; Wed, 29 Mar 2023 10:13:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1680099182; i=michael.albinus@gmx.de; bh=9XX7nG4/jaeIf0/ZiQzgjvdNtL8kk23/wMfKIyZ5uos=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=L8ixrgjpPL9wkm5O76SwcAVY+Uqnl8aHRG+zBSXsKFNjR3fX60vjsCIqBFXfSzrOL MeLSDWf+BsQ2PrEjP388pwdW2bfKUdRfbZzxoWfDm8Js2X+29GDXDkmNrFu4tcnMdE tPquSRgpAV2L9UaDJmcpw19//3QIULmWazrvRXz+CUhahywx7IZF7gaP5UI1j5/C3t xMazr8QQdvF/oSCZMT7jXifL33VISF8vuDvTrRDx0Gozed/7ITtjEFGLrwgc89K7yB r7p+cGb0qK9uOLds95MPf+/gm4V4171uEfwNlbpzLPbWP6f2UO6yT4Y3igSd7tMsfE gWdUJGgoJls3w== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1M9nxt-1pl6uu3fhV-005mAz; Wed, 29 Mar 2023 16:13:01 +0200 From: Michael Albinus In-Reply-To: (Spencer Baugh's message of "Mon, 06 Mar 2023 18:45:35 -0500") References: Date: Wed, 29 Mar 2023 16:13:01 +0200 Message-ID: <87y1nfejde.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:9XBAEvMeFC+ez5liovVNx9PacYs3T3fTqQyZYYLb5gq6Po1o3n7 Ox6zRmwdlnWX5v1RhlXKjuuTnxUTrJhhE/BA+xsBEQWXvpBr9GHzAYLzKytAdfIDWbDmgT3 x9Ud7MUK8FVtLruUgm90+d4XwnSOZL+JOkHbe+YallfmobQdRhdpDsHWf0RNPdTETVoIf+G JVgxlr58zd9+8b8QQkZRw== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:mEi1xLWy068=;PmzmOft0avKUaakhLum/81Yrc/q Vjml0Gy858AF3lBGf4GQVBcJ1G4INKsKe+Pcbc3E0d8wkCkX0yUaHI9ZuttiIKWyp5ukpPASV hqb/xitJXUbX/IhS33IBhZiQlCCoog1Xd9jxd0ctCBqTGiA9blgdh/FZpkLQE0ykgUR9x9G2F tRK4tYNjiJdrrn+jT4UuVht4BIwhT7VSzr+6ei/XUy1RtqwSvu4djFvcsMZnp6ClxBam4kvNc MGgMkCB7URntAg5y1q4eA6w+MLqCPwK9TmGryXF0Fp+klSYfZhguc/OkuCzPtraSOE9cBQ57/ nJo8wZM56Rpd3JAPw/8lLhrxlp/Tj/DdbZLkB3Py09avr2ypd+p8GusDxk1oy7+hqNCd5kqPK zJfj+K3DrKGPBuFLikqjFWlewB+uXR4NyCyD7SLMW3/6U0TbTgcWveYUULpOm2aG1EQBUbv4D ZUTJVODfkg94UGqLzK5ngujnvsQHQ7NFQuwzD/YoTEmLoeZvvMDqN1A7TWbqJ78RYGObXoRxw TpKG/a+oCKG4si37zfoLS+1gYzeK/EckrMBcuYEqGI6b8jOK47KILPY8ICb1xTGKaG3IvCdKf dCVuVapipl6Xkqj+WuTtgv7iFdTLeZAjwo4JrXPq0hga4spo7uA78/ty2Vk7/j04iSNSiDURi I7B/cbC+AIKPBnI4C6yiPeFcfK9gDNSzXtZsfjukoT/AnTtJKbg0+uyKOdd5+UFXUqqETTNuv ZupYmYCDtL0CVA2gL2mqFP0w5BdPLrd0wkPL/FjDgxQBvPDfyZq/dQIdjjFUKz6wy9B42Itl3 gjke8Jf0jWgX0YLpwZ2+Y02c6jGci1biHzTMkdGTUxNChzollZlQuKo6GowwasJzChZFVlj2Q bpHKT47Fqf24kEXcC4UpzzLf5FuhkLkMFsmCYcQPTLMMO0WEVpOn01DPmpwPN7F4nknO1kPWs COFYsQK+8/KfjNj8WAU4kAgqDuI= X-Spam-Score: -0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Spencer Baugh writes: Hi Spencer, > 1. emacs --batch --eval '(execute-kbd-macro (read-kbd-macro "M-: > (require SPC (quote SPC dbus)) RET"))' > 2. Observe that it hangs forever. > > Note that this doesn't need to be direct; running any command through > execute-kbd-macro which eventually loads dbus will hang indefinitely. > (battery), for example. Thanks for the report, I've pushed a fix to master. Could you, please, check? Best regards, Michael. From unknown Fri Jun 20 19:51:01 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62018: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro Resent-From: Spencer Baugh Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 29 Mar 2023 18:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 62018 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: 62018@debbugs.gnu.org Received: via spool by 62018-submit@debbugs.gnu.org id=B62018.16801155691820 (code B ref 62018); Wed, 29 Mar 2023 18:47:01 +0000 Received: (at 62018) by debbugs.gnu.org; 29 Mar 2023 18:46:09 +0000 Received: from localhost ([127.0.0.1]:54967 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phaoC-0000TI-W9 for submit@debbugs.gnu.org; Wed, 29 Mar 2023 14:46:09 -0400 Received: from mxout5.mail.janestreet.com ([64.215.233.18]:40067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phao9-0000Sc-AK for 62018@debbugs.gnu.org; Wed, 29 Mar 2023 14:46:07 -0400 From: Spencer Baugh In-Reply-To: <87y1nfejde.fsf@gmx.de> (Michael Albinus's message of "Wed, 29 Mar 2023 16:13:01 +0200") References: <87y1nfejde.fsf@gmx.de> Date: Wed, 29 Mar 2023 14:45:59 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Michael Albinus writes: > Spencer Baugh writes: > > Hi Spencer, > >> 1. emacs --batch --eval '(execute-kbd-macro (read-kbd-macro "M-: >> (require SPC (quote SPC dbus)) RET"))' >> 2. Observe that it hangs forever. >> >> Note that this doesn't need to be direct; running any command through >> execute-kbd-macro which eventually loads dbus will hang indefinitely. >> (battery), for example. > > Thanks for the report, I've pushed a fix to master. Could you, please, check? That change fixes my minimal reproducer (sent in the initial email) and also fixes my larger test framework based on execute-kbd-macro. Thank you! From unknown Fri Jun 20 19:51:01 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Spencer Baugh Subject: bug#62018: closed (Re: bug#62018: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro) Message-ID: References: <87wn2z75sk.fsf@gmx.de> X-Gnu-PR-Message: they-closed 62018 X-Gnu-PR-Package: emacs Reply-To: 62018@debbugs.gnu.org Date: Wed, 29 Mar 2023 18:49:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1680115742-2488-1" This is a multi-part message in MIME format... ------------=_1680115742-2488-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62018: 30.0.50; (require 'dbus) hangs in batch mode when called through ex= ecute-kbd-macro 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 62018@debbugs.gnu.org. --=20 62018: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62018 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1680115742-2488-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62018-done) by debbugs.gnu.org; 29 Mar 2023 18:48:21 +0000 Received: from localhost ([127.0.0.1]:54975 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phaqK-0000aT-S1 for submit@debbugs.gnu.org; Wed, 29 Mar 2023 14:48:21 -0400 Received: from mout.gmx.net ([212.227.15.19]:39001) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1phaqJ-0000Zg-La for 62018-done@debbugs.gnu.org; Wed, 29 Mar 2023 14:48:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1680115692; i=michael.albinus@gmx.de; bh=pDggWXevPRNUeD2poSSuK6/1IIM2WRoV0SW50bxpEts=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date; b=Lj+lQwB5YbPsiu43kGD2SuLfDddtCPfsJDMW6cW+J2eUudvUtnI1Z1hbL8PZS9JyD ccJb6vewoGeAP/2d3SzHjpRw+1RG/4duKIfOz0Jy9RoMu6UVgnLsQeTE6Sn8hzwynI +tMdQG8yXYEX2M3PjSNfUvMpqH1Jf7uLlCDl47YHsoWOzDBNm28Cx9dmm3YMkzz5cH aKPUdWgIemlXXYF/LXJVpqiiVbngyb0rrxmww0zvN9wF/jBM0XljU7Svef5XzQmBQT kpkmedd+JUM6EjhdoPRnREiW4tppqabjT4Ps8Am8VlL6dr8r3Qsok8nRphPNySXiqe rkT7t+xGknKIw== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from gandalf.gmx.de ([185.89.39.0]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mof5H-1qEmrF0f8b-00p28J; Wed, 29 Mar 2023 20:48:12 +0200 From: Michael Albinus To: Spencer Baugh Subject: Re: bug#62018: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro In-Reply-To: (Spencer Baugh's message of "Wed, 29 Mar 2023 14:45:28 -0400") References: <87y1nfejde.fsf@gmx.de> Date: Wed, 29 Mar 2023 20:48:11 +0200 Message-ID: <87wn2z75sk.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:CX9dG4KJp+lH4dchWbZHnJpNrEBEhmVssBGgTp2m4Pz5nuVTCXz gIe4UgcD8UnVPJYBZg3tRk5bqdXnRB+8zU/4tuLsWeqqBJqdNrr2vaJ1BDIuYQnfs5xSwWj b+f6dxiaX/YcGMCAvFAYjpy3SMKOfU3D9RdejBEJA+zs4wKJZFuaBRVuo8IibgbUtIZjUfh 6W1Ev8m2EH0SiLdtb/xPQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:zln7iLUoPmI=;MmaVodgocS5ZmVIFtwHpAmn3OLV KBG8e5+xArUOdSs7e3N2r5Pu/3Tjk4PrCmutnyoVy9I2Dt+mWBlVNw+wCvEdutmSzqY1G3Egr GxoOhmUyikzSbtya5TWKhOqPHAaxtImSjmays8PgPUQvEQ/dAKyO6Gwy+pff+uv5qltZwLLOd p0a2YcH10Szz3SiJQIcYZJ9687WIYAMlAa0NU/+6gixyoThQbVVG97ZDGM6lXnJIX3NnewqYQ wkP7bixIunuhiNyIqy01l6EEe0rCBBfK0ft/TAmdYWpWdFl+M6i3zSOkus16EZS14lgWTQltM uw1LGXYGB/a4UA+9bOisMVCwTwMMtGOS+zdynfPbSlKEosItZycDsF9D0y8yfTo99Ut7qEmmT qEA3YRKt+jCgSDry1thuf+pNSWmi6jbwe/7dfv24qDc1hcbQzC5RojFjk5zVQt6Nym8oN/ONc tj51HaT0NLlklK9AtGwdhySrApExjHw3mTMZnIIK19qRVJAR6iHcIALdl4/IkmDD5dpHcAI+p nSOxuplffT80LrdhG+KyEyJyN0GALGe+tG9QwhhdeLXZt0FpoLOIugK0j/KWtc7SxFcOpsLHD A8bCWfKvE39AOSvEojXbMhY8qZ/7X7GmH6g/hRovYdZKK1oBsHlX0LWktdg/1gCaAZLyb+267 eEqmlD4ZX8UOjFrXS+Kt1xbntN7KvpTdlcDFahhbw0BHOuW/kHWR3ChcumGYxlP8zkna32/EB NcXHVDWnVdfFfWqZ96Yc05m3seVqxF65aNCmZz4jOgifcW/RHckTB5PN71zCjui+NIqC62G+S vaNKt0OkGJjSOumYYjWQWGyugarUyIcn9x3111CRUaAViJKhj7spMfOodtx2va1TwwB3XiS1L UUICge6jLsX6MVvUrNyo+naTXGPEdeaImhjZZhmzIhbmqgOykHpY6wRgGP1cVC+HO1omq1B8N 8uE4jA== X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 62018-done Cc: 62018-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Version: 30.1 Spencer Baugh writes: Hi Spencer, >>> 1. emacs --batch --eval '(execute-kbd-macro (read-kbd-macro "M-: >>> (require SPC (quote SPC dbus)) RET"))' >>> 2. Observe that it hangs forever. >>> >>> Note that this doesn't need to be direct; running any command through >>> execute-kbd-macro which eventually loads dbus will hang indefinitely. >>> (battery), for example. >> >> Thanks for the report, I've pushed a fix to master. Could you, please, check? > > That change fixes my minimal reproducer (sent in the initial email) and > also fixes my larger test framework based on execute-kbd-macro. Thanks for the feedback, I'm closing the bug. Thank you! ------------=_1680115742-2488-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 6 Mar 2023 23:45:42 +0000 Received: from localhost ([127.0.0.1]:43984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZKWT-0004T2-K8 for submit@debbugs.gnu.org; Mon, 06 Mar 2023 18:45:42 -0500 Received: from lists.gnu.org ([209.51.188.17]:51142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pZKWR-0004Sv-KX for submit@debbugs.gnu.org; Mon, 06 Mar 2023 18:45:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZKWR-00083W-FG for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 18:45:39 -0500 Received: from mxout5.mail.janestreet.com ([64.215.233.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pZKWO-0007xn-UK for bug-gnu-emacs@gnu.org; Mon, 06 Mar 2023 18:45:39 -0500 From: Spencer Baugh To: bug-gnu-emacs@gnu.org Subject: 30.0.50; (require 'dbus) hangs in batch mode when called through execute-kbd-macro Date: Mon, 06 Mar 2023 18:45:35 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=64.215.233.18; envelope-from=sbaugh@janestreet.com; helo=mxout5.mail.janestreet.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) 1. emacs --batch --eval '(execute-kbd-macro (read-kbd-macro "M-: (require SPC (quote SPC dbus)) RET"))' 2. Observe that it hangs forever. Note that this doesn't need to be direct; running any command through execute-kbd-macro which eventually loads dbus will hang indefinitely. (battery), for example. This may seem like an odd thing to do, but I use execute-kbd-macro to run tests for keybindings in my Emacs packages. This issue appears to also happen on Emacs 28 and Emacs 27. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30, cairo version 1.15.12) of 2023-02-27 built on igm-qws-u22796a Repository revision: af94369f90a5d3ad44dcc80d205665ccb2d41995 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: CentOS Linux 7 (Core) Configured using: 'configure --with-gif=ifavailable' Configured features: CAIRO DBUS FREETYPE GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-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 line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit xinput2 x multi-tty make-network-process emacs) Memory information: ((conses 16 45855 9960) (symbols 48 7444 0) (strings 32 17715 2032) (string-bytes 1 502705) (vectors 16 9297) (vector-slots 8 147891 12010) (floats 8 31 19) (intervals 56 211 0) (buffers 976 10) (heap 1024 17345 1168)) ------------=_1680115742-2488-1--