delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/07/27/11:25:45

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=ALsKmTlqmkWG09R6bYsJePdCEYJmh
G43EtyZJ0OHw08hfo3CwvXwiS4Diq85jDV6XN+0TmISkGP4w2oP3ilSy6nBqkvgw
oGISMNQKxuXVWnqGa6ibIHc3mc0UG1U8+qf+DApEcPIle1uj6cyr19jmpWsBF4/t
HlETCxSCdoglsk=
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=bzLfSLcuHEI0/gkkFQFwpV/mFEE=; b=hdl
4zCf2zBdkbJk1dWgAsd4rV5iSHCwDeMQ4PqjgojWQhoDIfHMLq4UtCK6PAta+Zi3
0eZOv6DySFXnKQUlUZhF3DswpVzsbZciNTwj7hNMs60dG0CL6YCmQw+cOfBOqBsh
HSKnmVmf/HpV1xQMBqMuRfQzTOijOUADzbvVkeVo=
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=-9.5 required=5.0 tests=AWL,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=Over
X-HELO: NAM01-SN1-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TWMwY5OtR/gnF2Eq+MChachgLyEVqXcVEW/xdflV5qVDAlrnbihu8EIX2Y6G2ebtdChfAWDLVPEAdf5B6QXo2LY9xOE0OmTSD0HFq3v9oShNOKzvq6rwO4fWtVSYqnKO5VE1kcOdD5H3Aww4IfHbGUuXzDQggG96niUIfd5Pm5rpziD7vpbvbXlQGBde9KQj4eYfdt4kBkS7cVRTQsyiyn0HzNoWJ+3+yusbWYa5dpsnBqaraCzgYhcc8BIYLWzICUAwDkE8yQjv8RLxFD02LD5nMtTdSsMN440xjLTZ7tW2ntSQ1fliQsJhHKR4jDExmG8xZBwwy/ItonbaPn/ZFA==
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=P+NLdDl7IiXvMlRVF17lgNOCm7Iaru6J470LHYuyACo=; b=hH1uNhJ9WWoAscy+qn5wx+pg46anN19DDxUXbh9Pl3Gu5+zNSnAg0eZojqP8B5iBkZWBJmrvbwMJBybWVh1GOA2+/AyHzNclWjyxOwuAp5on3PUmrqIb4u1uPTGPUd8fEJkDWkEOd5nsyEJzD8MKKM8hnWzdw1isp3mdMgQkTFcGcO4f1A6ld/KQxnk+q2kBe7XOs8uK82aJLiriWh/Hk6T5lf2yysdKHI7jV8bsGXpPffz5Q40iI/U0GbhZBOlZpvXhwMfGL2vZLoYq/ov2+R3i4nA8zBCJMhMbQACQpHtZ3Yxbau6Oy/MZf++pA42qveGLVYgKU9Ty3+3e51a2Eg==
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=P+NLdDl7IiXvMlRVF17lgNOCm7Iaru6J470LHYuyACo=; b=JQzDDQAb8bpsjvqP0Kfufl/V4np4oB+cOKTa1WCHt+ugQuCTgzYzxRMeHWasX+inf/RLs44NTkxPYxZne3n9YbD/lnF2Edl3uymwDC1o6KqohY2pf8pDzimyBaFEFaOXXClloDK0j2lE/B/MhhYj67DLirl6/mf97xOzrJb8VB8=
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: Sat, 27 Jul 2019 15:24:49 +0000
Message-ID: <935d8ce5-fd5c-3010-4664-bb2dc9b7ca2f@cornell.edu>
References: <8f6a87faa9c8130241c026889a01d763 AT xs4all DOT nl> <5414d0e1-79d9-cab7-b1bd-4761265bf8bd AT cornell DOT edu> <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>
In-Reply-To: <4b59209a91e8384ec000e2724696791c@smtp-cloud7.xs4all.net>
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:8273;
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 x6RFPQ7u029543

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 )

Thanks, I hadn't noticed that.

The situation is more complicated than what I reported.  First, it happens even 
in cygwin-3.0.7, as David Karr's report suggests.  Second, it's true that I can 
only reproduce it under X11, but the pattern is not as regular as I thought.  I 
just ran the ls command 1000 times in an xterm window under cygwin-3.0.7, and I 
got the "Broken pipe" error 390 times, with a varying number of consecutive 
successful runs between the errors.

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 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.

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019