From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24346 invoked by alias); 29 Jul 2019 13:48:54 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 24337 invoked by uid 89); 29 Jul 2019 13:48:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-105.6 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy= X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 29 Jul 2019 13:48:53 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MPp0l-1i4w2j3RfH-00MtGi for ; Mon, 29 Jul 2019 15:48:50 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7DF7CA80410; Mon, 29 Jul 2019 15:48:50 +0200 (CEST) Date: Mon, 29 Jul 2019 13:48:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Regression (last snapshot) Message-ID: <20190729134850.GP11632@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20190722152016.GE21169@calimero.vinschen.de> <20190722155340.GF21169@calimero.vinschen.de> <20190722164509.GG21169@calimero.vinschen.de> <4b59209a91e8384ec000e2724696791c@smtp-cloud7.xs4all.net> <935d8ce5-fd5c-3010-4664-bb2dc9b7ca2f@cornell.edu> <20190729084552.GL11632@calimero.vinschen.de> <0166ad54-5417-054c-b4e3-b2a97cad8ad0@cornell.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yklP1rR72f9kjNtc" Content-Disposition: inline In-Reply-To: <0166ad54-5417-054c-b4e3-b2a97cad8ad0@cornell.edu> User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-07/txt/msg00257.txt.bz2 --yklP1rR72f9kjNtc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1541 On Jul 29 13:35, Ken Brown wrote: > On 7/29/2019 9:18 AM, Ken Brown wrote: > > On 7/29/2019 4:45 AM, Corinna Vinschen wrote: > >> Did you try to reproduce this under > >> strace? > >=20 > > Yes, but there I get an error (even under mintty) for a different reaso= n: > >=20 > > $ strace -o trace.out ls -lL <(grep bash .bashrc) > > ls: cannot access '/dev/fd/63': No such file or directory > >=20 > > The strace output shows a call to fhandler_process::exists on /proc/450= 36/fd/63; > > here 45036 is the PID of 'ls'. And then I see an EBADF error. But I t= hink > > what's happening here might be that bash is parsing '<(grep bash .bashr= c)' too > > soon, so that '/dev/fd/63' isn't related to the 'ls' command. > >=20 > > By the way, I've just tried a different experiment, in which I simplify= the ls > > command to 'ls <(grep bash .bashrc)'. When I run this under xterm, I g= et the > > broken pipe error 98% of the time or more. But it's fine under mintty. >=20 > I think I may have more-or-less figured out what's going on. The "broken= pipe"=20 > error simply means that ls has exited before grep has finished writing. = So grep=20 > is writing to a pipe that has no readers. If I replace 'ls' by 'cat', I = don't=20 > get any errors. Yeah, but it's mainly because this got started wrongly. bash needs to run under strace as well, otherwise you don't have the connection to the process actually creating the fifo. My previous reply wasn't very clear on that, sorry. Corinna --=20 Corinna Vinschen Cygwin Maintainer --yklP1rR72f9kjNtc Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAl0++UIACgkQ9TYGna5E T6D4wg/9EmjAR+BqeyumRudW55WcQhrl1RdopPD8/I72d9VQS+3Jd9MLdrj7EhES rv9VrJ0ASxr2h6t+fpiQUmTEe7IpQKkHYLCBSLdPbnE0LnhCxjX+2UjFfGbNx8ET wquQs2tNZcxcvoWjJHqL1JUu9NqATeUB8lSaXy+GwZp4KZgkyt5Pmy5FuSOqnHGQ Ay0HWusns/6i28KnTFdivaRRibW40Dt7mEoHoyFaohPJceSywdEfNkmammpQdPYR SzX63ZDmqLdL9D24sJy6BCwcgvA75W/2ysUv6PulmGYUn6gDMhvVgidmOHwuYjDW WI3v2ig8UlM/MGkMlp1oW2JQfhch0BHR+UnOIkYDI+/2cssowAUcJU3HL2Al69qf efqHSu7U3e7Pmb8sPrtb35CaQVjOdXb6+BDGqlWUiyFIgk/T9/mGmfm1PKk6ZsX2 qHU+Uq5kcgqgtvbCydioTaax+T5EuNtpDzXSZrDsuZQR2LMXF9S38WKU8XC5ZYbX oTrwGiiSYRD9iBRzK+SJea+UuE0TjX0HOnhxJanqte1xNFr1A/2xg6JbwH/x76j5 GJ9ey2tlPjGao5ay0bLEulbZzQGhZySYtnp26MzreQtggCKUwOaZWecLjxq5pTm4 9t6umBTohqUFEd5Tf15H7qh+X8Fe+SkN6Yr0d5q1OjqbPL0FzCQ= =qtVM -----END PGP SIGNATURE----- --yklP1rR72f9kjNtc--