From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 10 Jan 2020 21:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39075@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.157869103119387 (code B ref -1); Fri, 10 Jan 2020 21:18:01 +0000 Received: (at submit) by debbugs.gnu.org; 10 Jan 2020 21:17:11 +0000 Received: from localhost ([127.0.0.1]:55053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iq1eY-00052d-J0 for submit@debbugs.gnu.org; Fri, 10 Jan 2020 16:17:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:53420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iq1eW-00052V-Ob for submit@debbugs.gnu.org; Fri, 10 Jan 2020 16:17:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40677) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq1eV-0002AQ-6L for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq1eT-00010q-K2 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:07 -0500 Received: from [145.132.212.31] (port=54644 helo=cochabamba.vanoostrum.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iq1eT-0000gt-6a for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:05 -0500 Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 417D5A5E9FC5 for ; Fri, 10 Jan 2020 22:16:59 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24088.59850.194801.667764@cochabamba.vanoostrum.org> Date: Fri, 10 Jan 2020 22:16:58 +0100 From: Pieter van Oostrum X-Mailer: VM undefined under 27.0.50 (i686-apple-darwin10.0.0) X-detected-operating-system: by eggs.gnu.org: Mac OS X [generic] [fuzzy] X-Received-From: 145.132.212.31 X-Spam-Score: -2.3 (--) 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: -3.3 (---) 1) Emacs -Q 2) M-x shell 3) type some command, and use some filename completions on the way (using TAB). 4) Type a semicolon (;) Now Emacs hangs, the ; does not appear, and it doesn't react to a C-g typed. It uses 100% CPU and memory grows beyond bounds, eventually just making my whole computer unresponsive. Typing a whole series of C-g's might stop the loop (with the ; appearing then) or it might crash Emacs: Fatal error 11: Segmentation fault Abort trap: 6 This report is typed in a session where the sequence of C-g's did stop the loop. The C-g caused this message: Error in post-command-hook (completion-in-region--postch): (quit) Although the option Enter debugger on Quit/C-g was set, no backtrace was generated. This emacs was compiled from master today, but it also happens in earlier versions. In GNU Emacs 28.0.50 (build 1, i686-apple-darwin10.0.0, NS appkit-1561.61 Version 10.13.6 (Build 17G10021)) of 2020-01-10 built on cochabamba.vanoostrum.org Repository revision: 17cfd708575c351d030f8b05c5921d1867028d79 Repository branch: fix Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Recent messages: Quit No match [2 times] ~ Error in post-command-hook (completion-in-region--postch): (quit) Quit [2 times] Complete, but not unique Making completion list... Complete, but not unique Error in post-command-hook (completion-in-region--postch): (quit) Quit Quit Configured using: 'configure --build i686-apple-darwin10.0.0 --without-dbus --with-ns build_alias=i686-apple-darwin10.0.0 'CFLAGS=-pipe -march=nocona' PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/:/usr/X11R6/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/' Configured features: RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS PDUMPER LCMS2 Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv 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 shell pcomplete comint ansi-color ring tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 55230 57689) (symbols 48 7130 11) (strings 32 18286 5181) (string-bytes 1 600859) (vectors 16 11939) (vector-slots 8 157593 69152) (floats 8 19 126) (intervals 56 1161 97) (buffers 1000 14)) -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Jan 2020 10:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157873678625046 (code B ref 39075); Sat, 11 Jan 2020 10:00:02 +0000 Received: (at 39075) by debbugs.gnu.org; 11 Jan 2020 09:59:46 +0000 Received: from localhost ([127.0.0.1]:55386 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqDYY-0006Vu-AG for submit@debbugs.gnu.org; Sat, 11 Jan 2020 04:59:46 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqDYX-0006Vi-Lz for 39075@debbugs.gnu.org; Sat, 11 Jan 2020 04:59:45 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:46545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqDYP-0008Ad-5D; Sat, 11 Jan 2020 04:59:37 -0500 Received: from [176.228.60.248] (port=4148 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqDYN-0000L1-Vz; Sat, 11 Jan 2020 04:59:36 -0500 Date: Sat, 11 Jan 2020 11:59:37 +0200 Message-Id: <83y2ue71py.fsf@gnu.org> From: Eli Zaretskii In-reply-to: <24088.59850.194801.667764@cochabamba.vanoostrum.org> (message from Pieter van Oostrum on Fri, 10 Jan 2020 22:16:58 +0100) References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > Date: Fri, 10 Jan 2020 22:16:58 +0100 > From: Pieter van Oostrum > > 1) Emacs -Q > 2) M-x shell > 3) type some command, and use some filename completions on the way > (using TAB). > 4) Type a semicolon (;) > > Now Emacs hangs, the ; does not appear, and it doesn't react to a C-g typed. > It uses 100% CPU and memory grows beyond bounds, eventually just making > my whole computer unresponsive. I cannot reproduce this on GNU/Linux, so it's probably macOS-specific. From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2020 17:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.15788490938253 (code B ref 39075); Sun, 12 Jan 2020 17:12:02 +0000 Received: (at 39075) by debbugs.gnu.org; 12 Jan 2020 17:11:33 +0000 Received: from localhost ([127.0.0.1]:57875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqglx-000293-52 for submit@debbugs.gnu.org; Sun, 12 Jan 2020 12:11:33 -0500 Received: from [145.132.212.31] (port=58651 helo=cochabamba.vanoostrum.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqglu-00028o-RP for 39075@debbugs.gnu.org; Sun, 12 Jan 2020 12:11:31 -0500 Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id C0340A60D81D; Sun, 12 Jan 2020 18:11:23 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> Date: Sun, 12 Jan 2020 18:11:22 +0100 In-Reply-To: <83y2ue71py.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 11 Jan 2020 11:59:37 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: >> Date: Fri, 10 Jan 2020 22:16:58 +0100 >> From: Pieter van Oostrum >> >> 1) Emacs -Q >> 2) M-x shell >> 3) type some command, and use some filename completions on the way >> [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 URIBL_BLOCKED ADMINISTRATOR NOTICE: The query to URIBL was blocked. See http://wiki.apache.org/spamassassin/DnsBlocklists#dnsbl-block for more information. [URIs: vanoostrum.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 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: 0.3 (/) --=-=-= Content-Type: text/plain Eli Zaretskii writes: >> Date: Fri, 10 Jan 2020 22:16:58 +0100 >> From: Pieter van Oostrum >> >> 1) Emacs -Q >> 2) M-x shell >> 3) type some command, and use some filename completions on the way >> (using TAB). >> 4) Type a semicolon (;) >> >> Now Emacs hangs, the ; does not appear, and it doesn't react to a C-g typed. >> It uses 100% CPU and memory grows beyond bounds, eventually just making >> my whole computer unresponsive. > > I cannot reproduce this on GNU/Linux, so it's probably macOS-specific. It's not so clear what could be MacOS-specific. I ran it under gdb, and interrupted it several times with C-z in gdb. Most of the stack traces were in the garbage collector, suggesting that it is collecting like crazy. This doesn't surprise me, as it is constantly allocating new memory. The rest of this stack trace doesn't have useful information. I managed to get a stack trace where it is processing. I haven't analysed these yet, but I include both here. --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=semicolon-emacs-loop Content-Transfer-Encoding: base64 Content-Description: stack traces XloKVGhyZWFkIDMgcmVjZWl2ZWQgc2lnbmFsIFNJR1RTVFAsIFN0b3BwZWQgKHVzZXIpLgoweDAw MDAwMDAxMDAyOWM2NmMgaW4gUFNFVURPVkVDVE9SUCAoYT1YSUwoMHgxMDYxMDAwYmQpLCBjb2Rl PTI2KQogICAgYXQgLi9saXNwLmg6MT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04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2020 17:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157885100111206 (code B ref 39075); Sun, 12 Jan 2020 17:44:01 +0000 Received: (at 39075) by debbugs.gnu.org; 12 Jan 2020 17:43:21 +0000 Received: from localhost ([127.0.0.1]:57892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqhGj-0002ug-8n for submit@debbugs.gnu.org; Sun, 12 Jan 2020 12:43:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51669) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqhGg-0002uS-R1 for 39075@debbugs.gnu.org; Sun, 12 Jan 2020 12:43:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36788) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iqhGb-000060-9Y; Sun, 12 Jan 2020 12:43:13 -0500 Received: from [176.228.60.248] (port=4967 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iqhGa-0008Vv-LI; Sun, 12 Jan 2020 12:43:13 -0500 Date: Sun, 12 Jan 2020 19:43:18 +0200 Message-Id: <83blr87eq1.fsf@gnu.org> From: Eli Zaretskii In-reply-to: (message from Pieter van Oostrum on Sun, 12 Jan 2020 18:11:22 +0100) References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Pieter van Oostrum > Cc: 39075@debbugs.gnu.org > Date: Sun, 12 Jan 2020 18:11:22 +0100 > > I ran it under gdb, and interrupted it several times with C-z in gdb. Most of the stack traces were in the garbage collector, suggesting that it is collecting like crazy. This doesn't surprise me, as it is constantly allocating new memory. The rest of this stack trace doesn't have useful information. > > I managed to get a stack trace where it is processing. I haven't analysed these yet, but I include both here. Thanks, this was very useful. It turns out to reproduce one must do this at the shell's prompt, after "M-x shell": $ cd /some/directory/; The /some/directory/ part should be a real directory. Once one types the semi-colon, Emacs hangs. Here's the Lisp backtrace: "Automatic GC" (0x0) "looking-at" (0x766f5fc8) "shell--parse-pcomplete-arguments" (0x766f64f8) "pcomplete-parse-arguments" (0x766f6a90) "pcomplete-completions" (0x766f6f60) "pcomplete-completions-at-point" (0x766f7698) "run-hook-with-args-until-success" (0x766f7690) "comint-completion-at-point" (0x766f7b10) 0x317f7b0 PVEC_COMPILED "completion-in-region--postch" (0x766f8450) So I think shell--parse-pcomplete-arguments infloops in this case. From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 13 Jan 2020 13:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157892389518895 (code B ref 39075); Mon, 13 Jan 2020 13:59:02 +0000 Received: (at 39075) by debbugs.gnu.org; 13 Jan 2020 13:58:15 +0000 Received: from localhost ([127.0.0.1]:58756 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir0ER-0004uh-Fy for submit@debbugs.gnu.org; Mon, 13 Jan 2020 08:58:15 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:39761) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ir0EP-0004uS-Kp for 39075@debbugs.gnu.org; Mon, 13 Jan 2020 08:58:14 -0500 X-ASG-Debug-ID: 1578923887-0a9db43b8818e7050001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id vwcCDpVkGEwOTFw9 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Mon, 13 Jan 2020 14:58:07 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 7313 invoked from network); 13 Jan 2020 13:58:06 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 13 Jan 2020 13:58:06 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 43AACA61E356; Mon, 13 Jan 2020 14:58:06 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Mon, 13 Jan 2020 14:58:05 +0100 In-Reply-To: <83blr87eq1.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 12 Jan 2020 19:43:18 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1578923887 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 2981 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79312 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 (-) Eli Zaretskii writes: > Thanks, this was very useful. It turns out to reproduce one must do > this at the shell's prompt, after "M-x shell": > > $ cd /some/directory/; > > The /some/directory/ part should be a real directory. Once one types > the semi-colon, Emacs hangs. Here's the Lisp backtrace: > > "Automatic GC" (0x0) > "looking-at" (0x766f5fc8) > "shell--parse-pcomplete-arguments" (0x766f64f8) > "pcomplete-parse-arguments" (0x766f6a90) > "pcomplete-completions" (0x766f6f60) > "pcomplete-completions-at-point" (0x766f7698) > "run-hook-with-args-until-success" (0x766f7690) > "comint-completion-at-point" (0x766f7b10) > 0x317f7b0 PVEC_COMPILED > "completion-in-region--postch" (0x766f8450) > > So I think shell--parse-pcomplete-arguments infloops in this case. Yes, I have traced it. shell--parse-pcomplete-arguments splits the line into chunk, each chunk being either 1) a sequence of chars not containing white space, \ " ' ; 2) a sequence of chars between apostrophes (') not containing ', maybe final one missing 3) a sequence of chars between quotes (") not containing unescaped ", maybe final one missing 4) a backslash (\) possibly followed by a char It uses a regexp for that. It collects a list of these chunks. It skips over white space between the chunks. The problem is that a semicolon ; is not covered by this regexp. In the case that caused the error the end position was after the semicolon but the match loop stopped just before the semicolon, and would never advance. It kept going in an infinite loop, continually pushing empty strings on the result list, thereby exhausting memory, and using 100% CPU time. I don't know why it wouldn't react to C-g, but I guess because after some time it would be mostly in the garbage collector. Originally case 1) did not have the semicolon. It was introduced in commit eaeeece92da51b517097667f13d580aa92ad5d59 on Dec 4, 2018 18:39:47 +0100. There was a test case added in test/lisp/shell-tests.el, but it cheated by positioning point before the semicolon. I think the simplest solution is to add a semicolon to the part where it skips over white space, i.e. treat the semicolon like white space. But I am not wholly sure that the caller doesn't want to see the semicolon. Otherwise the semicolon should be pushed to the result. diff -u /Users/pieter/TEMP/shell.el.\~1\~ /Users/pieter/TEMP/shell.el --- /Users/pieter/TEMP/shell.el.~1~ 2020-01-13 14:37:40.000000000 +0100 +++ /Users/pieter/TEMP/shell.el 2020-01-13 14:38:07.000000000 +0100 @@ -428,7 +428,7 @@ (save-excursion (goto-char begin) (while (< (point) end) - (skip-chars-forward " \t\n") + (skip-chars-forward " \t\n;") (push (point) begins) (let ((arg ())) (while (looking-at Diff finished. Mon Jan 13 14:38:22 2020 -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Michael Welsh Duggan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2020 03:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: Eli Zaretskii , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157905825327161 (code B ref 39075); Wed, 15 Jan 2020 03:18:02 +0000 Received: (at 39075) by debbugs.gnu.org; 15 Jan 2020 03:17:33 +0000 Received: from localhost ([127.0.0.1]:34038 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irZBU-000741-LQ for submit@debbugs.gnu.org; Tue, 14 Jan 2020 22:17:32 -0500 Received: from md5i.com ([75.151.244.229]:54020) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1irZBS-00073p-M6 for 39075@debbugs.gnu.org; Tue, 14 Jan 2020 22:17:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=md5i.com; s=dkim; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:References: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=6AQgBAWucxbGzlo/KZyKK5Zr1wVAkfsaEbqicufU7V4=; b=VSsoE1vab1BCa/1lSh9duBEYcM aDDQq3x7n0JsskzP+8U1tKMIQbuk3sKX7EaHXwyF6uad6rJDnaKSmDtK7MMEItlV9ubY1Ut5nK+Qo YtdkYK6dXHUGk85TX8pTFQOh2; Received: from md5i by md5i.com with local (Exim 4.93) (envelope-from ) id 1irZBQ-0003rf-H6; Tue, 14 Jan 2020 22:17:28 -0500 From: Michael Welsh Duggan References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> Date: Tue, 14 Jan 2020 22:17:28 -0500 In-Reply-To: (Pieter van Oostrum's message of "Mon, 13 Jan 2020 14:58:05 +0100") Message-ID: <877e1tz9vb.fsf@md5i.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) 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 (-) This seems very similar to the bug I reported at bug#38549. Could you see if this also fixes that recipe and, if so, merge the bugs? -- Michael Welsh Duggan (md5i@md5i.com) From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 14:14:28 2020 Received: (at control) by debbugs.gnu.org; 15 Jan 2020 19:14:28 +0000 Received: from localhost ([127.0.0.1]:35556 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iro7Y-0005ZU-Aa for submit@debbugs.gnu.org; Wed, 15 Jan 2020 14:14:28 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:51054) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iro7X-0005ZG-1P for control@debbugs.gnu.org; Wed, 15 Jan 2020 14:14:27 -0500 X-ASG-Debug-ID: 1579115659-0a9db43b8819d75a0001-B2rYAx Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id zXWTE65L2CllZIhK (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Wed, 15 Jan 2020 20:14:19 +0100 (CET) X-Barracuda-Envelope-From: pieter@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 6902 invoked from network); 15 Jan 2020 19:14:19 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 15 Jan 2020 19:14:19 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id ED7BBA68C007 for ; Wed, 15 Jan 2020 20:14:18 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24095.25737.505081.715735@cochabamba.vanoostrum.org> Date: Wed, 15 Jan 2020 20:14:17 +0100 From: Pieter van Oostrum To: control@debbugs.gnu.org Subject: Merge bugs #39075 and #38549 X-Mailer: VM undefined under 28.0.50 (i686-apple-darwin10.0.0) X-ASG-Orig-Subj: Merge bugs #39075 and #38549 X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579115659 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 139 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.00 X-Barracuda-Spam-Status: No, SCORE=0.00 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests= B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79361 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control 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: , Reply-To: Pieter van Oostrum Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) merge 39075 38549 quit -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Jan 2020 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Welsh Duggan Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157911571921549 (code B ref 39075); Wed, 15 Jan 2020 19:16:02 +0000 Received: (at 39075) by debbugs.gnu.org; 15 Jan 2020 19:15:19 +0000 Received: from localhost ([127.0.0.1]:35561 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iro8J-0005bS-Ky for submit@debbugs.gnu.org; Wed, 15 Jan 2020 14:15:19 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:51170) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iro8E-0005b5-8K for 39075@debbugs.gnu.org; Wed, 15 Jan 2020 14:15:13 -0500 X-ASG-Debug-ID: 1579115704-0a9db43b8919d7ba0001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id jNVDQ8itfUGA27GB (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Wed, 15 Jan 2020 20:15:04 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 8784 invoked from network); 15 Jan 2020 19:15:03 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 15 Jan 2020 19:15:03 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 9ABADA68C019; Wed, 15 Jan 2020 20:15:03 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Wed, 15 Jan 2020 20:15:03 +0100 In-Reply-To: <877e1tz9vb.fsf@md5i.com> (Michael Welsh Duggan's message of "Tue, 14 Jan 2020 22:17:28 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579115704 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 341 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79361 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 Welsh Duggan writes: > This seems very similar to the bug I reported at bug#38549. Could you > see if this also fixes that recipe and, if so, merge the bugs? > Yes, the same fix solves that bug also. It is the same bug. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Jan 2020 19:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Welsh Duggan Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157920251321775 (code B ref 39075); Thu, 16 Jan 2020 19:22:02 +0000 Received: (at 39075) by debbugs.gnu.org; 16 Jan 2020 19:21:53 +0000 Received: from localhost ([127.0.0.1]:38366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isAiG-0005f9-Nc for submit@debbugs.gnu.org; Thu, 16 Jan 2020 14:21:52 -0500 Received: from smarthost-a.hosting2go.nl ([83.137.198.201]:38717) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isAiC-0005ew-SV for 39075@debbugs.gnu.org; Thu, 16 Jan 2020 14:21:51 -0500 X-ASG-Debug-ID: 1579202502-0ac37b1e5516221a0001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-a.hosting2go.nl with ESMTP id vZjRdYivLJ6HAS9Q (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Thu, 16 Jan 2020 20:21:42 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 7039 invoked from network); 16 Jan 2020 19:21:41 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 16 Jan 2020 19:21:41 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 9D1D3A6A0BD7; Thu, 16 Jan 2020 20:21:38 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Thu, 16 Jan 2020 20:21:37 +0100 In-Reply-To: (Pieter van Oostrum's message of "Wed, 15 Jan 2020 20:15:03 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579202502 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.201:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 699 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 A-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79381 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 (-) --=-=-= Content-Type: text/plain Pieter van Oostrum writes: > Michael Welsh Duggan writes: > >> This seems very similar to the bug I reported at bug#38549. Could you >> see if this also fixes that recipe and, if so, merge the bugs? >> > Yes, the same fix solves that bug also. It is the same bug. I propose to amend the test also, so that it would have caught this error (by hanging). I add both patches here now. I have tested that all other things worked the same and found no problems. Is there an official procedure for requesting the change, or is posting it here sufficient? --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=shell.patch diff --git a/lisp/shell.el b/lisp/shell.el index 98e830ee49..ecebf937e2 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -428,7 +428,7 @@ shell--parse-pcomplete-arguments (save-excursion (goto-char begin) (while (< (point) end) - (skip-chars-forward " \t\n") + (skip-chars-forward " \t\n;") (push (point) begins) (let ((arg ())) (while (looking-at diff --git a/test/lisp/shell-tests.el b/test/lisp/shell-tests.el index 6d262f8e7c..7113cb941c 100644 --- a/test/lisp/shell-tests.el +++ b/test/lisp/shell-tests.el @@ -34,8 +34,7 @@ shell-tests-completion-before-semi (with-temp-buffer (shell-mode) (insert "cd ba;") - (forward-char -1) (should (equal (shell--parse-pcomplete-arguments) - '(("cd" "ba") 1 4))))) + '(("cd" "ba" "") 1 4))))) ;;; shell-tests.el ends here --=-=-= Content-Type: text/plain -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] --=-=-=-- From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 17 Jan 2020 10:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157925868418512 (code B ref 39075); Fri, 17 Jan 2020 10:59:01 +0000 Received: (at 39075) by debbugs.gnu.org; 17 Jan 2020 10:58:04 +0000 Received: from localhost ([127.0.0.1]:38892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isPKF-0004oV-L3 for submit@debbugs.gnu.org; Fri, 17 Jan 2020 05:58:03 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:59995) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1isPKB-0004nu-BH for 39075@debbugs.gnu.org; Fri, 17 Jan 2020 05:58:02 -0500 X-ASG-Debug-ID: 1579258673-0a9db43b881a8c270001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id hJhDH4kSD8Y4xvLi (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Fri, 17 Jan 2020 11:57:53 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 28273 invoked from network); 17 Jan 2020 10:57:52 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 17 Jan 2020 10:57:52 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 5E3BEA6B6DE0; Fri, 17 Jan 2020 11:57:52 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Fri, 17 Jan 2020 11:57:51 +0100 In-Reply-To: (Pieter van Oostrum's message of "Mon, 13 Jan 2020 14:58:05 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579258673 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 3420 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79394 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 (-) --=-=-= Content-Type: text/plain Pieter van Oostrum writes: > Eli Zaretskii writes: > >> Thanks, this was very useful. It turns out to reproduce one must do >> this at the shell's prompt, after "M-x shell": >> >> $ cd /some/directory/; >> >> The /some/directory/ part should be a real directory. Once one types >> the semi-colon, Emacs hangs. Here's the Lisp backtrace: >> >> "Automatic GC" (0x0) >> "looking-at" (0x766f5fc8) >> "shell--parse-pcomplete-arguments" (0x766f64f8) >> "pcomplete-parse-arguments" (0x766f6a90) >> "pcomplete-completions" (0x766f6f60) >> "pcomplete-completions-at-point" (0x766f7698) >> "run-hook-with-args-until-success" (0x766f7690) >> "comint-completion-at-point" (0x766f7b10) >> 0x317f7b0 PVEC_COMPILED >> "completion-in-region--postch" (0x766f8450) >> >> So I think shell--parse-pcomplete-arguments infloops in this case. > > Yes, I have traced it. > > shell--parse-pcomplete-arguments splits the line into chunk, each chunk being either > 1) a sequence of chars not containing white space, \ " ' ; > 2) a sequence of chars between apostrophes (') not containing ', maybe final one missing > 3) a sequence of chars between quotes (") not containing unescaped ", maybe final one missing > 4) a backslash (\) possibly followed by a char > > It uses a regexp for that. > It collects a list of these chunks. > It skips over white space between the chunks. > > The problem is that a semicolon ; is not covered by this regexp. In the case that caused the error the end position was after the semicolon but the match loop stopped just before the semicolon, and would never advance. It kept going in an infinite loop, continually pushing empty strings on the result list, thereby exhausting memory, and using 100% CPU time. > I don't know why it wouldn't react to C-g, but I guess because after some time it would be mostly in the garbage collector. > > Originally case 1) did not have the semicolon. > It was introduced in commit eaeeece92da51b517097667f13d580aa92ad5d59 on Dec 4, 2018 18:39:47 +0100. > There was a test case added in test/lisp/shell-tests.el, but it cheated by positioning point before the semicolon. > > I think the simplest solution is to add a semicolon to the part where it skips over white space, i.e. treat the semicolon like white space. But I am not wholly sure that the caller doesn't want to see the semicolon. Otherwise the semicolon should be pushed to the result. > > diff -u /Users/pieter/TEMP/shell.el.\~1\~ /Users/pieter/TEMP/shell.el > --- /Users/pieter/TEMP/shell.el.~1~ 2020-01-13 14:37:40.000000000 +0100 > +++ /Users/pieter/TEMP/shell.el 2020-01-13 14:38:07.000000000 +0100 > @@ -428,7 +428,7 @@ > (save-excursion > (goto-char begin) > (while (< (point) end) > - (skip-chars-forward " \t\n") > + (skip-chars-forward " \t\n;") > (push (point) begins) > (let ((arg ())) > (while (looking-at > > Diff finished. Mon Jan 13 14:38:22 2020 I propose to amend the test also, so that it would have caught this error (by hanging). I add both patches here now. I have tested that all other things worked the same and found no problems. Is there an official procedure for requesting the change, or is posting it here sufficient? --=-=-= Content-Type: text/plain Content-Disposition: attachment; filename=shell.patch2 Content-Description: patch diff --git a/lisp/shell.el b/lisp/shell.el index 98e830ee49..ecebf937e2 100644 --- a/lisp/shell.el +++ b/lisp/shell.el @@ -428,7 +428,7 @@ shell--parse-pcomplete-arguments (save-excursion (goto-char begin) (while (< (point) end) - (skip-chars-forward " \t\n") + (skip-chars-forward " \t\n;") (push (point) begins) (let ((arg ())) (while (looking-at diff --git a/test/lisp/shell-tests.el b/test/lisp/shell-tests.el index 6d262f8e7c..7113cb941c 100644 --- a/test/lisp/shell-tests.el +++ b/test/lisp/shell-tests.el @@ -34,8 +34,7 @@ shell-tests-completion-before-semi (with-temp-buffer (shell-mode) (insert "cd ba;") - (forward-char -1) (should (equal (shell--parse-pcomplete-arguments) - '(("cd" "ba") 1 4))))) + '(("cd" "ba" "") 1 4))))) ;;; shell-tests.el ends here --=-=-= Content-Type: text/plain -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] --=-=-=-- From unknown Sat Jun 14 04:59:06 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: Pieter van Oostrum Subject: bug#39075: closed (Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode) Message-ID: References: <83ftgd13zb.fsf@gnu.org> <24088.59850.194801.667764@cochabamba.vanoostrum.org> X-Gnu-PR-Message: they-closed 39075 X-Gnu-PR-Package: emacs Reply-To: 39075@debbugs.gnu.org Date: Sat, 18 Jan 2020 09:58:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1579341483-7656-1" This is a multi-part message in MIME format... ------------=_1579341483-7656-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-m= ode 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 39075@debbugs.gnu.org. --=20 39075: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39075 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1579341483-7656-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39075-done) by debbugs.gnu.org; 18 Jan 2020 09:57:51 +0000 Received: from localhost ([127.0.0.1]:40505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskrX-0001ym-0U for submit@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskrV-0001ya-53 for 39075-done@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iskrP-0005gu-8h; Sat, 18 Jan 2020 04:57:43 -0500 Received: from [176.228.60.248] (port=4312 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iskrO-0007vB-ME; Sat, 18 Jan 2020 04:57:43 -0500 Date: Sat, 18 Jan 2020 11:57:44 +0200 Message-Id: <83ftgd13zb.fsf@gnu.org> From: Eli Zaretskii To: Pieter van Oostrum In-reply-to: (message from Pieter van Oostrum on Thu, 16 Jan 2020 20:21:37 +0100) Subject: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39075-done Cc: mwd@md5i.com, 39075-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: -3.3 (---) > From: Pieter van Oostrum > Date: Thu, 16 Jan 2020 20:21:37 +0100 > Cc: 39075@debbugs.gnu.org > > Pieter van Oostrum writes: > > > Michael Welsh Duggan writes: > > > >> This seems very similar to the bug I reported at bug#38549. Could you > >> see if this also fixes that recipe and, if so, merge the bugs? > >> > > Yes, the same fix solves that bug also. It is the same bug. > > I propose to amend the test also, so that it would have caught this error (by hanging). I add both patches here now. I have tested that all other things worked the same and found no problems. Thanks, pushed to the release branch. > Is there an official procedure for requesting the change, or is posting it here sufficient? It is sufficient to post here, but: . please in the future provide a ChangeLog-style commit log message (see CONTRIBUTE for more about this); . it looks like the disclaimer of your employer has expired several years ago, so if you want to continue contributing to Emacs, I suggest to start/renew your legal paperwork. ------------=_1579341483-7656-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 10 Jan 2020 21:17:11 +0000 Received: from localhost ([127.0.0.1]:55053 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iq1eY-00052d-J0 for submit@debbugs.gnu.org; Fri, 10 Jan 2020 16:17:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:53420) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iq1eW-00052V-Ob for submit@debbugs.gnu.org; Fri, 10 Jan 2020 16:17:09 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40677) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iq1eV-0002AQ-6L for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:08 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.6 required=5.0 tests=BAYES_50,RDNS_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iq1eT-00010q-K2 for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:07 -0500 Received: from [145.132.212.31] (port=54644 helo=cochabamba.vanoostrum.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iq1eT-0000gt-6a for bug-gnu-emacs@gnu.org; Fri, 10 Jan 2020 16:17:05 -0500 Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 417D5A5E9FC5 for ; Fri, 10 Jan 2020 22:16:59 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <24088.59850.194801.667764@cochabamba.vanoostrum.org> Date: Fri, 10 Jan 2020 22:16:58 +0100 From: Pieter van Oostrum To: bug-gnu-emacs@gnu.org Subject: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode X-Mailer: VM undefined under 27.0.50 (i686-apple-darwin10.0.0) X-detected-operating-system: by eggs.gnu.org: Mac OS X [generic] [fuzzy] X-Received-From: 145.132.212.31 X-Spam-Score: -2.3 (--) 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: -3.3 (---) 1) Emacs -Q 2) M-x shell 3) type some command, and use some filename completions on the way (using TAB). 4) Type a semicolon (;) Now Emacs hangs, the ; does not appear, and it doesn't react to a C-g typed. It uses 100% CPU and memory grows beyond bounds, eventually just making my whole computer unresponsive. Typing a whole series of C-g's might stop the loop (with the ; appearing then) or it might crash Emacs: Fatal error 11: Segmentation fault Abort trap: 6 This report is typed in a session where the sequence of C-g's did stop the loop. The C-g caused this message: Error in post-command-hook (completion-in-region--postch): (quit) Although the option Enter debugger on Quit/C-g was set, no backtrace was generated. This emacs was compiled from master today, but it also happens in earlier versions. In GNU Emacs 28.0.50 (build 1, i686-apple-darwin10.0.0, NS appkit-1561.61 Version 10.13.6 (Build 17G10021)) of 2020-01-10 built on cochabamba.vanoostrum.org Repository revision: 17cfd708575c351d030f8b05c5921d1867028d79 Repository branch: fix Windowing system distributor 'Apple', version 10.3.1561 System Description: Mac OS X 10.13.6 Recent messages: Quit No match [2 times] ~ Error in post-command-hook (completion-in-region--postch): (quit) Quit [2 times] Complete, but not unique Making completion list... Complete, but not unique Error in post-command-hook (completion-in-region--postch): (quit) Quit Quit Configured using: 'configure --build i686-apple-darwin10.0.0 --without-dbus --with-ns build_alias=i686-apple-darwin10.0.0 'CFLAGS=-pipe -march=nocona' PKG_CONFIG_PATH=/opt/local/lib/pkgconfig/:/usr/X11R6/pkgconfig/:/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/' Configured features: RSVG GLIB NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS XIM NS MODULES THREADS PDUMPER LCMS2 Important settings: value of $LC_CTYPE: UTF-8 value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: Shell Minor modes in effect: shell-dirtrack-mode: t tooltip-mode: t global-eldoc-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 auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv 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 shell pcomplete comint ansi-color ring tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic 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 charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 55230 57689) (symbols 48 7130 11) (strings 32 18286 5181) (string-bytes 1 600859) (vectors 16 11939) (vector-slots 8 157593 69152) (floats 8 19 126) (intervals 56 1161 97) (buffers 1000 14)) -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] ------------=_1579341483-7656-1-- From unknown Sat Jun 14 04:59:06 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: Michael Welsh Duggan Subject: bug#38549: closed (Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode) Message-ID: References: <83ftgd13zb.fsf@gnu.org> X-Gnu-PR-Message: they-closed 38549 X-Gnu-PR-Package: emacs Reply-To: 38549@debbugs.gnu.org Date: Sat, 18 Jan 2020 09:58:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1579341483-7656-3" This is a multi-part message in MIME format... ------------=_1579341483-7656-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #39075: 27.0.50; Infloop when doing completion-at-point in shell-mode 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 38549@debbugs.gnu.org. --=20 39075: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D39075 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1579341483-7656-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 39075-done) by debbugs.gnu.org; 18 Jan 2020 09:57:51 +0000 Received: from localhost ([127.0.0.1]:40505 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskrX-0001ym-0U for submit@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:51 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36225) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iskrV-0001ya-53 for 39075-done@debbugs.gnu.org; Sat, 18 Jan 2020 04:57:49 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49934) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iskrP-0005gu-8h; Sat, 18 Jan 2020 04:57:43 -0500 Received: from [176.228.60.248] (port=4312 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iskrO-0007vB-ME; Sat, 18 Jan 2020 04:57:43 -0500 Date: Sat, 18 Jan 2020 11:57:44 +0200 Message-Id: <83ftgd13zb.fsf@gnu.org> From: Eli Zaretskii To: Pieter van Oostrum In-reply-to: (message from Pieter van Oostrum on Thu, 16 Jan 2020 20:21:37 +0100) Subject: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 39075-done Cc: mwd@md5i.com, 39075-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: -3.3 (---) > From: Pieter van Oostrum > Date: Thu, 16 Jan 2020 20:21:37 +0100 > Cc: 39075@debbugs.gnu.org > > Pieter van Oostrum writes: > > > Michael Welsh Duggan writes: > > > >> This seems very similar to the bug I reported at bug#38549. Could you > >> see if this also fixes that recipe and, if so, merge the bugs? > >> > > Yes, the same fix solves that bug also. It is the same bug. > > I propose to amend the test also, so that it would have caught this error (by hanging). I add both patches here now. I have tested that all other things worked the same and found no problems. Thanks, pushed to the release branch. > Is there an official procedure for requesting the change, or is posting it here sufficient? It is sufficient to post here, but: . please in the future provide a ChangeLog-style commit log message (see CONTRIBUTE for more about this); . it looks like the disclaimer of your employer has expired several years ago, so if you want to continue contributing to Emacs, I suggest to start/renew your legal paperwork. ------------=_1579341483-7656-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 9 Dec 2019 16:48:55 +0000 Received: from localhost ([127.0.0.1]:54354 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ieMDP-0000JS-Jn for submit@debbugs.gnu.org; Mon, 09 Dec 2019 11:48:55 -0500 Received: from lists.gnu.org ([209.51.188.17]:59043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ieMDO-0000JL-PR for submit@debbugs.gnu.org; Mon, 09 Dec 2019 11:48:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:38320) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ieMDM-00064O-Pl for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 11:48:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_NONE, URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ieMDL-0004FM-E4 for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 11:48:52 -0500 Received: from taper.sei.cmu.edu ([147.72.252.16]:39598) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ieMDL-0004Dm-6c for bug-gnu-emacs@gnu.org; Mon, 09 Dec 2019 11:48:51 -0500 Received: from korb.sei.cmu.edu (korb.sei.cmu.edu [10.64.21.30]) by taper.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id xB9GmmWa022661 for ; Mon, 9 Dec 2019 11:48:48 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 taper.sei.cmu.edu xB9GmmWa022661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cert.org; s=yc2bmwvrj62m; t=1575910128; bh=1qT3U67UgbaZ/0JDNiBH/4gFtj6V8GdYysdNBn8Ocsc=; h=From:To:Subject:Date:From; b=gu+Afpx/VwOI4afnP0U5J8gKDQRSI3pnI/9EJiIMb4S+kJhCsZzIss1zmE+F9xIn8 dZFB6vVBSBTfaSLOlZAdzgHHsT8VclEVUdOqk3fObB1m0V8up2TFfEiPb/8Irko7/N NqQNF5g07YslEilMaE2LYko1aM0gu4xFbFhBMNVI= Received: from lx-birch.ad.sei.cmu.edu (lx-birch.ad.sei.cmu.edu [10.64.53.120]) by korb.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id xB9GmKew012560 for ; Mon, 9 Dec 2019 11:48:21 -0500 Received: from lx-birch.ad.sei.cmu.edu (localhost [127.0.0.1]) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) with ESMTP id xB9GmKrd023467 for ; Mon, 9 Dec 2019 11:48:20 -0500 Received: (from mwd@localhost) by lx-birch.ad.sei.cmu.edu (8.14.7/8.14.7) id xB9GmKgL023464; Mon, 9 Dec 2019 11:48:20 -0500 X-Authentication-Warning: lx-birch.ad.sei.cmu.edu: mwd set sender to mwd@cert.org using -f From: Michael Welsh Duggan To: bug-gnu-emacs@gnu.org Subject: 27.0.50; Infloop when doing completion-at-point in shell-mode Date: Mon, 09 Dec 2019 11:48:20 -0500 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 147.72.252.16 X-Spam-Score: -1.6 (-) 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.6 (--) Hitting TAB after a semicolon in a shell buffer causes an infloop in `shell--parse-pcomplete-arguments'. emacs -Q M-x shell RET ; TAB In GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit) of 2019-12-09 built on pd4.ta.sei.cmu.edu Repository revision: bb8f46d55bb369589ae475e47ad948da88c0d31d Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12004000 System Description: Red Hat Enterprise Linux Server 7.6 (Maipo) Configured using: 'configure --without-toolkit-scroll-bars --with-wide-int --prefix=/home/mwd/ --with-jpeg=ifavailable PKG_CONFIG_PATH=/opt/rh/devtoolset-8/root/usr/lib64/pkgconfig' Configured features: XAW3D XPM TIFF GIF PNG SOUND GSETTINGS GLIB NOTIFY INOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE HARFBUZZ M17N_FLT LIBOTF XFT ZLIB LUCID X11 XDBE XIM MODULES THREADS PDUMPER GMP Important settings: value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix -- Michael Welsh Duggan (mwd@cert.org) ------------=_1579341483-7656-3-- From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jan 2020 18:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 39075@debbugs.gnu.org Cc: eliz@gnu.org, pieter@vanoostrum.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157945733315928 (code B ref 39075); Sun, 19 Jan 2020 18:09:01 +0000 Received: (at 39075) by debbugs.gnu.org; 19 Jan 2020 18:08:53 +0000 Received: from localhost ([127.0.0.1]:43848 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itF0G-00048q-Qu for submit@debbugs.gnu.org; Sun, 19 Jan 2020 13:08:53 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48945) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itF0E-00048c-8y for 39075@debbugs.gnu.org; Sun, 19 Jan 2020 13:08:51 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38309) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itF08-00082T-QY; Sun, 19 Jan 2020 13:08:44 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1itF07-0003QR-Bx; Sun, 19 Jan 2020 13:08:43 -0500 From: Glenn Morris References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> <83ftgd13zb.fsf@gnu.org> X-Spook: computer terrorism Power lines Sarin Agent radar United X-Ran: }a,QdgafqeT (Eli Zaretskii's message of "Sat, 18 Jan 2020 11:57:44 +0200") Message-ID: <4nd0bfb9p0.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) This causes a test failure for me on CentOS 8.1. (BTW, the bug# in the commit log has a typo, but obviosuly nothing can be done about that.) Test shell-tests-completion-before-semi backtrace: signal(ert-test-failed (((should (equal (shell--parse-pcomplete-argu ert-fail(((should (equal (shell--parse-pcomplete-arguments) '(("cd" #f(compiled-function () #)() ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test ert-run-test(#s(ert-test :name shell-tests-completion-before-semi :d ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))) ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) ( command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/shell-tests" "--eval command-line() normal-top-level() Test shell-tests-completion-before-semi condition: (ert-test-failed ((should (equal (shell--parse-pcomplete-arguments) '...)) :form (equal (("cd" "ba" "") 1 4 7) (("cd" "ba" "") 1 4)) :value nil :explanation (proper-lists-of-different-length 4 3 (("cd" "ba" "") 1 4 7) (("cd" "ba" "") 1 4) first-mismatch-at 3))) FAILED 1/2 shell-tests-completion-before-semi (0.000774 sec) From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jan 2020 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: Eli Zaretskii , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157945752316233 (code B ref 39075); Sun, 19 Jan 2020 18:13:01 +0000 Received: (at 39075) by debbugs.gnu.org; 19 Jan 2020 18:12:03 +0000 Received: from localhost ([127.0.0.1]:43853 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itF3L-0004Dl-Io for submit@debbugs.gnu.org; Sun, 19 Jan 2020 13:12:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:49160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itF3J-0004DH-Hv for 39075@debbugs.gnu.org; Sun, 19 Jan 2020 13:12:02 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38330) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1itF3E-0000xN-Bk; Sun, 19 Jan 2020 13:11:56 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1itF3B-0003iP-DN; Sun, 19 Jan 2020 13:11:53 -0500 From: Glenn Morris References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> X-Spook: argus assassinate Hazardous Lockdown Cops Burst SEAL Team X-Ran: EPjt (Pieter van Oostrum's message of "Fri, 17 Jan 2020 11:57:51 +0100") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Spam-Score: -2.3 (--) 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: -3.3 (---) Pieter van Oostrum wrote: > I propose to amend the test also, so that it would have caught this > error (by hanging). I haven't read anything else, so take this with a grain of salt, but tests that hang (rather than just fail) are a PITA for automated testing. From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 Jan 2020 21:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157947009119117 (code B ref 39075); Sun, 19 Jan 2020 21:42:01 +0000 Received: (at 39075) by debbugs.gnu.org; 19 Jan 2020 21:41:31 +0000 Received: from localhost ([127.0.0.1]:43983 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itIK3-0004yH-0e for submit@debbugs.gnu.org; Sun, 19 Jan 2020 16:41:31 -0500 Received: from smarthost-b.hosting2go.nl ([83.137.198.202]:47492) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itIK2-0004y4-1c for 39075@debbugs.gnu.org; Sun, 19 Jan 2020 16:41:30 -0500 X-ASG-Debug-ID: 1579470084-0a9db43b8a1b4ad00001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-b.hosting2go.nl with ESMTP id lusGeSpUjZ0tHNTd (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Sun, 19 Jan 2020 22:41:24 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 29802 invoked from network); 19 Jan 2020 21:41:23 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 19 Jan 2020 21:41:23 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 37790A74AFCE; Sun, 19 Jan 2020 22:41:23 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Sun, 19 Jan 2020 22:41:22 +0100 In-Reply-To: (Glenn Morris's message of "Sun, 19 Jan 2020 13:11:53 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579470084 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.202:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 641 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 B-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79446 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 (-) Glenn Morris writes: > Pieter van Oostrum wrote: > >> I propose to amend the test also, so that it would have caught this >> error (by hanging). > > I haven't read anything else, so take this with a grain of salt, but > tests that hang (rather than just fail) are a PITA for automated testing. That is true, but the test is there to test the fix, which makes it no longer hang. And as these are in the same commit, the test should never hang, unless somebody breaks the fix later. But then hanging could occur with any bug. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 00:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Glenn Morris Cc: Eli Zaretskii , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.15794801802672 (code B ref 39075); Mon, 20 Jan 2020 00:30:02 +0000 Received: (at 39075) by debbugs.gnu.org; 20 Jan 2020 00:29:40 +0000 Received: from localhost ([127.0.0.1]:44167 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itKwl-0000h0-Ko for submit@debbugs.gnu.org; Sun, 19 Jan 2020 19:29:40 -0500 Received: from smarthost-a.hosting2go.nl ([83.137.198.201]:36776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itKwj-0000gm-KV for 39075@debbugs.gnu.org; Sun, 19 Jan 2020 19:29:38 -0500 X-ASG-Debug-ID: 1579480171-0ac37b52055e5980001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-a.hosting2go.nl with ESMTP id TgMvAxUf2vvPXRyM (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Mon, 20 Jan 2020 01:29:31 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 23977 invoked from network); 20 Jan 2020 00:29:31 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 20 Jan 2020 00:29:31 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id D25F6A74C019; Mon, 20 Jan 2020 01:29:30 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <877e1tz9vb.fsf@md5i.com> <83ftgd13zb.fsf@gnu.org> <4nd0bfb9p0.fsf@fencepost.gnu.org> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Mon, 20 Jan 2020 01:29:28 +0100 In-Reply-To: <4nd0bfb9p0.fsf@fencepost.gnu.org> (Glenn Morris's message of "Sun, 19 Jan 2020 13:08:43 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579480171 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.201:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 1767 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 A-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79449 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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 (-) Glenn Morris writes: > This causes a test failure for me on CentOS 8.1. > (BTW, the bug# in the commit log has a typo, but obviosuly nothing can > be done about that.) > > > Test shell-tests-completion-before-semi backtrace: > signal(ert-test-failed (((should (equal (shell--parse-pcomplete-argu > ert-fail(((should (equal (shell--parse-pcomplete-arguments) '(("cd" > #f(compiled-function () #)() > ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test > ert-run-test(#s(ert-test :name shell-tests-completion-before-semi :d > ert-run-or-rerun-test(#s(ert--stats :selector (not (or (tag :expensi > ert-run-tests((not (or (tag :expensive-test) (tag :unstable))) #f(co > ert-run-tests-batch((not (or (tag :expensive-test) (tag :unstable))) > ert-run-tests-batch-and-exit((not (or (tag :expensive-test) (tag :un > eval((ert-run-tests-batch-and-exit '(not (or (tag :expensive-test) ( > command-line-1(("-L" ":." "-l" "ert" "-l" "lisp/shell-tests" "--eval > command-line() > normal-top-level() > Test shell-tests-completion-before-semi condition: > (ert-test-failed > ((should > (equal > (shell--parse-pcomplete-arguments) > '...)) > :form > (equal > (("cd" "ba" "") > 1 4 7) > (("cd" "ba" "") > 1 4)) > :value nil :explanation > (proper-lists-of-different-length 4 3 > (("cd" "ba" "") > 1 4 7) > (("cd" "ba" "") > 1 4) > first-mismatch-at 3))) > FAILED 1/2 shell-tests-completion-before-semi (0.000774 sec) Aahh! My bad. It should have been 1 4 7. I made a copying error. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 07:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: Glenn Morris , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157950644319405 (code B ref 39075); Mon, 20 Jan 2020 07:48:01 +0000 Received: (at 39075) by debbugs.gnu.org; 20 Jan 2020 07:47:23 +0000 Received: from localhost ([127.0.0.1]:44311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itRmN-00052u-9s for submit@debbugs.gnu.org; Mon, 20 Jan 2020 02:47:23 -0500 Received: from mout.gmx.net ([212.227.15.15]:40581) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itRmL-00052f-Nk for 39075@debbugs.gnu.org; Mon, 20 Jan 2020 02:47:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579506434; bh=TQPH3k5HJ40tSNgCRDrzaRPQyiieqg9xwYzzXb9Y5+o=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=PKxtGC3sA83KuRGTZDpvqdC8G8775uPRkL9cps7nyM8Fn3Sj2fAdMOGmNafp3yihN LH44V5nv475R4tcNcdVrmAtsITyMwzB6vnOOQK5Wu0j81GKRdBAJVdcmjKOLEFp0oj s9XGdYW5sboMwAnAiRGhkLyJ+lx+NhONjBt5YSMk= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.37.47]) by mail.gmx.com (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MEm2D-1irWmY36Lb-00GFgK; Mon, 20 Jan 2020 08:47:13 +0100 From: Michael Albinus References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> Date: Mon, 20 Jan 2020 08:47:11 +0100 In-Reply-To: (Pieter van Oostrum's message of "Sun, 19 Jan 2020 22:41:22 +0100") Message-ID: <87h80q1se8.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:ZNdKOD+k5q0OhinUNazd+W8YhBGFFnEOfvvdRBobdKXM1WmRwVb 0dpJo16icpHJF3XkDYlFSpo8JHR9wa4xOgdzum0VU3Hmf5p8cjlcTETrwGWOF1dgdFfkFib GhnEJmZBl/0g28rWgip5SsyWqNob2ZpWv/DckUkcrY+2DmhWaVMvm4IgdMkw7KOjzjm8W65 j2DFITUfxd/dwk3W6ReMA== X-Spam-Flag: NO X-UI-Out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H/enZXiv 8P+hWohcsqKqOrtdzyLOYAAet3lNC/RNLWclR3y1PGmz+6znERPqYQgNd+k9QiTrKw7YjIgha Co8ftNc0QjhKM7GYt/4MwxiV6+v6Fgt1PxS2dnD7jAzLGTMdWjOk5xCetbYYA1sehDAckMOwF 445WDjd8n7tfSgNrdKmCHrCgQwydJu8RtMnZbF0DBh1xEE9ZFEQAH5vGlpifZDq1z9Bf93Pby 2tL16+wCTeNzBZ6QFpybm9/ovs6ydfQqR4HLnr0OaNhVN/clqClqwebbgwPQ= 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 (-) Pieter van Oostrum writes: >>> I propose to amend the test also, so that it would have caught this >>> error (by hanging). >> >> I haven't read anything else, so take this with a grain of salt, but >> tests that hang (rather than just fail) are a PITA for automated testing. > > That is true, but the test is there to test the fix, which makes it no > longer hang. And as these are in the same commit, the test should > never hang, unless somebody breaks the fix later. But then hanging > could occur with any bug. I haven't checked your test case, but in Tramp I try to avoid hanging by wrapping process related tests with a timer. Experience has taught me, that I'm able to break the tests all the time by new code :-( Best regards, Michael. From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Pieter van Oostrum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 13:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Michael Albinus Cc: Eli Zaretskii , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157952595314862 (code B ref 39075); Mon, 20 Jan 2020 13:13:02 +0000 Received: (at 39075) by debbugs.gnu.org; 20 Jan 2020 13:12:33 +0000 Received: from localhost ([127.0.0.1]:44525 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itWr3-0003re-BB for submit@debbugs.gnu.org; Mon, 20 Jan 2020 08:12:33 -0500 Received: from smarthost-a.hosting2go.nl ([83.137.198.201]:55098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itWqy-0003rN-0I for 39075@debbugs.gnu.org; Mon, 20 Jan 2020 08:12:31 -0500 X-ASG-Debug-ID: 1579525942-0ac37b67526199d0001-ZIxEMc Received: from server24.hosting2go.nl (server24.hosting2go.nl [83.137.194.11]) by smarthost-a.hosting2go.nl with ESMTP id sKV4E2Bjm7eo1RZE (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <39075@debbugs.gnu.org>; Mon, 20 Jan 2020 14:12:22 +0100 (CET) X-Barracuda-Envelope-From: pieter-l@vanoostrum.org X-Barracuda-Effective-Source-IP: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Apparent-Source-IP: 83.137.194.11 Received: (qmail 7689 invoked from network); 20 Jan 2020 13:12:21 -0000 Received: from static-145.132.212.31.ip.telfort.nl (HELO cochabamba.vanoostrum.org) (145.132.212.31) by server24.hosting2go.nl with SMTP; 20 Jan 2020 13:12:21 -0000 Received-SPF: unknown (server24.hosting2go.nl: domain at 83.137.194.9 does not designate permitted sender hosts) Received: from cochabamba.vanoostrum.org (localhost [IPv6:::1]) by cochabamba.vanoostrum.org (Postfix) with ESMTP id 17FC8A751510; Mon, 20 Jan 2020 14:12:20 +0100 (CET) From: Pieter van Oostrum References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <87h80q1se8.fsf@gmx.de> X-ASG-Orig-Subj: Re: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Date: Mon, 20 Jan 2020 14:12:20 +0100 In-Reply-To: <87h80q1se8.fsf@gmx.de> (Michael Albinus's message of "Mon, 20 Jan 2020 08:47:11 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.60 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Barracuda-Connect: server24.hosting2go.nl[83.137.194.11] X-Barracuda-Start-Time: 1579525942 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://83.137.198.201:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at hosting2go.nl X-Barracuda-Scan-Msg-Size: 1084 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 1.04 X-Barracuda-Spam-Status: No, SCORE=1.04 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.5 tests=BSF_SC0_MISMATCH_TO, FS_LARGE_PERCENT2 A-X-Hosting2GO-Smarthost: Clean X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.79460 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 1.04 FS_LARGE_PERCENT2 Larger than 100% in subj. 0.00 BSF_SC0_MISMATCH_TO Envelope rcpt doesn't match header 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: > Pieter van Oostrum writes: > >>>> I propose to amend the test also, so that it would have caught this >>>> error (by hanging). >>> >>> I haven't read anything else, so take this with a grain of salt, but >>> tests that hang (rather than just fail) are a PITA for automated testing. >> >> That is true, but the test is there to test the fix, which makes it no >> longer hang. And as these are in the same commit, the test should >> never hang, unless somebody breaks the fix later. But then hanging >> could occur with any bug. > > I haven't checked your test case, but in Tramp I try to avoid hanging by > wrapping process related tests with a timer. > > Experience has taught me, that I'm able to break the tests all the time > by new code :-( > If you know a better test to check for this particular fix, I would be happy if you could let me know. I don't know if some timer code would help. -- Pieter van Oostrum www: http://pieter.vanoostrum.org/ PGP key: [8DAE142BE17999C4] From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 13:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum Cc: Eli Zaretskii , 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157952722716991 (code B ref 39075); Mon, 20 Jan 2020 13:34:02 +0000 Received: (at 39075) by debbugs.gnu.org; 20 Jan 2020 13:33:47 +0000 Received: from localhost ([127.0.0.1]:44550 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itXBb-0004Pz-Av for submit@debbugs.gnu.org; Mon, 20 Jan 2020 08:33:47 -0500 Received: from mout.gmx.net ([212.227.15.18]:36241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itXBX-0004Pj-Bz for 39075@debbugs.gnu.org; Mon, 20 Jan 2020 08:33:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1579527216; bh=5boLlkM1TSnxWhl5OhPXxo/jEDTxaQQl0A1nch7Zqas=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=WD2RGYoOb9GoKsQJaDNHl5r/GYuy5qaKsLe0Uoq04bf+RqUMp5ZqJdodiLvz66AtX mGeSQgo9cIyooPuJ7uZAubna+alDNrPflJT1xKuwDmRP9Zi1JpWPUxtmqQ3ligwNJE kzaiJTM7CQeW69MYYqloMyMyhTLJ9u2ndyIYp6Ik= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from detlef.gmx.de ([212.86.37.47]) by mail.gmx.com (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1N49lD-1jb9ft28zB-0107No; Mon, 20 Jan 2020 14:33:36 +0100 From: Michael Albinus References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> <83y2ue71py.fsf@gnu.org> <83blr87eq1.fsf@gnu.org> <87h80q1se8.fsf@gmx.de> Date: Mon, 20 Jan 2020 14:33:35 +0100 In-Reply-To: (Pieter van Oostrum's message of "Mon, 20 Jan 2020 14:12:20 +0100") Message-ID: <878sm2xnf4.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:fs18gFx60Tf4vIs6HQWEpha8inX1acwXfPPHjtub/14MrVIns1m uteewobnrLLWkUSMZ6E1mX6oMiP6YKPFGDrgOhXvjgdcpjgAKrGXilRmte66Vfc3aJcGEJw Ih6Gp9IQQAmoCyLb98NOn0+L2eAhDaXBboMq8JNRfDEKNMrZN5XsnZ7eJNthPPmHfq52udD y6Xxb/+bQjuqC2OiiCO5Q== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:rr6jhZifgpA=:wMwDIl7lMM1P09leq1gwP/ nPbyWiYxVXzhErA7OY8phMT+ixiuIXDRRbSxdac30Jbh63cHA1gNOnLmBpKW+mWmYwtXjSUgY f4699/FNiqFR7pwduLzPl2ZA6qHAGFcHpmgJVh5xN/VVDm4HZ61C/xVVtnsGJ3di/od6bILiE EMfUHTFCJVSJfL61sgo79vXKAIww5TYhj9YORxk9+ae90I2Kc8SfWh2ddbu4qMSD3fi21fxSx nuqBgwRa33D7d7AykYFUoUJY1tO43KtmEvTU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) 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 (-) Pieter van Oostrum writes: >>> That is true, but the test is there to test the fix, which makes it no >>> longer hang. And as these are in the same commit, the test should >>> never hang, unless somebody breaks the fix later. But then hanging >>> could occur with any bug. >> >> I haven't checked your test case, but in Tramp I try to avoid hanging by >> wrapping process related tests with a timer. >> >> Experience has taught me, that I'm able to break the tests all the time >> by new code :-( >> > If you know a better test to check for this particular fix, I would be > happy if you could let me know. I don't know if some timer code would > help. Which test do you mean? There is shell-tests-completion-before-semi, but this doesn't use a process. Best regards, Michael. From unknown Sat Jun 14 04:59:06 2025 X-Loop: help-debbugs@gnu.org Subject: bug#39075: 28.0.50; Emacs hangs on 100% CPU and grows beyond bounds in shell-mode References: <24088.59850.194801.667764@cochabamba.vanoostrum.org> In-Reply-To: <24088.59850.194801.667764@cochabamba.vanoostrum.org> Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 20 Jan 2020 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39075 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Pieter van Oostrum , Michael Albinus , Eli Zaretskii Cc: 39075@debbugs.gnu.org Received: via spool by 39075-submit@debbugs.gnu.org id=B39075.157953227426363 (code B ref 39075); Mon, 20 Jan 2020 14:58:02 +0000 Received: (at 39075) by debbugs.gnu.org; 20 Jan 2020 14:57:54 +0000 Received: from localhost ([127.0.0.1]:45808 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itYUw-0006r5-1z for submit@debbugs.gnu.org; Mon, 20 Jan 2020 09:57:53 -0500 Received: from mail1465c50.megamailservers.eu ([91.136.14.65]:56706 helo=mail268c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1itYUp-0006qm-I7 for 39075@debbugs.gnu.org; Mon, 20 Jan 2020 09:57:48 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1579532256; bh=sWgMu6VrBmDOsnXCybv46KSnQlAtbOj12VsbRmZuV28=; h=From:Subject:Date:Cc:To:From; b=LxJ3+wDzfBZnsYE3pNB+hZiaLB5/iMT5VPv/NVIcDeI00E3XVwyhpO2QVLXQVx+8E OjZOD2goweiMNe3sn2Yd/kSw0dGCYxA0sLhdqOEY6Gs1qtGT2zXRtxXz209oWNG9YM ef/Aoi1WHXwuWnUIxywEmDuxhyrhbgBT7QSd2xcE= Feedback-ID: mattiase@acm.or Received: from [192.168.0.4] (c188-150-171-71.bredband.comhem.se [188.150.171.71]) (authenticated bits=0) by mail268c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 00KEvXDr007264; Mon, 20 Jan 2020 14:57:35 +0000 From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Message-Id: <5B301E7E-2EA1-4FD1-A239-29AE33C52B34@acm.org> Date: Mon, 20 Jan 2020 15:57:33 +0100 X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B020D.5E25BFE0.0025, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Rules: X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=J53UEzvS c=1 sm=1 tr=0 a=SF+I6pRkHZhrawxbOkkvaA==:117 a=SF+I6pRkHZhrawxbOkkvaA==:17 a=kj9zAlcOel0A:10 a=_Y2C7xSanVYA:10 a=M51BFTxLslgA:10 a=JBdzh7Xex6zL95mD8q8A:9 a=CjuIK1q_8ugA:10 X-Spam-Score: 0.3 (/) 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: -0.7 (/) At the very least, a test named 'shell-tests-completion-before-semi' = should not be changed into testing completion after a semicolon. I took = the liberty to fixing that, and the erroneous test value that made the = changed test fail.