From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 51800 invoked by alias); 23 Sep 2015 07:52:42 -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 51788 invoked by uid 89); 23 Sep 2015 07:52:40 -0000 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 Received: from mout.gmx.com (HELO mout.gmx.com) (74.208.4.201) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Wed, 23 Sep 2015 07:52:39 +0000 Received: from [192.168.1.100] ([92.109.3.250]) by mail.gmx.com (mrgmxus001) with ESMTPSA (Nemesis) id 0MhAEp-1a0qXa2lAv-00MPJK; Wed, 23 Sep 2015 09:52:36 +0200 To: cygwin@cygwin.com From: litter@null.net Subject: Cygwin bash for loops : repeated errors : [main] bash 1972 fork: child -1 - CreateProcessW failed for errno 9 bash: fork: Bad file descriptor X-Enigmail-Draft-Status: N1110 Message-ID: <56025A43.9000604@null.net> Date: Wed, 23 Sep 2015 07:52:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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== X-SW-Source: 2015-09/txt/msg00374.txt.bz2 Hi all, On a Windows XP 32 bit machine with latest Cygwin installed (CYGWIN_NT-5.1 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 '\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