delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/06/17:22:25

X-Spam-Check-By: sourceware.org
Message-ID: <445D135C.9090601@cygwin.com>
Date: Sat, 06 May 2006 17:21:32 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051223 Fedora/1.5-0.2.fc4.remi Thunderbird/1.5 Mnenhy/0.7.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: fork: child -1 - CreateProcessA failed, errno 11
References: <16bc06a30605051212w7644c18fqc1d1c45633479ffe AT mail DOT gmail DOT com>
In-Reply-To: <16bc06a30605051212w7644c18fqc1d1c45633479ffe@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

Torfinn Ottesen wrote:
> OS :     Windows XP Pro SP1
> cygwin: fresh as of february 2006
> 
> I am trying to run a lot of numerical analysis in loop using "bash",
> principally as follows:
> 
> for case in 1 2 3 ... 132
> do
>        prepare input-$case
>        analyse input-$case
>        save results-$case
> done
> 
> I find that my loops are OK until after about 80 cases, then I start
> receive errors like
> identified below. This is repeatable (but it take me 3 hours to reach
> case 80), as
> additional information I have looked at the "Task Manager" and it seems 
> like
> each loop increases my memory usage by about 3.2 MB.
> 
> I am aware of the following information:
> 1.  http://www.cygwin.com/ml/cygwin/2006-04/msg00390.html
> 2.  http://sources.redhat.com/ml/cygwin/2005-09/msg00945.html
>      * Subject: workaround for fork problems?
>      Corinna and I have been looking into the reported problems with fork
>      ("file not found", "died waiting for longjmp", and others) for a while
>      now but have been unable to come up with a cygwin-specific solution.
> 
>      Microsoft, on the other hand, seems to have a fix:
> 3.  http://support.microsoft.com/default.aspx?scid=kb;en-us;824422
>      "When many processes run on your computer (for example, more
> than 50), behaviors
>       that were not expected may occur."
> 
>       I recognise the following symptons:
>       - When you try to start Windows Task Manager by pressing 
> CTRL+ALT+DEL,
>          Windows Task Manager does not start...
>       - The Start menu in the task bar may not open (does not).
>       - any process that uses the CreateProcess Windows API may have 
> problems."
> 
> Can someone diagnose the below error messages? Is there anything I can do
> to get more information regarding the errors and their cause  (I have 
> strace but
> do not know what to do with it). Does anyone have any simplifying ideas 
> so that
> I don't have to wait three hours to the errors. After reboot which
> appears to be only way
> to continue work everything seems OK.
> 
> $ cat error-messages
> sh: /usr/bin/ls: Resource temporarily unavailable
> bash: /cygdrive/c/WINDOWS/TEMP/servant61444.bash: No such file or directory
>      3 [main] sh 57644 fork: child -1 - CreateProcessA failed, errno 11
> sh: fork: Resource temporarily unavailable
>      3 [main] bash 62724 fork: child -1 - CreateProcessA failed, errno 11
> /cygdrive/c/pcdrom/CalcTools/cygwinbin/expandtemplate: fork: Resource
> temporarily unavailable
> /cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: line 77:
> /usr/bin/basename: Resource temporarily unavailable
>      2 [main] bash 62616 fork: child -1 - CreateProcessA failed, errno 11
> /cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: fork: Resource
> temporarily unavailable
>   6936 [main] bash 62616 fork: child -1 - CreateProcessA failed, errno 11
> /cygdrive/c/pcdrom/CalcTools/cygwinbin/cmpdata: fork: Resource
> temporarily unavailable
> /cygdrive/c/pcdrom/CalcTools/cygwinbin/expandtemplate: line 47: 62336
> Broken pipe             cat  <<expandtemplate-eof
> 
> expandtemplate-eof
> 
> sh: /usr/bin/ls: Resource temporarily unavailable
> bash: /cygdrive/c/WINDOWS/TEMP/servant61772.bash: No such file or directory

Sounds to me like the situation you found closely mirrors the behavior the
MS KB article describes.  I think it's worthwhile for you to experiment
with the workaround proposed to see if it helps.  It would be beneficial
if you reported any results you saw back to this list.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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