From unknown Sat Sep 20 21:09:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79030: rare failure of esh-cmd-test/reset-in-pipeline/subcommand Resent-From: Paul Eggert Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jul 2025 06:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 79030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 79030@debbugs.gnu.org X-Debbugs-Original-To: Emacs bug reports and feature requests Received: via spool by submit@debbugs.gnu.org id=B.175264863331747 (code B ref -1); Wed, 16 Jul 2025 06:51:01 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jul 2025 06:50:33 +0000 Received: from localhost ([127.0.0.1]:47612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ubvyK-0008Fx-Uw for submit@debbugs.gnu.org; Wed, 16 Jul 2025 02:50:33 -0400 Received: from lists.gnu.org ([2001:470:142::17]:56876) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1ubvyH-0008Fc-Ux for submit@debbugs.gnu.org; Wed, 16 Jul 2025 02:50:31 -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 1ubvyB-0008Bi-5x for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 02:50:23 -0400 Received: from mail.cs.ucla.edu ([131.179.128.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ubvy4-0007vN-CL for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2025 02:50:22 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 9FE2E3C010841 for ; Tue, 15 Jul 2025 23:50:13 -0700 (PDT) Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10032) with ESMTP id M7EjW6KWpJGD for ; Tue, 15 Jul 2025 23:50:13 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by mail.cs.ucla.edu (Postfix) with ESMTP id 760BF3C01084E for ; Tue, 15 Jul 2025 23:50:13 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.cs.ucla.edu 760BF3C01084E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=9D0B346E-2AEB-11ED-9476-E14B719DCE6C; t=1752648613; bh=jvcyNrDV6Bc7Qsugf6YnG3vW4zQCVw/6Y6fMaMzX3ng=; h=Message-ID:Date:MIME-Version:To:From; b=GHCZ88rzSp7ZziPeIAZpSMgYhjmrjL32a4eirvmJAka6AEXLmurvl8LHCS0lEAEdu c+nM1dAiRZ+5lMtzeX6tGuj0o7bptNpESMQv3spvvD1AfKHiMwSV7p9z1XTfl30ckO A2qtYZz3pIJOso/s0b6Di6/T5Zzo428kBkmmRE0hePXLNIf4oqlZuxt/DXG4Ijjkf3 JyqnpHuL05fnnDbe6ZM/zfbBqtepcmtWvO/lciU+sUPlFYFzjac4N8Fa702fa7+LLX fQODxRTArP+IqMUqMIcp2//XLvMcPJUretHnPT5ebZUhJSeeA1hpkkoJTfoXwWLgrC KvX6ar42jXq8A== X-Virus-Scanned: amavis at mail.cs.ucla.edu Received: from mail.cs.ucla.edu ([127.0.0.1]) by localhost (mail.cs.ucla.edu [127.0.0.1]) (amavis, port 10026) with ESMTP id hrVVLkBEoptt for ; Tue, 15 Jul 2025 23:50:13 -0700 (PDT) Received: from penguin.cs.ucla.edu (unknown [47.154.30.222]) by mail.cs.ucla.edu (Postfix) with ESMTPSA id 55F293C010841 for ; Tue, 15 Jul 2025 23:50:13 -0700 (PDT) Message-ID: <1b7db7d7-17fb-4c6e-8b21-8ebcb339fd52@cs.ucla.edu> Date: Tue, 15 Jul 2025 23:50:13 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US From: Paul Eggert Organization: UCLA Computer Science Department Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=131.179.128.66; envelope-from=eggert@cs.ucla.edu; helo=mail.cs.ucla.edu X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) On the master branch, on Ubuntu 25.04 x86-64, I ran "make -j12 check"=20 about 130 times in sequence, and eventually got a failure in=20 esh-cmd-test/reset-in-pipeline/subcommand. The problem is most likely=20 timing related. The rest of this email is a copy of the failed=20 esh-cmd-tests.log. Running 77 tests (2025-07-15 18:19:45-0700, selector =E2=80=98(not (or (t= ag=20 :expensive-test) (tag :unstable) (tag :nativecomp)))=E2=80=99) passed 1/77 esh-cmd-test/and-operator (0.221212 sec) passed 2/77 esh-cmd-test/and-operator/output (0.205419 sec) [sleep]+ Done (/usr/bin/sleep 10) passed 3/77 esh-cmd-test/background/kill (0.101571 sec) [echo]+ Done (/usr/bin/echo hi) passed 4/77 esh-cmd-test/background/simple-command (0.102426 sec) [echo]+ Done (/usr/bin/echo hello) [rev]+ Done (/usr/bin/rev) passed 5/77 esh-cmd-test/background/subcommand (0.102975 sec) passed 6/77 esh-cmd-test/backquoted-lisp-form (0.000991 sec) passed 7/77 esh-cmd-test/backquoted-lisp-form/splice (0.000762 sec= ) passed 8/77 esh-cmd-test/command-not-found/pipeline (0.102448 sec) passed 9/77 esh-cmd-test/empty-background-command (0.000850 sec) passed 10/77 esh-cmd-test/for-loop (0.001163 sec) passed 11/77 esh-cmd-test/for-loop-lisp-body (0.000946 sec) passed 12/77 esh-cmd-test/for-loop-list (0.012570 sec) passed 13/77 esh-cmd-test/for-loop-mixed-args (0.001573 sec) passed 14/77 esh-cmd-test/for-loop-name (0.000959 sec) passed 15/77 esh-cmd-test/for-loop-name-shadow (0.001693 sec) passed 16/77 esh-cmd-test/for-loop-pipe (0.102910 sec) passed 17/77 esh-cmd-test/for-loop-range (0.002508 sec) passed 18/77 esh-cmd-test/for-loop-string (0.000966 sec) passed 19/77 esh-cmd-test/for-loop-vector (0.000988 sec) passed 20/77 esh-cmd-test/if-else-statement (0.002046 sec) passed 21/77 esh-cmd-test/if-else-statement-chain (0.001977 sec) passed 22/77 esh-cmd-test/if-else-statement-ext-cmd (0.103959 sec) passed 23/77 esh-cmd-test/if-else-statement-lisp-body (0.001634 sec= ) passed 24/77 esh-cmd-test/if-else-statement-lisp-form (0.002191 sec= ) passed 25/77 esh-cmd-test/if-else-statement-lisp-form-2 (0.002140 s= ec) passed 26/77 esh-cmd-test/if-else-statement-pipe (0.204174 sec) passed 27/77 esh-cmd-test/if-statement (0.003827 sec) passed 28/77 esh-cmd-test/if-statement-pipe (0.204486 sec) passed 29/77 esh-cmd-test/invoke-directly/complex (0.000759 sec) passed 30/77 esh-cmd-test/invoke-directly/complex-subcmd (0.000773=20 sec) passed 31/77 esh-cmd-test/invoke-directly/multiple-cmds (0.000654 s= ec) passed 32/77 esh-cmd-test/invoke-directly/no-args (0.000678 sec) passed 33/77 esh-cmd-test/invoke-directly/subcmd (0.000857 sec) passed 34/77 esh-cmd-test/invoke-directly/with-args (0.000647 sec) passed 35/77 esh-cmd-test/let-rebinds-after-defer (0.103729 sec) passed 36/77 esh-cmd-test/lisp-command (0.000588 sec) passed 37/77 esh-cmd-test/lisp-command-args (0.000541 sec) passed 38/77 esh-cmd-test/lisp-command-with-quote (0.000449 sec) passed 39/77 esh-cmd-test/or-operator (0.205100 sec) passed 40/77 esh-cmd-test/or-operator/output (0.206857 sec) passed 41/77 esh-cmd-test/pipeline-wait/head-proc (0.102134 sec) passed 42/77 esh-cmd-test/pipeline-wait/multi-proc (1.106663 sec) passed 43/77 esh-cmd-test/pipeline-wait/nested-pipes (1.108869 sec) passed 44/77 esh-cmd-test/pipeline-wait/subcommand (0.103447 sec) passed 45/77 esh-cmd-test/pipeline-wait/subcommand-with-pipe=20 (0.119194 sec) passed 46/77 esh-cmd-test/pipeline-wait/tail-proc (0.102325 sec) passed 47/77 esh-cmd-test/pipeline/replace-command (0.002533 sec) passed 48/77 esh-cmd-test/quoted-lisp-form (0.000730 sec) passed 49/77 esh-cmd-test/reset-in-pipeline/lisp (0.103057 sec) Test esh-cmd-test/reset-in-pipeline/subcommand backtrace: signal(ert-test-failed (((should (eshell-command-result--equal comma ert-fail(((should (eshell-command-result--equal command (eshell-test (if (unwind-protect (setq value-7 (apply fn-5 args-6)) (setq form-de (let (form-description-9) (if (unwind-protect (setq value-7 (apply f (let ((value-7 'ert-form-evaluation-aborted-8)) (let (form-descripti (let* ((fn-5 #'eshell-command-result--equal) (args-6 (condition-case (let ((eshell-module-loading-messages nil)) (let* ((fn-5 #'eshell-co (let ((ert--infos (cons (cons "Command logs: " #'eshell-get-debug-lo eshell-command-result-equal("*cat $)() #f(compiled-function () #)() handler-bind-1(#f(compiled-function () # | *cat" ---------------------------------------- [process] started external process =E2=80=98cat=E2=80=99 /usr/bin/cat ---------------------------------------- [process] started external process =E2=80=98cat<1>=E2=80= =99 /usr/bin/cat /tmp/rEfiLP ---------------------------------------- [process] received output from process =E2=80=98cat<1>= =E2=80=99 t ---------------------------------------- [process] forwarding output from process =E2=80=98cat<= 1>=E2=80=99 t ---------------------------------------- [process] received output from process =E2=80=98cat=E2= =80=99 t ---------------------------------------- [process] forwarding output from process =E2=80=98cat=E2= =80=99 t ---------------------------------------- [process] sentinel for external process =E2=80=98cat<1= >=E2=80=99:=20 "finished " ---------------------------------------- [process] i/o busy for process =E2=80=98cat<1>=E2=80=99 ---------------------------------------- [process] sentinel for external process =E2=80=98cat-s= tderr=E2=80=99:=20 "finished " ---------------------------------------- [process] finished external process =E2=80=98cat-stder= r=E2=80=99 ---------------------------------------- [process] finished external process =E2=80=98cat<1>=E2= =80=99 ---------------------------------------- [process] sentinel for external process =E2=80=98cat=E2= =80=99: "finished " ---------------------------------------- [process] finished external process =E2=80=98cat=E2=80= =99 (ert-test-failed ((should (eshell-command-result--equal command (eshell-test-command-result command) result)) :form (eshell-command-result--equal "*cat $ | *cat" "t\n" "= t") :value nil :explanation (nonequal-result (command "*cat $ | *cat= ") (result "t\n") (expected "t")))) FAILED 50/77 esh-cmd-test/reset-in-pipeline/subcommand (0.641031=20 sec) at lisp/eshell/esh-cmd-tests.el:273 passed 51/77 esh-cmd-test/simple-command-result (0.001157 sec) passed 52/77 esh-cmd-test/skip-leading-nils (0.001570 sec) passed 53/77 esh-cmd-test/subcommand (0.001292 sec) passed 54/77 esh-cmd-test/subcommand-args (0.001372 sec) passed 55/77 esh-cmd-test/subcommand-lisp (0.000725 sec) passed 56/77 esh-cmd-test/subcommand-shadow-value (0.001680 sec) passed 57/77 esh-cmd-test/throw (0.001959 sec) passed 58/77 esh-cmd-test/unless-else-statement (0.002314 sec) passed 59/77 esh-cmd-test/unless-else-statement-ext-cmd (0.108885 s= ec) passed 60/77 esh-cmd-test/unless-else-statement-lisp-form=20 (0.003231 sec) passed 61/77 esh-cmd-test/unless-statement (0.001704 sec) passed 62/77 esh-cmd-test/until-loop (0.001488 sec) passed 63/77 esh-cmd-test/until-loop-ext-cmd (0.103259 sec) passed 64/77 esh-cmd-test/until-loop-lisp-form (0.002376 sec) passed 65/77 esh-cmd-test/which/alias (0.001724 sec) passed 66/77 esh-cmd-test/which/explicit (0.001203 sec) passed 67/77 esh-cmd-test/which/explicit/not-found (0.001120 sec) passed 68/77 esh-cmd-test/which/plain/eshell-builtin (0.001701 sec) passed 69/77 esh-cmd-test/which/plain/external-program (0.001325 se= c) passed 70/77 esh-cmd-test/which/plain/not-found (0.001281 sec) passed 71/77 esh-cmd-test/which/quoted-file (0.000875 sec) passed 72/77 esh-cmd-test/which/quoted-file/not-found (0.000852 sec= ) passed 73/77 esh-cmd-test/while-loop (0.018836 sec) passed 74/77 esh-cmd-test/while-loop-ext-cmd (0.103267 sec) passed 75/77 esh-cmd-test/while-loop-lisp-body (0.000884 sec) passed 76/77 esh-cmd-test/while-loop-lisp-form (0.001272 sec) passed 77/77 esh-cmd-test/while-loop-pipe (0.102147 sec) Ran 77 tests, 76 results as expected, 1 unexpected (2025-07-15=20 18:19:51-0700, 5.990603 sec) 1 unexpected results: FAILED esh-cmd-test/reset-in-pipeline/subcommand From unknown Sat Sep 20 21:09:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79030: rare failure of esh-cmd-test/reset-in-pipeline/subcommand Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jul 2025 12:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Paul Eggert , Jim Porter Cc: 79030@debbugs.gnu.org Received: via spool by 79030-submit@debbugs.gnu.org id=B79030.175266750521117 (code B ref 79030); Wed, 16 Jul 2025 12:06:01 +0000 Received: (at 79030) by debbugs.gnu.org; 16 Jul 2025 12:05:05 +0000 Received: from localhost ([127.0.0.1]:48657 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uc0si-0005UV-81 for submit@debbugs.gnu.org; Wed, 16 Jul 2025 08:05:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uc0se-0005Tf-Bi for 79030@debbugs.gnu.org; Wed, 16 Jul 2025 08:05:01 -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 1uc0sY-0001qH-3F; Wed, 16 Jul 2025 08:04:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=IePDEGWVO2x8qu1XHKM1DGqawWBADiQNaTr81Q2yBjU=; b=HfBPQlcmt++rBHnEGppY LIJKTwIkRGpq3S+jrkQto/qZT+BhmaTshqtJPWbuqTTTd+Qwa7JwPhhkLWLh6DdgqB4VhprBQ3Yzi yYueBQutqSlR6+3tfbZOqgF/S+aXvLkn6FKfeq9xSD+PPPlObL/ppW9nt54+3YLRmj+AGyWGpXD3z eog1zmBiy2kN4WpSpyyAs558WhVcAr7XYRC3RF0/YPxVhTeqrCrmIpXzcdhA4WSGD9mVFGQasfDFN AcViWDSFsFarNEPslqLMYmlkO3YNuL81V+MkNjCQNbtA5Yf2jYhptKxkKshj3Kv5NGhN44/fdYWDw G4NhAnVfCjYheQ==; Date: Wed, 16 Jul 2025 15:04:16 +0300 Message-Id: <86v7nsibpb.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <1b7db7d7-17fb-4c6e-8b21-8ebcb339fd52@cs.ucla.edu> (message from Paul Eggert on Tue, 15 Jul 2025 23:50:13 -0700) References: <1b7db7d7-17fb-4c6e-8b21-8ebcb339fd52@cs.ucla.edu> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit 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, 15 Jul 2025 23:50:13 -0700 > From: Paul Eggert > > On the master branch, on Ubuntu 25.04 x86-64, I ran "make -j12 check" > about 130 times in sequence, and eventually got a failure in > esh-cmd-test/reset-in-pipeline/subcommand. The problem is most likely > timing related. The rest of this email is a copy of the failed > esh-cmd-tests.log. Thanks. Jim, any ideas or suggestions? > Running 77 tests (2025-07-15 18:19:45-0700, selector ‘(not (or (tag > :expensive-test) (tag :unstable) (tag :nativecomp)))’) > passed 1/77 esh-cmd-test/and-operator (0.221212 sec) > passed 2/77 esh-cmd-test/and-operator/output (0.205419 sec) > [sleep]+ Done (/usr/bin/sleep 10) > passed 3/77 esh-cmd-test/background/kill (0.101571 sec) > [echo]+ Done (/usr/bin/echo hi) > passed 4/77 esh-cmd-test/background/simple-command (0.102426 sec) > [echo]+ Done (/usr/bin/echo hello) > [rev]+ Done (/usr/bin/rev) > passed 5/77 esh-cmd-test/background/subcommand (0.102975 sec) > passed 6/77 esh-cmd-test/backquoted-lisp-form (0.000991 sec) > passed 7/77 esh-cmd-test/backquoted-lisp-form/splice (0.000762 sec) > passed 8/77 esh-cmd-test/command-not-found/pipeline (0.102448 sec) > passed 9/77 esh-cmd-test/empty-background-command (0.000850 sec) > passed 10/77 esh-cmd-test/for-loop (0.001163 sec) > passed 11/77 esh-cmd-test/for-loop-lisp-body (0.000946 sec) > passed 12/77 esh-cmd-test/for-loop-list (0.012570 sec) > passed 13/77 esh-cmd-test/for-loop-mixed-args (0.001573 sec) > passed 14/77 esh-cmd-test/for-loop-name (0.000959 sec) > passed 15/77 esh-cmd-test/for-loop-name-shadow (0.001693 sec) > passed 16/77 esh-cmd-test/for-loop-pipe (0.102910 sec) > passed 17/77 esh-cmd-test/for-loop-range (0.002508 sec) > passed 18/77 esh-cmd-test/for-loop-string (0.000966 sec) > passed 19/77 esh-cmd-test/for-loop-vector (0.000988 sec) > passed 20/77 esh-cmd-test/if-else-statement (0.002046 sec) > passed 21/77 esh-cmd-test/if-else-statement-chain (0.001977 sec) > passed 22/77 esh-cmd-test/if-else-statement-ext-cmd (0.103959 sec) > passed 23/77 esh-cmd-test/if-else-statement-lisp-body (0.001634 sec) > passed 24/77 esh-cmd-test/if-else-statement-lisp-form (0.002191 sec) > passed 25/77 esh-cmd-test/if-else-statement-lisp-form-2 (0.002140 sec) > passed 26/77 esh-cmd-test/if-else-statement-pipe (0.204174 sec) > passed 27/77 esh-cmd-test/if-statement (0.003827 sec) > passed 28/77 esh-cmd-test/if-statement-pipe (0.204486 sec) > passed 29/77 esh-cmd-test/invoke-directly/complex (0.000759 sec) > passed 30/77 esh-cmd-test/invoke-directly/complex-subcmd (0.000773 > sec) > passed 31/77 esh-cmd-test/invoke-directly/multiple-cmds (0.000654 sec) > passed 32/77 esh-cmd-test/invoke-directly/no-args (0.000678 sec) > passed 33/77 esh-cmd-test/invoke-directly/subcmd (0.000857 sec) > passed 34/77 esh-cmd-test/invoke-directly/with-args (0.000647 sec) > passed 35/77 esh-cmd-test/let-rebinds-after-defer (0.103729 sec) > passed 36/77 esh-cmd-test/lisp-command (0.000588 sec) > passed 37/77 esh-cmd-test/lisp-command-args (0.000541 sec) > passed 38/77 esh-cmd-test/lisp-command-with-quote (0.000449 sec) > passed 39/77 esh-cmd-test/or-operator (0.205100 sec) > passed 40/77 esh-cmd-test/or-operator/output (0.206857 sec) > passed 41/77 esh-cmd-test/pipeline-wait/head-proc (0.102134 sec) > passed 42/77 esh-cmd-test/pipeline-wait/multi-proc (1.106663 sec) > passed 43/77 esh-cmd-test/pipeline-wait/nested-pipes (1.108869 sec) > passed 44/77 esh-cmd-test/pipeline-wait/subcommand (0.103447 sec) > passed 45/77 esh-cmd-test/pipeline-wait/subcommand-with-pipe > (0.119194 sec) > passed 46/77 esh-cmd-test/pipeline-wait/tail-proc (0.102325 sec) > passed 47/77 esh-cmd-test/pipeline/replace-command (0.002533 sec) > passed 48/77 esh-cmd-test/quoted-lisp-form (0.000730 sec) > passed 49/77 esh-cmd-test/reset-in-pipeline/lisp (0.103057 sec) > Test esh-cmd-test/reset-in-pipeline/subcommand backtrace: > signal(ert-test-failed (((should (eshell-command-result--equal comma > ert-fail(((should (eshell-command-result--equal command (eshell-test > (if (unwind-protect (setq value-7 (apply fn-5 args-6)) (setq form-de > (let (form-description-9) (if (unwind-protect (setq value-7 (apply f > (let ((value-7 'ert-form-evaluation-aborted-8)) (let (form-descripti > (let* ((fn-5 #'eshell-command-result--equal) (args-6 (condition-case > (let ((eshell-module-loading-messages nil)) (let* ((fn-5 #'eshell-co > (let ((ert--infos (cons (cons "Command logs: " #'eshell-get-debug-lo > eshell-command-result-equal("*cat $ #f(compiled-function () #)() > #f(compiled-function () #)() > handler-bind-1(#f(compiled-function () # ert--run-test-internal(#s(ert--test-execution-info :test #s(ert-test > ert-run-test(#s(ert-test :name esh-cmd-test/reset-in-pipeline/subcom > ert-run-or-rerun-test(#s(ert--stats :selector ... :tests ... :test-m > ert-run-tests((not (or (tag :expensive-test) (tag :unstable) (tag :n > 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" "--eval" "(setq treesit-extra-l > command-line() > normal-top-level() > Test esh-cmd-test/reset-in-pipeline/subcommand condition: > Command logs: command: "*cat $ echo> | *cat" > > ---------------------------------------- > [process] started external process ‘cat’ > > /usr/bin/cat > ---------------------------------------- > [process] started external process ‘cat<1>’ > > /usr/bin/cat /tmp/rEfiLP > ---------------------------------------- > [process] received output from process ‘cat<1>’ > > t > > ---------------------------------------- > [process] forwarding output from process ‘cat<1>’ > > t > > ---------------------------------------- > [process] received output from process ‘cat’ > > t > > ---------------------------------------- > [process] forwarding output from process ‘cat’ > > t > > ---------------------------------------- > [process] sentinel for external process ‘cat<1>’: > "finished > " > ---------------------------------------- > [process] i/o busy for process ‘cat<1>’ > ---------------------------------------- > [process] sentinel for external process ‘cat-stderr’: > "finished > " > ---------------------------------------- > [process] finished external process ‘cat-stderr’ > ---------------------------------------- > [process] finished external process ‘cat<1>’ > ---------------------------------------- > [process] sentinel for external process ‘cat’: "finished > " > ---------------------------------------- > [process] finished external process ‘cat’ > (ert-test-failed > ((should > (eshell-command-result--equal command > (eshell-test-command-result command) > result)) > :form > (eshell-command-result--equal > "*cat $ | *cat" "t\n" "t") > :value nil :explanation > (nonequal-result > (command "*cat $ | *cat") > (result "t\n") (expected "t")))) > FAILED 50/77 esh-cmd-test/reset-in-pipeline/subcommand (0.641031 > sec) at lisp/eshell/esh-cmd-tests.el:273 > passed 51/77 esh-cmd-test/simple-command-result (0.001157 sec) > passed 52/77 esh-cmd-test/skip-leading-nils (0.001570 sec) > passed 53/77 esh-cmd-test/subcommand (0.001292 sec) > passed 54/77 esh-cmd-test/subcommand-args (0.001372 sec) > passed 55/77 esh-cmd-test/subcommand-lisp (0.000725 sec) > passed 56/77 esh-cmd-test/subcommand-shadow-value (0.001680 sec) > passed 57/77 esh-cmd-test/throw (0.001959 sec) > passed 58/77 esh-cmd-test/unless-else-statement (0.002314 sec) > passed 59/77 esh-cmd-test/unless-else-statement-ext-cmd (0.108885 sec) > passed 60/77 esh-cmd-test/unless-else-statement-lisp-form > (0.003231 sec) > passed 61/77 esh-cmd-test/unless-statement (0.001704 sec) > passed 62/77 esh-cmd-test/until-loop (0.001488 sec) > passed 63/77 esh-cmd-test/until-loop-ext-cmd (0.103259 sec) > passed 64/77 esh-cmd-test/until-loop-lisp-form (0.002376 sec) > passed 65/77 esh-cmd-test/which/alias (0.001724 sec) > passed 66/77 esh-cmd-test/which/explicit (0.001203 sec) > passed 67/77 esh-cmd-test/which/explicit/not-found (0.001120 sec) > passed 68/77 esh-cmd-test/which/plain/eshell-builtin (0.001701 sec) > passed 69/77 esh-cmd-test/which/plain/external-program (0.001325 sec) > passed 70/77 esh-cmd-test/which/plain/not-found (0.001281 sec) > passed 71/77 esh-cmd-test/which/quoted-file (0.000875 sec) > passed 72/77 esh-cmd-test/which/quoted-file/not-found (0.000852 sec) > passed 73/77 esh-cmd-test/while-loop (0.018836 sec) > passed 74/77 esh-cmd-test/while-loop-ext-cmd (0.103267 sec) > passed 75/77 esh-cmd-test/while-loop-lisp-body (0.000884 sec) > passed 76/77 esh-cmd-test/while-loop-lisp-form (0.001272 sec) > passed 77/77 esh-cmd-test/while-loop-pipe (0.102147 sec) > > Ran 77 tests, 76 results as expected, 1 unexpected (2025-07-15 > 18:19:51-0700, 5.990603 sec) > > 1 unexpected results: > FAILED esh-cmd-test/reset-in-pipeline/subcommand > > > > > > From unknown Sat Sep 20 21:09:12 2025 X-Loop: help-debbugs@gnu.org Subject: bug#79030: rare failure of esh-cmd-test/reset-in-pipeline/subcommand Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 16 Jul 2025 16:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 79030 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Paul Eggert Cc: 79030@debbugs.gnu.org Received: via spool by 79030-submit@debbugs.gnu.org id=B79030.17526843241321 (code B ref 79030); Wed, 16 Jul 2025 16:46:02 +0000 Received: (at 79030) by debbugs.gnu.org; 16 Jul 2025 16:45:24 +0000 Received: from localhost ([127.0.0.1]:50394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uc5Fz-0000LE-G9 for submit@debbugs.gnu.org; Wed, 16 Jul 2025 12:45:23 -0400 Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]:48561) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uc5Fx-0000Kz-5G for 79030@debbugs.gnu.org; Wed, 16 Jul 2025 12:45:21 -0400 Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-235e1d710d8so246265ad.1 for <79030@debbugs.gnu.org>; Wed, 16 Jul 2025 09:45:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1752684315; x=1753289115; 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=iHPL+LPa9XlIBJw6+Dz2Sc7v5WteIRPmBckyx9VFxVA=; b=hGO1EB45LUtV7Fb1NhssAkw72LXqX2eiULrl1TWUvDf70sm3D2YFD9YUjpX6qO1X/a SvaxuJ3M4yYwRfmWYFc6WjaGHe0ashTou42XgXJCB3LvgchPgXqMYcRUPYoR91xxHwnt S4SMiVE0m1cfXI3205GQNP18V2ZlfhAXwVnCFovi8kaZaFkG2fhIYV57QsbqTT/FrSa1 JwvLu2VI+afyyQ5eEjRFrLsHsHVocPU4H778wLpLHpGZQR2/2Y2OEl1ljJhLRpO8HQvp 99Tr1At8U5GnfQyB54ZGU0916szGw1rSUSyqkiBOZrUrwqmZppcrllNHwA1hMFq7yqbG fblQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752684315; x=1753289115; 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=iHPL+LPa9XlIBJw6+Dz2Sc7v5WteIRPmBckyx9VFxVA=; b=NMXDXJbk9ToneoShmnE4wjHmjtXaRMHUUrcZWB3+j0UoLJsM91eLMMWlD16nFqJYhs 4x9qPtAhf7nqYaxpZk/Gb8UEvSEtUg8smAlnuQLpcMgt/z7sTKnoT9//oj8L/KT4d4/c H/ra4YEnclJhzDVMBgVmKzGmjRQhr0QpWzHA/Lkpgdff0ELlpvRQu4l3dgFSdbPit9Jc 1rxyI4twuw7tkRsP4WDz1dMQ0CEkGy2h21tgRBS/qCx9KDxZ5EPmIRn5BVtpVz6dSvAc xhDfign8YNtJXNzZFr/ZoWUbj1X9oC7G7LnvPf+V3RcyDKsTRfKkF9XUJAyn7WjqZhFu vcWQ== X-Gm-Message-State: AOJu0YxI4X0jkkH1hj0BTKZZrqKFDmlMClgycC16GDG5sgisSCrUBh/d 2psnshSQmPA19xhabv8IAWSSN2lrmqaoR/A/g6x1rjpHXbppBnlvGm5m X-Gm-Gg: ASbGncsEknLcvLG5uyh801O84mEebyA4l82smoSwvngt2ZhYItafLcm2dpWv38CG7x6 kz76KDJu/hkpmKoSdj6ouSZqfgGJDckvvB/f1nAyYaWeL6cJyHkNcEB5QYC53/MuiWM647c4JQB M+I+weYaU3B5gohhzk6W1duOkemWdgcSfKsl0gsKAhbmvmfnNiu9ORqaT1J7d9d/DiP1y3IqzXN UHj1j0i+8/xaXZH/WNIGtRUwsB4K/vOfn1wRgarwso/yaBT2GDoABI10IkhG5sHFWlM/sPZry00 7PMTllnAvAu6Rp5b2mF/SNbJOUYPbihQqlqN9GzjUFyWc4tgEUwGWxO4rZ8jnQyVYDUWcy67Ymr S+qOB+eEGEifKwIQOSIVnN4D3yeTc/EeVlQvh6nvLrZ8O7+Ij1SNYd6+0OKaX6h3dv/zqNz+0K+ FDjw== X-Google-Smtp-Source: AGHT+IFHen8kRv18xIEHx6DFbd3k6eqTorUHuWgatqDT5uo8YDrJlsk1cqDrABodjwC/f6hRgX+cUQ== X-Received: by 2002:a17:903:19c5:b0:234:986c:66d4 with SMTP id d9443c01a7336-23e24f475bfmr53333105ad.26.1752684314750; Wed, 16 Jul 2025 09:45:14 -0700 (PDT) Received: from [192.168.1.2] (syn-076-168-144-128.res.spectrum.com. [76.168.144.128]) by smtp.googlemail.com with ESMTPSA id d9443c01a7336-23de4350bb0sm134721295ad.205.2025.07.16.09.45.13 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Jul 2025 09:45:13 -0700 (PDT) Message-ID: <273b87ad-d081-308f-5cb3-1353e921a0a6@gmail.com> Date: Wed, 16 Jul 2025 09:45:14 -0700 MIME-Version: 1.0 Content-Language: en-US References: <1b7db7d7-17fb-4c6e-8b21-8ebcb339fd52@cs.ucla.edu> <86v7nsibpb.fsf@gnu.org> From: Jim Porter In-Reply-To: <86v7nsibpb.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 7/16/2025 5:04 AM, Eli Zaretskii wrote: >> Date: Tue, 15 Jul 2025 23:50:13 -0700 >> From: Paul Eggert >> >> On the master branch, on Ubuntu 25.04 x86-64, I ran "make -j12 check" >> about 130 times in sequence, and eventually got a failure in >> esh-cmd-test/reset-in-pipeline/subcommand. The problem is most likely >> timing related. The rest of this email is a copy of the failed >> esh-cmd-tests.log. > > Thanks. > > Jim, any ideas or suggestions? What's interesting here is that the actual output is correct, except that it has an extraneous newline: > (nonequal-result > (command "*cat $ | *cat") > (result "t\n") (expected "t")))) This test case is testing what happens in some relatively-complex pipeline, where we redirect the inner $<...> command to a temp file, and then the first cat reads that file, piping it to a second cat. The inner command is just making sure that we set the internal $eshell-in-pipeline-p variable correctly (it should be 't' here). By default, Eshell echo doesn't emit a newline (for complicated reasons). So, it's something like this in a regular shell: echo -n t > /tmp/something cat /tmp/something | cat Based on the logs, I think what's happening is that the $<...> is adding a trailing newline to the temp file. I don't know why that's happening though, especially not randomly. My guess is that somehow the buffer for the temp file changed away from 'fundamental-mode' to some text mode. You can see something like this happen if you run the Eshell command above, then retry it with 'major-mode' set to 'text-mode'; it'll add a newline in the latter case.