delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-id:content-transfer-encoding | |
:mime-version; q=dns; s=default; b=WwogEsmXlDl7L+Yt9NeqEXkWRThVx | |
fZ2BvOccmbmauoow9MyfWYa2t/AK1UJCd9PHP8mrOYDftjDSUOQ8np7PKGBPya2L | |
jf2zKFsHRffPpRJfYHCTJs0qEcQjqmU9L2URmCFpok8ZocNUyKSRsig0TOPjoakZ | |
Hj75+sSEOORxrs= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:from:to:subject:date:message-id:references | |
:in-reply-to:content-type:content-id:content-transfer-encoding | |
:mime-version; s=default; bh=Jp9wLY6K4GDB7MFE6Q5KdGLU0r0=; b=yKR | |
HbTvcwFd8W4GFVq1/yw23BKL6aQYnmQU0DAT6pIHzNIcdaHs+15HiHw1PsaWHpqN | |
BIhXsUhIrUqnLrBKDQd7chK8DNFGyANpAvHsq0Cp0eIYSCW82raY8n/BDNNtlnVz | |
Bk4WH1YFZjIwCfUDnJ078m93ZiRCMCxIp5A2xiLE= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-5.7 required=5.0 tests=BAYES_00,GIT_PATCH_2,NORMAL_HTTP_TO_IP,NUMERIC_HTTP_ADDR,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=thereby |
X-HELO: | NAM04-BN3-obe.outbound.protection.outlook.com |
ARC-Seal: | i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bhgOZyXBiZE9nAWxZG1pzFA/Aa68cXGDtcpWr4MlN/prx6s30/sW8/PliaiOeI/QEOJxsjzvpfpZdkqXfXH49GIyFDOQbrT6ulF4gRxQoEjnBcqlPdlUoB4XuWSSv46WeTczBExY31srs3PHYJfPxhlHDJOKuCpxB0P9AYNyY6BYxcd6WkahajxFx2LX7+5xF3BIdO5j7QJobAwSBkyQA6WuIZFuZOhx1roV5wE3sxlSD7yY3pkf4/hbPQKfXkqzI9WzwVCGlOrboIPjBPzFnwYysbgijFPb9AIQf43vcfKUT+LyfrE+81xkvvk9EDmvnllzl1x8V8gwUXWhtbarUw== |
ARC-Message-Signature: | i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/fri+6i/yLq7fbz/u9YrIBBEVpHFyUV1uAn9XA1uc4E=; b=G4bBFlXFlhIPusq3pGhjNtghT8Ukn5tUEm2FuaGfK6Z5n07sT2B7FiTg7X+mt5hLP8HZ5hL+g/p72+3GOndFiH2veaPaDfRbP2wWGuZ2BE0coUmblNic6MHGE2/5t9DG5gVX7+jBIRlYMUWKMTB5woJT2fhs2fG6qUrpKQX8CRDSF358YbnP8dXC9o/8NSRTGJhaWn/ZiSZKS93Pr9vGPtttfJds+EZPigZuSglworSRJn6Wo6bIIg+yJH2jcXv3TlpIiqr2c/PFASSYqmJFo1p+8PAuLk1J9X+9vawvN4sL1Re1fZHyrxk/hdUljgv/3f3wE9vLbDkYKy7I01Km2Q== |
ARC-Authentication-Results: | i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=cornell.edu;dmarc=pass action=none header.from=cornell.edu;dkim=pass header.d=cornell.edu;arc=none |
DKIM-Signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=cornell.edu; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/fri+6i/yLq7fbz/u9YrIBBEVpHFyUV1uAn9XA1uc4E=; b=aUD1OqlyZH4PEzaHrnwvWsbml1UX43XF7eGoqYJhpZVgqfv7MSOSTdzirl9W9eI8W7ols5CDcL55oyyjmxHdn+FjWz6IGED87pd9L2LI/QzI936e4uXBi97QrdIz053DCALKnjNpNa3B2gTzJhkeNiqOkUTN3uWWkwq02nAIcJU= |
From: | Ken Brown <kbrown AT cornell DOT edu> |
To: | "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com> |
Subject: | Re: Regression (last snapshot) |
Date: | Mon, 29 Jul 2019 14:26:07 +0000 |
Message-ID: | <ced2750a-0a52-1396-b6c1-f4228116bde7@cornell.edu> |
References: | <265a2749-95b6-38aa-a191-7913bfcc98b6 AT cornell DOT edu> <20190722152016 DOT GE21169 AT calimero DOT vinschen DOT de> <20190722155340 DOT GF21169 AT calimero DOT vinschen DOT de> <20190722164509 DOT GG21169 AT calimero DOT vinschen DOT de> <eb8007691b20df0eb8032ca3d2fa445f AT smtp-cloud8 DOT xs4all DOT net> <b3b04db5-7f03-8281-f376-6cd10207ec01 AT cornell DOT edu> <4b59209a91e8384ec000e2724696791c AT smtp-cloud7 DOT xs4all DOT net> <935d8ce5-fd5c-3010-4664-bb2dc9b7ca2f AT cornell DOT edu> <20190729084552 DOT GL11632 AT calimero DOT vinschen DOT de> <eea273ca-f190-c91a-7892-9407bfcf4326 AT cornell DOT edu> <20190729134700 DOT GO11632 AT calimero DOT vinschen DOT de> |
In-Reply-To: | <20190729134700.GO11632@calimero.vinschen.de> |
user-agent: | Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
authentication-results: | spf=none (sender IP is ) smtp.mailfrom=kbrown AT cornell DOT edu; |
x-ms-exchange-purlcount: | 1 |
x-ms-oob-tlc-oobclassifiers: | OLM:8882; |
received-spf: | None (protection.outlook.com: cornell.edu does not designate permitted sender hosts) |
x-ms-exchange-senderadcheck: | 1 |
MIME-Version: | 1.0 |
X-MS-Exchange-CrossTenant-mailboxtype: | HOSTED |
X-MS-Exchange-CrossTenant-userprincipalname: | ksb2 AT cornell DOT edu |
X-IsSubscribed: | yes |
X-MIME-Autoconverted: | from base64 to 8bit by delorie.com id x6TEQkJR007215 |
On 7/29/2019 9:47 AM, Corinna Vinschen wrote: > On Jul 29 13:18, Ken Brown wrote: >> On 7/29/2019 4:45 AM, Corinna Vinschen wrote: >>> On Jul 27 15:24, Ken Brown wrote: >>>> On 7/27/2019 6:21 AM, Houder wrote: >>>>> On Fri, 26 Jul 2019 22:12:43, Ken Brown wrote: >>>>> >>>>>> On 7/22/2019 2:47 PM, Houder wrote: >>>>> >>>>>>> The specific regression as reported, has gone. >>>>>>> >>>>>>> 64-@@ uname -a >>>>>>> CYGWIN_NT-6.1 Seven 3.1.0s(0.339/5/3) 2019-07-22 16:43 x86_64 Cygwin >>>>>>> 64-@@ ls -lL <(grep bash .bashrc) >>>>>>> pr-------- 1 Henri None 0 Jul 22 20:36 /dev/fd/63 >>>>>> >>>>> Over all the behavior has simularity w/ the error reported by David Karr: >>>>> >>>>> https://cygwin.com/ml/cygwin/2019-07/msg00150.html >>>>> ( Piping input from subprocess loses track of temp file ) >>>> [...] >>>> Repeating this under the 20190722 or 20190725 snapshots gave slightly worse >>>> results (close to 500 errors). Using my own unoptimized build of cygwin1.dll, >>>> the error count went up to about 650. >>> >>> I just tried this myself and I can't reproduce the problem. 1000 runs, >>> no error. >> >> Interesting. And you ran this under X11 in an xterm window? > > I didn't, but I just did and the result is the same, no errors. > >>>> I tried running under gdb, but I couldn't get grep to fail. More precisely, I >>>> didn't see an error message from grep. Every run looked like this: >>>> >>>> $ gdb bash >>>> GNU gdb (GDB) (Cygwin 8.2.1-1) 8.2.1 >>>> [...] >>>> (gdb) r -c 'ls -lL <(grep bash .bashrc)' >>>> Starting program: /usr/bin/bash -c 'ls -lL <(grep bash .bashrc)' >>>> [...] >>>> pr-------- 1 kbrown None 0 2019-07-27 11:07 /dev/fd/63 >>>> [...] >>>> [Inferior 1 (process 21712) exited normally] >>>> >>>> It would be better to be able to debug ls and/or grep, but I don't know how to >>>> get to subprocesses in gdb. And I think I have to start with 'gdb bash' in >>>> order for the process substitution to happen. >>> >>> Yeah, subprocess debugging is a problem in GDB. Given how this works, >>> you can at least take grep out of the picture. Bash is doing all the >>> lifting, so it's just bash and ls. Did you try to reproduce this under >>> strace? >> >> Yes, but there I get an error (even under mintty) for a different reason: >> >> $ strace -o trace.out ls -lL <(grep bash .bashrc) >> ls: cannot access '/dev/fd/63': No such file or directory > > No, please run bash: > > strace -o trace.out bash -c 'ls -lL <(grep bash .bashrc)' > > Otherwise there's no process actually creating the pipe, given the <() > expression is a bash expression. Yes, of course. I should have realized this since it's exactly what I did under gdb. Anyway, the result is the same as it was under gdb: If I run the command under strace, I don't see the broken pipe error. Is it possible that debugging causes an fd to the read end of the pipe to stay open longer, thereby preventing the error? Ken -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |