From unknown Tue Jun 24 03:26:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 01:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 71778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 71778@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.171936588816447 (code B ref -1); Wed, 26 Jun 2024 01:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 Jun 2024 01:38:08 +0000 Received: from localhost ([127.0.0.1]:37776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMHbm-0004H6-O1 for submit@debbugs.gnu.org; Tue, 25 Jun 2024 21:38:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:57256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMHbZ-0004Ff-Vc for submit@debbugs.gnu.org; Tue, 25 Jun 2024 21:38:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMFiY-0002C1-UC for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 19:36:54 -0400 Received: from [2607:f8b0:4864:20::331] (helo=mail-ot1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMFhw-0004Z6-FX for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 19:36:45 -0400 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-700cb05c118so504206a34.2 for ; Tue, 25 Jun 2024 16:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1719358498; x=1719963298; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=j/Nw7caYspgB61ifadyc92SuFgOauq4Ca3H2vV4E1Sw=; b=VswbrbLHsbCSAS6YYvvHgWEtlFo6G0Mx7c8iijoi1EEPiW3I3znhWqzz6Guh8my1G/ 6XnVC4hd74Px3XlrM/p1lij6lCqlJ6w8sj6SxPdcs98L9mlZXcgJfnAVLkVQYrmLomh6 XauBdAEFCmV2phl2Hkm/qQqTPcfbRMaEeA9nZi3+PctO68McHF+gmtuOxsHMGOTCrlwH WBPSedJJUV3cXQGUz6p8QeV8IPwLtjpS1e5fu4jpxhRA35cTzs1Ku75z2+BF4g0QGYHt O0QNf6ZrVAlhwlc3YYEeV2iTFAmWajGSRgmonBBBa8b/ectNb8Mg2yUQkYit0+nCGIUv s0JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719358498; x=1719963298; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j/Nw7caYspgB61ifadyc92SuFgOauq4Ca3H2vV4E1Sw=; b=OXxlo2q7dWF3vGWVvm7HNUOYHnmwC2NA0pJiN+hyA0j7Iy8904FYkAIlLdbSFHemMW QmRiVzNA/QsqBxkuRQ+zGKJtc3lYcXLePR86GDEy92xqKul5Hjc58sYRibJhQtbiir8c uHHBZW1HDzpAJEPFGNa0iJVqLS+Z4oyowqcQxdITt0OG897a4Cw3YrX0FD/XULkI2FAl l2ocTYHcwB/Ns3uMl/y4S2qV6KMBwDDXWw3J13ixZdH3DAJPtuPb5TenrezMf8xOskce +bfuIJgS7NV/2XJO/D07Q/AXZfmk71doQ1p/HQMjKMnijxZwIVXFt9YJGKU8f6MzWkPq be2Q== X-Gm-Message-State: AOJu0YxX9niPRwh11Au5Ze/f1LfoitnmJNkGGGhO5AJzCEGCDpx7hary 4uFnpDCuXY3dJyJm+ZxvRTgGzb1RGYwYgCnD2xK2sRPGE5ClNFQfcSC+mVqPgvumDdp1w0Q5lpv R X-Google-Smtp-Source: AGHT+IEwfbdPi9drOh25RdIBGa4/7iv69TTgszyYpfbGIrefnsK9guBPV2tzSwCCM9j3KspG/iFoug== X-Received: by 2002:a05:6808:1998:b0:3d2:314b:cd0f with SMTP id 5614622812f47-3d54594dc2dmr11279151b6e.3.1719348624844; Tue, 25 Jun 2024 13:50:24 -0700 (PDT) Received: from smtpclient.apple ([2620:149:13c1:500::1c8]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-444c2ba38edsm59648371cf.53.2024.06.25.13.50.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2024 13:50:24 -0700 (PDT) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3810.100.6\)) Message-Id: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> Date: Tue, 25 Jun 2024 16:50:13 -0400 X-Mailer: Apple Mail (2.3810.100.6) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::331 (deferred) Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=spd@toadstyle.org; helo=mail-ot1-x331.google.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, PDS_HP_HELO_NORDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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 (---) Hi folks, I've found it is possible to Eshell in the middle of a command. Here's a recipe: 1. Emacs -Q 2. M-x eshell 3. In Eshell: $ for x in 1 2 3 4 5 { echo hello ; sleep 2 } > # 4. While the above command is running, C-x b test 5. C-x b *eshell* Observe that the loop will never finish and the Eshell buffer becomes unresponsive. For example, pressing RET does nothing. Pressing C-c C-c will terminate the command, but Eshell no longer accepts new commands. Please let me know if I can provide additional information. Thanks! In GNU Emacs 30.0.60 Repository revision: fb11294d4156a4be45080ff286a8ee0d5a3ede9b Repository branch: HEAD Windowing system distributor 'Apple' System Description: macOS Configured using: 'configure --with-ns' Configured features: ACL DBUS GLIB GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 38769 9073) (symbols 48 5298 0) (strings 32 12476 2590) (string-bytes 1 307951) (vectors 16 9391) (vector-slots 8 114340 8902) (floats 8 21 3) (intervals 56 224 6) (buffers 992 10)) From unknown Tue Jun 24 03:26:33 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: Sean Devlin Subject: bug#71778: closed (Re: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection) Message-ID: References: <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> X-Gnu-PR-Message: they-closed 71778 X-Gnu-PR-Package: emacs Reply-To: 71778@debbugs.gnu.org Date: Wed, 26 Jun 2024 04:48:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1719377282-1512-1" This is a multi-part message in MIME format... ------------=_1719377282-1512-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #71778: 30.0.60; Eshell hangs when switching buffers during output redirect= ion 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 71778@debbugs.gnu.org. --=20 71778: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D71778 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1719377282-1512-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 71778-done) by debbugs.gnu.org; 26 Jun 2024 04:47:08 +0000 Received: from localhost ([127.0.0.1]:37929 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMKYl-0000NK-Tt for submit@debbugs.gnu.org; Wed, 26 Jun 2024 00:47:08 -0400 Received: from mail-ot1-f54.google.com ([209.85.210.54]:58743) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMKYj-0000Mn-2p for 71778-done@debbugs.gnu.org; Wed, 26 Jun 2024 00:47:06 -0400 Received: by mail-ot1-f54.google.com with SMTP id 46e09a7af769-6f8ef63714cso3682413a34.1 for <71778-done@debbugs.gnu.org>; Tue, 25 Jun 2024 21:47:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719377157; x=1719981957; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=PqYsJiNtGjpBPrDDAP0ysemtAUj8cKEJryoTwqq+5UE=; b=LIo/2o+3yC5Z0Nno+gagl0jXdriTZz6QtT4XijPc3EE+HbuEvnyfCQxjNsugZw6i/g sN+ujW4qMySw8lKYbHKAMTG4XMpDXqvNYvmNJ3RdMMJ7pDFKPyF7wBu53cf5BkZsuj1M C0BfCYm6+0/hUwDHStLXoAEDMDLESKLVYcxqsKXGnlqZs/oJRT92qoMOSh4/TZif0qAj 6pMLlOJA8fFoQdQKX2Dk+VH8RylxO+TBDq8Yj+kGUnH+1bNY3mUNaLwYX98ZkkJU9Je4 N/atJGq1BGVdHWH+wRyZQaQm8kk2B6wxReUfZn3XGgEGQC47z0kb51AvD33Acj0Nt9uK hZWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719377157; x=1719981957; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PqYsJiNtGjpBPrDDAP0ysemtAUj8cKEJryoTwqq+5UE=; b=nZmUHMx7DsZd2tX53RttdKC4xCSruzUIfhIE5s670oBbT8HUc2fBcJYWtRq4dbtigM 8v+uXVsp5AvdrH/6dRPw3DghMXRi0yDtxsGVKPsLjnfxuOSVabG+GLQl64wdrqpRIxKI yg5/747q0R1E8eLhJH2lXmmRbKi6WnuUF5QXf27eBCKT8nkJgBjLfS9Qgf02Nn7X4dJy Pw43IklxkC8esp+b08TL+FLx91H9CfNA5ATcBbxKY4JugyYfX1oNM+BsnwuTP7EHJnMK 5FOe9wF02Z/HSH55oQQvFUhOWYYv2dudKFnojwGvN6cppQYbFnKAeKWO2oQ5p/zHw0Ja CBRw== X-Forwarded-Encrypted: i=1; AJvYcCUyaqV+Ah9jsEm2YtkogoNdgchGZiLX1L5x/vzRRRtyN9lQRGLcGjGeyV6x91vzyB3GZ4l21/QbHlVRe+XhnxFU0lqvyHo8IYZDdA== X-Gm-Message-State: AOJu0YxqO2PjhOXyxR/6/D/LkQP20i3o+sbmPCm3MtnCh7TSnKjALvl8 Fp8WFkXUi8tKdkS787VtOtxB8HCOJppy+9doDEKCsjOvkTX7hKKH X-Google-Smtp-Source: AGHT+IEIzZW5LGM2hjrLfVS/d0jd5BSNDJPLACfWpQl0EpbsLUuANo+kEImBWz1u3BXk9lxN9gwR+Q== X-Received: by 2002:a05:6870:568d:b0:258:476d:a793 with SMTP id 586e51a60fabf-25d06c3133amr9109179fac.19.1719377157168; Tue, 25 Jun 2024 21:45:57 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-70666de7bc0sm7245508b3a.74.2024.06.25.21.45.56 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Jun 2024 21:45:56 -0700 (PDT) Message-ID: <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> Date: Tue, 25 Jun 2024 21:45:56 -0700 MIME-Version: 1.0 Subject: Re: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection To: Sean Devlin , 71778-done@debbugs.gnu.org References: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> Content-Language: en-US From: Jim Porter In-Reply-To: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 71778-done 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 (-) Version: 30.1 On 6/25/2024 1:50 PM, Sean Devlin wrote: > I've found it is possible to Eshell in the middle of a command. Here's a > recipe: [snip] > $ for x in 1 2 3 4 5 { echo hello ; sleep 2 } > # > > 4. While the above command is running, C-x b test > 5. C-x b *eshell* Tricky! But thankfully it was an easy fix. We just needed to make sure that when cleaning up in a timer after 'eshell-sentinel', we always do it from the Eshell buffer. Fixed on both the master branch and the release branch, with a regression test. ------------=_1719377282-1512-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 26 Jun 2024 01:38:08 +0000 Received: from localhost ([127.0.0.1]:37776 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMHbm-0004H6-O1 for submit@debbugs.gnu.org; Tue, 25 Jun 2024 21:38:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:57256) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMHbZ-0004Ff-Vc for submit@debbugs.gnu.org; Tue, 25 Jun 2024 21:38:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMFiY-0002C1-UC for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 19:36:54 -0400 Received: from [2607:f8b0:4864:20::331] (helo=mail-ot1-x331.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sMFhw-0004Z6-FX for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 19:36:45 -0400 Received: by mail-ot1-x331.google.com with SMTP id 46e09a7af769-700cb05c118so504206a34.2 for ; Tue, 25 Jun 2024 16:35:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1719358498; x=1719963298; darn=gnu.org; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:from:to:cc:subject:date:message-id:reply-to; bh=j/Nw7caYspgB61ifadyc92SuFgOauq4Ca3H2vV4E1Sw=; b=VswbrbLHsbCSAS6YYvvHgWEtlFo6G0Mx7c8iijoi1EEPiW3I3znhWqzz6Guh8my1G/ 6XnVC4hd74Px3XlrM/p1lij6lCqlJ6w8sj6SxPdcs98L9mlZXcgJfnAVLkVQYrmLomh6 XauBdAEFCmV2phl2Hkm/qQqTPcfbRMaEeA9nZi3+PctO68McHF+gmtuOxsHMGOTCrlwH WBPSedJJUV3cXQGUz6p8QeV8IPwLtjpS1e5fu4jpxhRA35cTzs1Ku75z2+BF4g0QGYHt O0QNf6ZrVAlhwlc3YYEeV2iTFAmWajGSRgmonBBBa8b/ectNb8Mg2yUQkYit0+nCGIUv s0JQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719358498; x=1719963298; h=to:date:message-id:subject:mime-version:content-transfer-encoding :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=j/Nw7caYspgB61ifadyc92SuFgOauq4Ca3H2vV4E1Sw=; b=OXxlo2q7dWF3vGWVvm7HNUOYHnmwC2NA0pJiN+hyA0j7Iy8904FYkAIlLdbSFHemMW QmRiVzNA/QsqBxkuRQ+zGKJtc3lYcXLePR86GDEy92xqKul5Hjc58sYRibJhQtbiir8c uHHBZW1HDzpAJEPFGNa0iJVqLS+Z4oyowqcQxdITt0OG897a4Cw3YrX0FD/XULkI2FAl l2ocTYHcwB/Ns3uMl/y4S2qV6KMBwDDXWw3J13ixZdH3DAJPtuPb5TenrezMf8xOskce +bfuIJgS7NV/2XJO/D07Q/AXZfmk71doQ1p/HQMjKMnijxZwIVXFt9YJGKU8f6MzWkPq be2Q== X-Gm-Message-State: AOJu0YxX9niPRwh11Au5Ze/f1LfoitnmJNkGGGhO5AJzCEGCDpx7hary 4uFnpDCuXY3dJyJm+ZxvRTgGzb1RGYwYgCnD2xK2sRPGE5ClNFQfcSC+mVqPgvumDdp1w0Q5lpv R X-Google-Smtp-Source: AGHT+IEwfbdPi9drOh25RdIBGa4/7iv69TTgszyYpfbGIrefnsK9guBPV2tzSwCCM9j3KspG/iFoug== X-Received: by 2002:a05:6808:1998:b0:3d2:314b:cd0f with SMTP id 5614622812f47-3d54594dc2dmr11279151b6e.3.1719348624844; Tue, 25 Jun 2024 13:50:24 -0700 (PDT) Received: from smtpclient.apple ([2620:149:13c1:500::1c8]) by smtp.gmail.com with ESMTPSA id d75a77b69052e-444c2ba38edsm59648371cf.53.2024.06.25.13.50.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Jun 2024 13:50:24 -0700 (PDT) From: Sean Devlin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3810.100.6\)) Subject: 30.0.60; Eshell hangs when switching buffers during output redirection Message-Id: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> Date: Tue, 25 Jun 2024 16:50:13 -0400 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3810.100.6) X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::331 (deferred) Received-SPF: pass client-ip=2607:f8b0:4864:20::331; envelope-from=spd@toadstyle.org; helo=mail-ot1-x331.google.com X-Spam_score_int: -8 X-Spam_score: -0.9 X-Spam_bar: / X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, PDS_HP_HELO_NORDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=no autolearn_force=no X-Spam_action: no action 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 (---) Hi folks, I've found it is possible to Eshell in the middle of a command. Here's a recipe: 1. Emacs -Q 2. M-x eshell 3. In Eshell: $ for x in 1 2 3 4 5 { echo hello ; sleep 2 } > # 4. While the above command is running, C-x b test 5. C-x b *eshell* Observe that the loop will never finish and the Eshell buffer becomes unresponsive. For example, pressing RET does nothing. Pressing C-c C-c will terminate the command, but Eshell no longer accepts new commands. Please let me know if I can provide additional information. Thanks! In GNU Emacs 30.0.60 Repository revision: fb11294d4156a4be45080ff286a8ee0d5a3ede9b Repository branch: HEAD Windowing system distributor 'Apple' System Description: macOS Configured using: 'configure --with-ns' Configured features: ACL DBUS GLIB GNUTLS LCMS2 LIBXML2 MODULES NOTIFY KQUEUE NS PDUMPER PNG RSVG SQLITE3 THREADS TOOLKIT_SCROLL_BARS TREE_SITTER WEBP XIM ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t minibuffer-regexp-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date subr-x mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/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 lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq simple cl-generic indonesian philippine cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind kqueue cocoa ns lcms2 multi-tty make-network-process emacs) Memory information: ((conses 16 38769 9073) (symbols 48 5298 0) (strings 32 12476 2590) (string-bytes 1 307951) (vectors 16 9391) (vector-slots 8 114340 8902) (floats 8 21 3) (intervals 56 224 6) (buffers 992 10)) ------------=_1719377282-1512-1-- From unknown Tue Jun 24 03:26:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 13:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter Cc: jporterbugs@gmail.com, 71778@debbugs.gnu.org, spd@toadstyle.org Received: via spool by 71778-submit@debbugs.gnu.org id=B71778.171940693530447 (code B ref 71778); Wed, 26 Jun 2024 13:03:02 +0000 Received: (at 71778) by debbugs.gnu.org; 26 Jun 2024 13:02:15 +0000 Received: from localhost ([127.0.0.1]:38765 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMSHv-0007v1-CU for submit@debbugs.gnu.org; Wed, 26 Jun 2024 09:02:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46690) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMSHt-0007uo-U3 for 71778@debbugs.gnu.org; Wed, 26 Jun 2024 09:02:14 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sMSHl-00045X-Nz; Wed, 26 Jun 2024 09:02:05 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=VtJZk4yW+MSS1+ag7Z510XJxGK+pyETBDP7u1jIAqFQ=; b=QpnX5aqrj+qC JAe2yIgl5T2UkbRTf7W0jfPSTXoCknwOasv7yKYPWtkh8OfKfEwhbKh+yat4V95qUTsPwpWo38HP0 qYmL2rTTAIjmvV0m5C8jNXtohO1gUGb76dqNO1fSixlHWf0i9i1gRkkABudVYFT2vfuhmzP7StPAW nxndw5iiAgIh+k1ZCVatSPjM6nC1pidtfeeRrzkrYjCQ+90xiD8HmgY3gwgJ/7EUo7ea2nj5eFZUt PbOy3IYvTTa5efjq7DAE8xJNUu4+LRjJIjH40+Hss3+oKOARbQdifc4DyWj01rcfkoQVTcLYwagtf 5sc+Ju/PORZ503cButMYLw==; Date: Wed, 26 Jun 2024 16:01:43 +0300 Message-Id: <86pls397t4.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> (message from Jim Porter on Tue, 25 Jun 2024 21:45:56 -0700) References: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> 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: Tue, 25 Jun 2024 21:45:56 -0700 > From: Jim Porter > > Fixed on both the master branch and the release branch, with a > regression test. Thanks. But in the future, please install bugfix changes for Emacs 30 on the release branch; they will be merged to master when one of us does such merges (which happens every few days as a matter of routine). The "install-on-master-then-cherry-pick" method should be reserved for the rare cases where a change is installed on master either by mistake or because the author believed it was not appropriate for the release branch. From unknown Tue Jun 24 03:26:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection Resent-From: Sean Devlin Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 14:08:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jim Porter Cc: 71778-done@debbugs.gnu.org Received: via spool by 71778-done@debbugs.gnu.org id=D71778.171941087616931 (code D ref 71778); Wed, 26 Jun 2024 14:08:02 +0000 Received: (at 71778-done) by debbugs.gnu.org; 26 Jun 2024 14:07:56 +0000 Received: from localhost ([127.0.0.1]:40029 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMTJT-0004P1-UC for submit@debbugs.gnu.org; Wed, 26 Jun 2024 10:07:56 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:44173) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMTJS-0004Oo-Ht for 71778-done@debbugs.gnu.org; Wed, 26 Jun 2024 10:07:55 -0400 Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-79c04e6e1b9so146498585a.0 for <71778-done@debbugs.gnu.org>; Wed, 26 Jun 2024 07:07:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toadstyle-org.20230601.gappssmtp.com; s=20230601; t=1719410806; x=1720015606; darn=debbugs.gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Q3daR7UumBOroKOC6qBY3EGl9wUUHf0VPY9dMIggutQ=; b=LW/TNZm1/n7WU1EUfw6AbuslMUKXxwm9JdyKU2i9fhXAqyku01HDJOgoOnkUB0io5F w9inCfsg/tKNEIHCJmyDr9nKqCjJLHebyP1oZXhi8nXPaJw0RmUKHn/kaW/O7QOewLhe ddIt8LVVPrStgS6Lo62I3yP43ETxw1VHLX5eMTBoJDmebtrYn7KrR4Py0EiNydwxuiMS wSDqtM5Q7+wvGIefqKDELe89tnkJgP1Qc2Ne5hO+iQEkrGPOv//vc1DOA6j9XY0IeDyh uanXV1S6Oh4wLuTKkF0BBemN4VxCniuKK27CVMBE9iLb5ihudYhr+QOdBzx7bXKn1+qo ODSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719410806; x=1720015606; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Q3daR7UumBOroKOC6qBY3EGl9wUUHf0VPY9dMIggutQ=; b=snvFHJcbUuVU5BTStqBd6U6ZCxpTJOinLsOWQ16WFkquanvB715GMs/PtZJZehn6hS jXpO80j3Eq+k2jQjLff/jH0Dbyoqql5lBgox7naaNIjzjq11fbqRj5nN5MHm3ZWnZ5e1 nbp93vIgXCA3manng8KpsybQhSFEHa6mHH/yRDV0r7OMPL/1mOOEqBjmyxcwyDnPKFje JlYfvFuciKkCrdMuH7hJqdLFo+je7QjFQVw3CSrRnydWZ9nYpQ8L2AObtt3g6o3m+2Zw M2AUzLwhsH3P7dmtvR3hx1yZz5UWiZfIKMtn3lC/tA2YSOXrcrdXy31nJRboqvl7a1pg bZEg== X-Gm-Message-State: AOJu0YzxGhFD1ZDHpZDWrLdMkdZLvbAi2LQk4QHFTTuytH01rcwuVGts 4+Wdn+Z5JcpagDUMCzjY3mpH+wKbr2m+n1x1w1NZbeRd91vkbFNH7xETgbDnTGA= X-Google-Smtp-Source: AGHT+IHKDBtYvG1RUtpSnwaxseKFxUJ9c1mFAZkd1wowZfqqAY8j8THMLXKGqNJYJkKVpl1nwTKQOA== X-Received: by 2002:a05:620a:24cf:b0:797:b1ea:953b with SMTP id af79cd13be357-79be0bfb5e6mr1316539085a.4.1719410806451; Wed, 26 Jun 2024 07:06:46 -0700 (PDT) Received: from smtpclient.apple ([2620:149:13c1:500::2be]) by smtp.gmail.com with ESMTPSA id af79cd13be357-79d54be835dsm35059185a.43.2024.06.26.07.06.45 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 26 Jun 2024 07:06:45 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3810.100.6\)) From: Sean Devlin In-Reply-To: <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> Date: Wed, 26 Jun 2024 10:06:35 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: <4B19E269-4873-420B-BE2C-F66B8B42C082@toadstyle.org> References: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> X-Mailer: Apple Mail (2.3810.100.6) 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 (-) > On Jun 26, 2024, at 12:45=E2=80=AFAM, Jim Porter = wrote: >=20 > Version: 30.1 >=20 > On 6/25/2024 1:50 PM, Sean Devlin wrote: >> I've found it is possible to Eshell in the middle of a command. = Here's a >> recipe: > [snip] >> $ for x in 1 2 3 4 5 { echo hello ; sleep 2 } > # >> 4. While the above command is running, C-x b test >> 5. C-x b *eshell* >=20 > Tricky! But thankfully it was an easy fix. We just needed to make sure = that when cleaning up in a timer after 'eshell-sentinel', we always do = it from the Eshell buffer. >=20 > Fixed on both the master branch and the release branch, with a = regression test. Thanks, verified!= From unknown Tue Jun 24 03:26:33 2025 X-Loop: help-debbugs@gnu.org Subject: bug#71778: 30.0.60; Eshell hangs when switching buffers during output redirection Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2024 15:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71778 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: spd@toadstyle.org, 71778@debbugs.gnu.org Received: via spool by 71778-submit@debbugs.gnu.org id=B71778.17194175066503 (code B ref 71778); Wed, 26 Jun 2024 15:59:02 +0000 Received: (at 71778) by debbugs.gnu.org; 26 Jun 2024 15:58:26 +0000 Received: from localhost ([127.0.0.1]:40141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMV2Q-0001gp-33 for submit@debbugs.gnu.org; Wed, 26 Jun 2024 11:58:26 -0400 Received: from mail-pf1-f171.google.com ([209.85.210.171]:53382) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sMV2O-0001gc-QO for 71778@debbugs.gnu.org; Wed, 26 Jun 2024 11:58:25 -0400 Received: by mail-pf1-f171.google.com with SMTP id d2e1a72fcca58-7065a2f4573so3934096b3a.2 for <71778@debbugs.gnu.org>; Wed, 26 Jun 2024 08:58:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719417436; x=1720022236; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=UdYuQGtvF5HsX9A9XzhHPulvR7UAZ4mjLCPwv6e/khs=; b=SInDEBL+tIzsn6bY/VdtYQcmbYADFrcP37i0RdqdRDJR1LvF0KCsZYCQDQEoWM9TD2 tcP1lGkoD9bUUgIrDEytgf0j4RmAH2U3noF+UoaeCtrsX9D0sKfaO7UEQwAy+wAOLUDS yBK7wGCtNdUcY6wfLF/dmdk1U/WflBVRu/ju8KkOMMk94Gd9nAEapxXMQjHwBHiPCMe1 4PhLPiJa3wOVXUvvNe6mmzE1JnPoJHJHJbe6yC5zuzeOGfapUF4WAVX2fhb5OBr8Z0Iv A+5L5mJtoGZ0/4lfWN1kHZJzi2pcQMxGi7jW3689841WWtXCbaRf6y+3TasAbowGXVCY YUaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719417436; x=1720022236; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UdYuQGtvF5HsX9A9XzhHPulvR7UAZ4mjLCPwv6e/khs=; b=wNe5nXkmRs80BVQrc4T+WV+gN2AUdLSMTTh0+2A148n6qzVqogxk2JRu2l3BC8bnG6 xkifI8Wg8o1uKqPiH62EfP4+gq33xd9wjjRnuNkibKvOUzZ+WD3wMporUlZTMXDXAYnn XrUv97Y+aAS/59OSsFCoLD1bmPXEL2d+Afx91FJN6IieboQdGYt94ggSZNbM25wqpEyb 2ZuQOYJTdzmnsuJapKAtRd113RfO3jvpX7osCJqteVFp7nYkk4yuvlC48HetUWLofh07 NcfoANtaS5e6RW5phAMkzPskx8eccoLHm7aBoAeFPmHjUdvh54IGOkZGImSS45xA1xCa NS9w== X-Gm-Message-State: AOJu0Ywbo6i3MzKqEOJK7gzhG11BecIJO6yDde+c1sHrTpatxIyV4W/O UhRNNU6zFmyugQGN4iT3ZeoDtte9B8CfNLhJOyopKHAjQOAaLlfX X-Google-Smtp-Source: AGHT+IFjqBexMNRu7wLxgvjlBAQRCompdnx6xm4ZyZre3jdB+JfVzciApJG82yyPElGdVPXZ1wmrpQ== X-Received: by 2002:a05:6a00:1d1d:b0:706:6272:417 with SMTP id d2e1a72fcca58-7067458e235mr11834133b3a.10.1719417436395; Wed, 26 Jun 2024 08:57:16 -0700 (PDT) Received: from [192.168.1.2] (syn-023-240-098-037.res.spectrum.com. [23.240.98.37]) by smtp.googlemail.com with ESMTPSA id d2e1a72fcca58-70651192b83sm10127789b3a.49.2024.06.26.08.57.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 26 Jun 2024 08:57:15 -0700 (PDT) Message-ID: Date: Wed, 26 Jun 2024 08:57:16 -0700 MIME-Version: 1.0 Content-Language: en-US References: <9D152E02-642A-46A6-8372-8370437273A0@toadstyle.org> <6637741c-2f08-e31f-6866-70e35efeb377@gmail.com> <86pls397t4.fsf@gnu.org> From: Jim Porter In-Reply-To: <86pls397t4.fsf@gnu.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 (-) On 6/26/2024 6:01 AM, Eli Zaretskii wrote: > Thanks. But in the future, please install bugfix changes for Emacs 30 > on the release branch; they will be merged to master when one of us > does such merges (which happens every few days as a matter of > routine). The "install-on-master-then-cherry-pick" method should be > reserved for the rare cases where a change is installed on master > either by mistake or because the author believed it was not > appropriate for the release branch. Sorry about that. I'd accidentally merged to master first, so had to fix things up by cherry-picking.