From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#56025: 29.0.50; em-extpipe-test-2 times out on EMBA and Cygwin Date: Sat, 18 Jun 2022 15:00:26 -0700 Message-ID: <17d41105-b006-f9ad-af0b-ece84a7f5248@gmail.com> References: <8e21db9c-0100-998e-f280-81304e7ff61a@cornell.edu> <87mtecl82o.fsf@athena.silentflame.com> <40d9e52f-2041-b341-ff77-546ca7792791@cornell.edu> <87k09elrf8.fsf@athena.silentflame.com> <1de33903-4c55-e043-3754-726f7044f2d0@cornell.edu> <7e7daa2f-dbbc-cd0a-4958-2a2932b17837@gmail.com> <8974408d-91cd-aebd-7a5b-596a57bd640e@cornell.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5225"; mail-complaints-to="usenet@ciao.gmane.io" To: Ken Brown , Sean Whitton , 56025@debbugs.gnu.org, Lars Magne Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jun 19 00:01:10 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o2gVB-0001Dk-Kh for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 19 Jun 2022 00:01:09 +0200 Original-Received: from localhost ([::1]:42488 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2gVA-0000im-Dy for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 18 Jun 2022 18:01:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51626) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2gV3-0000iW-UG for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 18:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o2gV3-0003l1-Lv for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 18:01:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o2gV3-00058C-K8 for bug-gnu-emacs@gnu.org; Sat, 18 Jun 2022 18:01:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 Jun 2022 22:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56025 X-GNU-PR-Package: emacs Original-Received: via spool by 56025-submit@debbugs.gnu.org id=B56025.165558963719687 (code B ref 56025); Sat, 18 Jun 2022 22:01:01 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 18 Jun 2022 22:00:37 +0000 Original-Received: from localhost ([127.0.0.1]:50327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2gUe-00057T-Oi for submit@debbugs.gnu.org; Sat, 18 Jun 2022 18:00:37 -0400 Original-Received: from mail-pj1-f44.google.com ([209.85.216.44]:41518) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o2gUb-00057B-DV for 56025@debbugs.gnu.org; Sat, 18 Jun 2022 18:00:35 -0400 Original-Received: by mail-pj1-f44.google.com with SMTP id g10-20020a17090a708a00b001ea8aadd42bso7054610pjk.0 for <56025@debbugs.gnu.org>; Sat, 18 Jun 2022 15:00:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:references:from:message-id:date:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=HYj79FoQXgmK6ULZks1dKK36GdIZILxfz7JigfaqzFc=; b=GSmq9z7j1I5mSSBq60AbnqENNl/0AZMcB+uoJBe39+lDqZn59CFfjSgWZ4wdGiHPdO DQQQ10X7bzTpqOfLf5LG57qicmr0+18LWGpEuvNWh810B6BDdIaVB4HYPgUqZDq1xEaS LEKgRwMGtM0BXEoE3n8PEcDG323X0UJwdpOM74PfJAd7CeY3FRcDX0MNkKAXGNIdX+cC GYDke8n0VAJzWObPgNY6BmWcO7U3QTvTjoAXheeCpWmYOwW1bcGGcxc3pm9efxv9Eau3 xaYJ+DkLzeJgRikH7j0UCS1fygzf/wI7vJLOQ0Xb1QpEXbfmh66y1dYmHO+OrxkwoMGA +V+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=HYj79FoQXgmK6ULZks1dKK36GdIZILxfz7JigfaqzFc=; b=dlBeMQ58G/sMJwTWp4mfUJrJYBD9DHRiCIWkMtY0Bqaa1f0EfMdIxQRsMXnmVEEoCF UBpHOkSpkDUcBXtVhwT8OEN7OLszdhlJAIhiTz5AkMMZ/A8A91eWrrLEahud2T2WgzEO HzVvkqHoYtg1Dal2Mb+nkmABriiPsPNab746da8x8PsHsVMmU8yFhaOH8XWSkeCzh8dr lvlLKPeLf9TO2qLbqOzImFbor6CJ0iAF7VTzMc/+0cf7s6QYiiSJLwRRm1cU208COBuI SQk19ixpL9W1CCm+PcfFL8XNNeAoy+N3NsAd4hgjxZorqXcMh9DaLfC6BgCO7GBCEk8G ltTw== X-Gm-Message-State: AJIora8syrr69emDNm7U8QKutWnCzPnlhKT6t7UjAKchB0MxnhPQk1FP ZKue94FiuychdY4YoDRQhSI= X-Google-Smtp-Source: AGRyM1ucT3LWExo6NMjRZzTrstGAm37Ow8Gk0UuFfNJ9l5q2dx+jsKPZwq8xLK1yMFCbhIK8+t3xEw== X-Received: by 2002:a17:902:d4c2:b0:16a:46e:8c7b with SMTP id o2-20020a170902d4c200b0016a046e8c7bmr10001589plg.142.1655589627416; Sat, 18 Jun 2022 15:00:27 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id f23-20020a17090a9b1700b001eaec8cea55sm5258893pjp.57.2022.06.18.15.00.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 18 Jun 2022 15:00:27 -0700 (PDT) In-Reply-To: <8974408d-91cd-aebd-7a5b-596a57bd640e@cornell.edu> Content-Language: en-US X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:234765 Archived-At: On 6/18/2022 1:51 PM, Ken Brown wrote: > On 6/18/2022 3:02 PM, Jim Porter wrote: >> On 6/18/2022 10:52 AM, Ken Brown wrote: >>> No, I'm seeing the same results on Emacs 28.  On both Emacs 28 and >>> Emacs 29, rev is apparently not seeing EOF unless echo outputs a >>> newline, so rev keeps waiting for input. >> >> Ah ha! Thanks for debugging this. The minimal fix then would be to >> change the command in em-extpipe-test-2 to either of these: >> >>    echo -N "bar" | rev *>temp > > This doesn't work.  It still hangs when run interactively... Just to confirm, the above command hangs, but the following works, correct? echo -N "bar" | rev >>    *echo "bar" | rev *>temp > > This works interactively... All this makes me think that we could be dealing with a race condition in how Eshell pipes I/O around. Maybe there's a timing issue in `eshell-close-target' where we end up not sending EOF to the "rev" (or "sh") process? I'd be interested to see the results if you ran `M-x trace-function' for `eshell-close-target' and `process-status' before trying these commands. `process-status' should return `run' when called from inside `eshell-close-target'. If it doesn't, then we'd neglect to send EOF to "rev" (or "sh"), which would cause a hang like what you're seeing. If that's not the issue, then I'm not sure what the issue would be exactly, but poking around in `eshell-close-target', `eshell-insertion-filter', and `eshell-sentinel' might yield some useful info. > My guess is that it's the latter, but I don't know if it's worth > pursuing this if Cygwin and EMBA are the only platforms on which there's > a problem.  Of course, there might be other platforms and no one has > reported it. I think if we could figure out the real issue, it would be great to fix it. Though if we can't, it would probably be ok to just fix the test by avoiding the issue.