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: Thu, 30 Jun 2022 20:52:59 -0700 Message-ID: <10cf6a90-f86a-b0df-4dc2-c258b7494158@gmail.com> References: <8e21db9c-0100-998e-f280-81304e7ff61a@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> <17d41105-b006-f9ad-af0b-ece84a7f5248@gmail.com> <040b3a36-459b-a94d-f879-7f45aac50bda@cornell.edu> <83sfnud26o.fsf@gnu.org> <96e47ba7-efaa-b6df-dd98-60f09068e68c@gmail.com> <874k097lbh.fsf@melete.silentflame.com> <8735frmjrr.fsf@athena.silentflame.com> <4676f52c-4758-38df-f0f4-dbcb5d848c1b@gmail.com> <8735fr2kq6.fsf@melete.silentflame.com> 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="10981"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 56025@debbugs.gnu.org To: Ken Brown , Sean Whitton , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jul 01 05:54:11 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 1o77jP-0002hm-1g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 01 Jul 2022 05:54:11 +0200 Original-Received: from localhost ([::1]:35022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o77jN-0003M6-HX for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 30 Jun 2022 23:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o77jG-0003Ke-SK for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 23:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o77jG-0000F7-Jb for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 23:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1o77jG-0001zH-C3 for bug-gnu-emacs@gnu.org; Thu, 30 Jun 2022 23:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 01 Jul 2022 03:54:02 +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.16566475887575 (code B ref 56025); Fri, 01 Jul 2022 03:54:02 +0000 Original-Received: (at 56025) by debbugs.gnu.org; 1 Jul 2022 03:53:08 +0000 Original-Received: from localhost ([127.0.0.1]:36027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o77iO-0001y7-4K for submit@debbugs.gnu.org; Thu, 30 Jun 2022 23:53:08 -0400 Original-Received: from mail-pl1-f175.google.com ([209.85.214.175]:42632) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o77iM-0001xc-IY for 56025@debbugs.gnu.org; Thu, 30 Jun 2022 23:53:06 -0400 Original-Received: by mail-pl1-f175.google.com with SMTP id jb13so1183911plb.9 for <56025@debbugs.gnu.org>; Thu, 30 Jun 2022 20:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=H46RQMnBnlZnOlENESkbNPUixZN4oTBTUfGxngJYnpU=; b=Aeu7/tFc+80SMbQV4JA+I5Hd/krI0IvnQE6vcu2lw5rgC5VgdzUuDGlnMkkpywLnzF o3mEFugW2zPZbJQ0uB3VyWfUj2OGSyfsh8HJGG+ATZpc8Uuehw3GivoUrvlBkEPC1gH3 IEpDIcyl4kMEq8CMdmy/+K8+qV4t6x3XlK82FfzZKwie7ribiEGS6B86Uxks1tiazHgs 7pZdB4MjjVPz9CG5DOiHrPjH6j59eYZ4fjWWQ3hfmmRdDDYXWzsFXpPpWQU8Ig7RyPt5 XL1ZrunmFFQ+H9KCQ9kK9s26xP4011h/s5h8Kcmu9/GBqSA2FS6GegaAZHJw072rWDGl Lfkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=H46RQMnBnlZnOlENESkbNPUixZN4oTBTUfGxngJYnpU=; b=Wm0i0YQcvx58hlXlmBpbQRyXjS3HwdTTNxUsV9hwpsUyJfuNtNp6Q9N1DsbqfuuBo0 xx4nr46mYbP5Ffns975ndADhTHaOcczZT5uoMV2aH2Ys9PyFw7neoMiPggYZY8+dT6xB hCvClgajzVjRATg8wuc8n/busTNzeZYPzk1LqdlLQvGM6gR2Z/saQcqjaEawVMb2pV85 8XdhhUJ2Z903IBvIbhrYXpF3fHQSmAl5RRFClJF7JcMm0U0F8VxeINcV5q2MlPDk2D77 E7Z5SuzT27r6v8rx0UH9v4L+dIoGrBm29ENj+lYfQloqEzhvozIf1ArY6kLkKMhxJjk0 tilA== X-Gm-Message-State: AJIora8KaLDIPLX7jNTHw/dUpS4ljvoYXue6QGmAqyIloQUqkGFwxqTp UWMHIEib7ROURFZP2/xVX9buswemQns= X-Google-Smtp-Source: AGRyM1s8FrSjSDTy5g29m0vqkpVVUSkxYNCEGQKyG0338RKrKwfjdLPztybBvIDCXaV8+pkrEfejBA== X-Received: by 2002:a17:902:edd7:b0:16a:1fe3:871 with SMTP id q23-20020a170902edd700b0016a1fe30871mr17344185plk.121.1656647580385; Thu, 30 Jun 2022 20:53:00 -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 r5-20020a17090a2e8500b001eee7950428sm5171912pjd.44.2022.06.30.20.52.59 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Jun 2022 20:52:59 -0700 (PDT) In-Reply-To: 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:235757 Archived-At: On 6/27/2022 2:19 PM, Ken Brown wrote: > On 6/27/2022 3:18 PM, Jim Porter wrote: >> I'd be very hesitant to do this, since as you mention above, this >> seems like a timing issue, and it's entirely possible that there are >> other, more widespread issues on Cygwin here. We'd also want to check >> the system that the process is actually running on; otherwise, >> remoting into a Cygwin system (via Tramp) would still exhibit the >> problem. I'll see if I can get a Cygwin environment up to test things >> out in the next week-ish. > > OK, thanks.  Let me know if you need any help with that. Ok, I've got Cygwin set up (though I'm just using the prebuilt Cygwin Emacs for now). I can confirm that the following hangs until I send another EOF via `C-c C-d': echo hi | rev However, if I evaluate the following first, the above command works just fine: (add-to-list 'eshell-needs-pipe "rev") Normally, Eshell starts each process using ptys to control them. However, the above Elisp code tells Eshell to use a pipe for "rev"[1]. I'm not totally clear on all the subtleties here, but it seems to me that it would make more sense for rev to use a pipe for its stdin and a pty for its stdout. That's not possible with subprocesses in Emacs though (as far as I know). However, I don't think this fully answers things, since I also see inconsistent results if I run "echo hi | rev" a bunch of times. Sometimes it prints "ih" and then I need to hit `C-c C-d` once to stop it. Other times it doesn't print anything and I need to hit `C-c C-d' twice. There must be some kind of race condition, maybe in Emacs's src/process.c? Hopefully this helps get us closer to a proper answer here though... [1] Only when rev is being piped *to* in an Eshell pipeline.