From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 124050 invoked by alias); 2 Nov 2015 14:30:28 -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 124037 invoked by uid 89); 2 Nov 2015 14:30:27 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 X-HELO: calimero.vinschen.de Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 02 Nov 2015 14:30:26 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id C747BA803FA; Mon, 2 Nov 2015 15:30:23 +0100 (CET) Date: Mon, 02 Nov 2015 14:30:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Randomly hang when compiling Cygwin on Cygwin on Wine Message-ID: <20151102143023.GC963@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="t0UkRYy7tHLRMCai" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2015-11/txt/msg00034.txt.bz2 --t0UkRYy7tHLRMCai Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1650 On Nov 2 03:08, Qian Hong wrote: > Update: >=20 > I have another case of hang: >=20 > ?(1)-+-bash(1419290) > |-bash(1419318)---make(1423770)---sh(1423783)---sh(1423838) > |-mintty(1249269)---bash(1249277) > |-mintty(47)---bash(55)---bash(1132827)---make(1139169)---sh(1139182= )---make(1139234)---sh(1206695)---sh(1206721)---make(1206764)---sh(1206770)= ---make(1206783)---perl(1249042) > |-mintty(596773)---bash(596790)---pstree(1423865) > `-mintty(1417449)---bash(1417457) >=20 >=20 > $ ps aux | grep 1249042 > 1249042 1206783 1132827 1249050 pty0 197608 Oct 31 /usr/bin/= perl > 1249077 1249042 1132827 1249092 pty0 197608 Oct 31 > /usr/bin/nm >=20 >=20 >=20 > Here the process perl(1249042) is waiting for a pipe, while its child > process nm(1249077) is in the status "defunct". nm(1249077) appears in > output of `ps aux`, but doesn't appear in output of `pstree -p -l`. >=20 > Is there any case, where a child process can exit unexpected, but the > parent process still incorrectly wait for the child process forever? I don't answer this question conclusively before consulting my lawyer. It *might* be possible. See fhandler_base_overlapped::close(), fhandler_base_overlapped::check_later() and flush_async_io(), all three in fhandler.cc. No, I'm not happy with using overlapped IO for pipes. I'd prefer to use nonblocking pipes instead, but the most required resource to fix this, which is least available, is time :( Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --t0UkRYy7tHLRMCai Content-Type: application/pgp-signature Content-length: 819 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWN3N/AAoJEPU2Bp2uRE+gpHAQAJMLfdK0Noc5l6hCZZC1IFbz M+ytoxRajJtCoVbC2towFeziaYMW4muhA/hlxPrtsWMnd+GTrcMz4ALmm11vMdKG 20cZElV0vNzs02/spTdsuIUzutjOc/Z5POnUdBWfNaPe8WW9ieafDLck6QSZunqw PZiS4SF5u62MVZxkqax7I3EDcKtzXlVEDFbiVMNLPwtdvJ+X6iq1Bh79vWOgVFdR /qTt1bpTQnvrv2gXOnHQUbvUCd32FWQJNTcIIdDBSqIjCoD2s7jfPnS7VhG2/SOX Hrje1QWV8hnR9J3gN3wmQugakL3FV/hQ/cP/PG/QcWTl0CQ+3DqtwDrGT8h4XOND PpH+HAGwHlGkXWKoceL14BV3u/BsQ+A9bpCaNGoHG2zfLIxBJXZ63qJONQ4gB7/V eZ7TKBjvPeWjhxiphAo1Ts8DYilizUv8h9BmUk0sf/G7yORbLOGDYnjFpvnHcaUQ inXIgmoqoUVoa2gQXdGnKJpVtFc02MtLlQqhgevtGTvOw7NK3srjhTJXAgXI14VT RmUDeyVtkNyQeOdAeZfq5OH6e5oUYUz0o3QTEMaV/Xr41oIZk96n53Q3VNtvm6ga zQ+2T4/z/tVmaXjiSd7G9Qt4wk3gAbCIHcCRALGETQAO35wjsFjoDLQF/4y83/AP 8RPN0TDuNcKySSSXzLb3 =nHpR -----END PGP SIGNATURE----- --t0UkRYy7tHLRMCai--