delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/23/03:53:00

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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=L7d
jZ0BjapGK/Za2sAtDIBfSzvCReAKfJhB5wIt0ctdLgP8DK6MP/ObwtqWuT9N1eRF
xCUTrA4tcNaG3kGdFaoMgEiNpKj4KUywoHkj7BvoOstpomh3P8UJ4Jkyct9tizdb
YN/PewiaH6k90cAldge7k04JeDHDx0NfAyLJUXmg=
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:to:from:subject:message-id:date:mime-version
:content-type:content-transfer-encoding; s=default; bh=LbtI4iT53
TlJjWlE4d+qrFIbeyM=; b=fRE6YLTagSisLZrkcxLjjMMDaBpDJQ/qo3QhnAQCj
UiG8dFHuA2Zlj5JhqiYdoW4YqHpwW0esfz5s+SEmLN7JLWtiFdlyOZdph+qQsnJf
neG3+5NhoqCHJfRpBR3K7SpwsPtm7GhsuI63CMybGOBWBNnnSQIpu3L6jz+1DQN8
tI=
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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: mout.gmx.com
To: cygwin AT cygwin DOT com
From: litter AT null DOT net
Subject: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for <bash.exe> errno 9 bash: fork: Bad file descriptor
X-Enigmail-Draft-Status: N1110
Message-ID: <56025A43.9000604@null.net>
Date: Wed, 23 Sep 2015 09:52:35 +0200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version: 1.0
X-UI-Out-Filterresults: notjunk:1;V01:K0:Vq7CF/QxcU8=:vekitKlubam16Z8hecNipl 5ZqHgZ+hqfPwCU8gfzj6SDk+QFX801dy/3GLfWXenutY+phxyAKLloM9GYvuVGJg2S6tk1Fom nT9IQzDai8Evddxx6JX2hdcp4YmJAGnM6bjQdccIcb55pPWb73RT/aMkr7+DXXVjCvSX7fxCu PBOdfNOjETeD9TOcdZ4TKU0I0OkHJhtO0d1meXrI6KOWMRdD/yXlmtFL+dDxojnFE/CVQZSrJ mkGni1brC1JwzA59Nryh/LtGzkpPxsVFNuld3bnqYgmtSh/jEchgA6imGpUom66chLyhnexZu NeY6Kpv4RVUBhnMUWq11COdOhC5YRM2+xk0rz542vD9noNhnb6TMdIkT1T3si/HZAAdvBK+CV yT8LjNnjmJdzss+Lfc53SwpwQKlQaGOCVEUstQ2OK78KmDxAzvDODFDWAGYci12JB9IVqXR0y 34eauNA2CcxTAgeVp4DoLWFOK39AQCw9n7LTpOdRzpbB4pmkr3c44jgJobyRR6f9sjN+EOXPH 7B7T+XoC4vt9zYF+ffxBVsGGEKqXOZlZSp47lvQjwt114/QzUm+GBWh+yOgoIyKEXWrPtVxGG pFLfcFUz4r37gOKsBxpI5pckTaVgNWq5IKXzpJQZ40O7Q1H6qlF2FJ7U6B/IwYXaY1vLUdnMl K33NBgkPncdEc65iuixlHjBLrTfhC12HZVU7IC/kmHQeyrlod6ekT5ZpGwq/GVo/8MhR6jErt pHAg4Q27s9qkzrQuuVSiKloOKpw/yj4zOz9dLg==

Hi all,

On a Windows XP 32 bit machine with latest Cygwin installed
(CYGWIN_NT-5.1 <machine> 2.2.1(0.289/5/3) 2015-08-20 11:40 i686 Cygwin)
I frequently encounter errors which break bash while loops, making it practically unusable

e.g.
cat some-file | while read i;do grep text $i;done

results in
2 [main] bash 1972 fork: child -1 - CreateProcessW failed for '<cygwin install path>\bin\bash.exe', errno 9
bash: fork: Bad file descriptor

The error is unpredictable, in a next run everything can run fine again.

I already checked for some common errors, but could not find anything.

Any help is appreciated.

Thanks,
Paul

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