delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/10/01/03:03:48

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:content-type
:content-transfer-encoding:mime-version; q=dns; s=default; b=hzK
n4IQNMZ9DVsT8ttNBkPtC3OnfUZyijrLF8rLU9/j2ZH+luQmtLWvET1wd5yS0pW8
nRlzIvhZ34Wwp8EwFgiHa4Pr86tyN0jXPLXi4K6IwH/PfS263Y1ugf0O7RVLcHFl
qLtZZ2yFKx9mnVWvKisjNmenrOk7CQaUYj3RCNeo=
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:content-type
:content-transfer-encoding:mime-version; s=default; bh=9B7rmrpwl
TS+sARFoExEsP9hyds=; b=cKDHANq+5Y/CsYnW78y/lTBFP8d91OqkaQ9o6xZCW
NTHaxsog72HsXU9g11UUlRhMEjLaNJ+7MKXq0ErpkzoMmEzi19SgXxLifvEwjvjw
GMLbS/gq9sW7R44Fowd6QexYV5kE7ay6W/RHBq2py/bCAZ4L5bSh+uTrfFZ1zsOX
zI=
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-Virus-Found: No
X-Spam-SWARE-Status: No, score=3.8 required=5.0 tests=AWL,BAYES_40,KAM_LAZY_DOMAIN_SECURITY,MIME_BASE64_BLANKS autolearn=no version=3.3.2
X-HELO: mx-relay34-dus.antispameurope.com
From: Vermessung AVT - Wolfgang Rieger <w DOT rieger AT avt DOT at>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: Re: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for <bash.exe> errno 9 bash: fork: Bad file descriptor
Date: Thu, 1 Oct 2015 07:03:22 +0000
Message-ID: <AB495CE313664A489959F8DEF45069A90188AA13A3@EXSRV01.avt-imst.local>
MIME-Version: 1.0
X-cloud-security-sender:w DOT rieger AT avt DOT at :
X-cloud-security-recipient:cygwin AT cygwin DOT com :
X-cloud-security-Virusscan:CLEAN :
X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mx-gate34-dus with 254E52018017
X-cloud-security-connect: 46-243-105-14.cni.at[46.243.105.14], TLS=1, IP=46.243.105.14
X-cloud-security:scantime:.2288 :
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id t9173hCr025141

Hi Paul,

I also get Bad File Descriptor errors, though in a quite different situation, see my recent topic "gawk: Bad File Descriptor error with concurrent readonly access to a network file" on Sep 25. There seems to be some issue in some file opening process that occurs with parallel processes and eventually concurrent file access (as in my case). May be the basic problem behind is similar to yours?

Kind regards,
Wolfgang


> After observing for a week on the system with the fix applied, I did not see this issue reoccur.
> I do however still suspect that it is a bug in cygwin, indeed a race condition of some sorts, which probably becomes
> apparent when starting up a process takes (much) longer than expected.
> As said, the guard32.dll is probably scanning the new CreateProcess candidate. I suspect that there's an timing
> assumption in the Cygwin fork code. But as I cannot be sure, I leave it at that.
>
> Regards,
> Paul


- Raw text -


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