delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/05/05/15:13:07

X-Spam-Check-By: sourceware.org
Message-ID: <16bc06a30605051212w7644c18fqc1d1c45633479ffe@mail.gmail.com>
Date: Fri, 5 May 2006 21:12:48 +0200
From: "Torfinn Ottesen" <torfinn DOT ottesen AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: fork: child -1 - CreateProcessA failed, errno 11
MIME-Version: 1.0
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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k45JD3NN025684

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

Regards
Torfinn Ottesen

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