X-Recipient: archive-cygwin@delorie.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=gJXUpP4Qzvy1Ezo0hGc3c0Ck76MAY
	mO7NMTXu7iHpvRpnL/CN8EMwp1TTFQPoYKQCywN5K5e48W79AA2D6UCtygwFvXbY
	e+qFwFDOO9LQTlufZfhTOGaJkcaFr1QDXLYo0iwysVdiV0xxvvQC1Pu4Nz+facRV
	sgbnRHdXAZJOAY=
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=HZgIhHgq9S+yDsttkZC9yHpi0dw=; b=op7
	Jn9gqVTQjSov6giZGTKBRfKT/pY+Q1AwOh/DByt8OI33rQrdXqyhOjyp284eHcWc
	9rIl6Kug2IRlWh02hDRwsFGL0mMMFy9FqHClMyL/pP8lOKSJRUQ8RhtTf4HAviHo
	htM/vsulsk5LkgsMYmKNNHcA/ciIpIUVN7gcr8H4=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.1 spammy=orphan, forever, youd, you'd
X-HELO: NAM12-MW2-obe.outbound.protection.outlook.com
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kuBYJjRge/udEAR4Y02DuT9Dj1bTP+FKicI3QDb+4mnhjX7TFyFe9OSdgBOWbYRpvdLkeSP85m2mgZ2+wWAxnRVvJkPihLddls4UBodzl+JWAA7MH65TQxOjqbMhXGdHnvkJZ59fjuEMa144RMv7UWwyfqFa2dsWZr1cioB0MdJFETdroFBVElnBFJ2BTwpN+AsWvsAfHaNaRzsQf/Dxe35Vh7NfxaYPtfapsLijIqpZVKjF7hIzXHdOI8VghOhHjK0sByXL0IyOWSywdgQoZYKR7WhGZvqxAev+fYY+b/JLa0UWsVXCjTsZwpsT4G4MyZP10+a0TqO4lxpP9Oq86Q==
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=hbpLxaBzaVeRr9jXoGio+BhMo1dagwDyzUeAmKDIqlo=; b=mURVZzAKVH6Wqfg4Qq3ayo2c9/yw2qao4FRBOqJtld8gooZW8WAKJTcT8UAi2PaOVPbmNwCJQ4QLnvA+vaJftJYvc7/EsIOEGyny7CfgVkuPir3H6hMSNY20b+eiq2mzNJUAUSQBIhy1gXJZAXeFbkNj874vH5kCtcLHHRaWKiugm8eUjYG3UdelA/6gaHFmE2BtEef37aJR/mWYYioywcw145Qdp7zDF9+h/J2OSaKE2ic90yRDCW2DQFmXLX/gZeNDqjLbxkL7du4j8AQDDSixt0c68adXHV2U1c1trKQ7SiUhVesnotCGlRtfnp4Z3xTcHqtmp+KXRw6MlNUdmA==
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=hbpLxaBzaVeRr9jXoGio+BhMo1dagwDyzUeAmKDIqlo=; b=TBypUSfyLybazoFq4pY0QRABcZuZBEB8V19Yo+2yRGVQ11cdYcATlbrcENMD60yBspGwzIFko2cCspCR6g5/xNEcKLf9Nkzm23mjNj0rghhpmAwTtwSaQ4Q3OoK9IXnXkXlr/JKVPxQElAiwqTU4O0KrMWNETGMxQYK3KmPOMvc=
From: Ken Brown <kbrown@cornell.edu>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: Re: fork: Resource temporarily unavailable errors after upgrading cygwin packages
Date: Thu, 2 Jan 2020 03:02:19 +0000
Message-ID: <b2246862-115f-058d-3a59-b3261b0e61e2@cornell.edu>
References: <6d43c714-c4ba-4f0c-9913-cb8453129c85@gmail.com> <d24aa066-ab3d-9ff0-215a-0a1ed1ec2e5d@cornell.edu> <93562f34-3a14-0c10-cb57-1ae861307d82@gmail.com> <f4a808cf-d129-f6ce-0da8-674cf88a71ad@gmail.com>
In-Reply-To: <f4a808cf-d129-f6ce-0da8-674cf88a71ad@gmail.com>
user-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kbrown@cornell.edu;
x-ms-oob-tlc-oobclassifiers: OLM:9508;
received-spf: None (protection.outlook.com: cornell.edu does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-ID: <230B9D3A21F38C4AA5C2AFB34DF1B865@namprd04.prod.outlook.com>
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: mWmIrjCD8wSfo/LHHaZ5mDRgfmcvwiVZHxpmTg73DWCHX759MQlGbCxNfQONl/hOmBfB7B3JEvLLAvHtwMuliQ==
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 00233H9a016835

On 1/1/2020 6:43 PM, David Finnie wrote:
> That strongly implies that there is an issue with changes made since then. I 
> noticed that in fork.cc, at line 540, this new code exists:
> 
>    /* Do not attach to the child before it has successfully initialized.
>       Otherwise we may wait forever, or deliver an orphan SIGCHILD. */
>    if (!child.reattach ())
>      {
>        this_errno = EAGAIN;
> #ifdef DEBUGGING0
>        error ("child reattach failed");
> #endif
>        goto cleanup;
>      }
> 
> Since I am getting "Resource temporarily unavailable", which equates to EAGAIN, 
> and this code is new, this looks like the most likely candidate to investigate 
> first (but rest assured that I'm not saying that this code is definitely the 
> culprit !).

You could try building cygwin with DEBUGGING0 defined to see if this is where 
the EAGAIN is coming from.  I think the error message would show up in strace 
output, so you'd have to be able to reproduce the problem under strace.

And it would be great if you could find a testcase that you can share with the 
list, so that others can try to reproduce the problem.

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


