This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Shell script loop runs out of memory


Jordan <uptownb0y <at> yahoo.com> writes:
> This works great for several hours, but then gives an "out 
> of memory" error and actually brings Windows 7 to its knees.
> I can provide the exact memory error if 
> requested

I reproduced it again.  The error messages are as follows:

./myscript.sh: line 32: /usr/bin/cut: Cannot allocate memory
./myscript.sh: line 32: /usr/bin/md5sum: Cannot allocate memory
./myscript.sh: line 32: /usr/bin/grep: Cannot allocate memory
      1 [main] sh 437152 fork: child -1 - CreateProcessW failed for
                         'C:\cygwin\bin\sh.exe', errno 12
./myscript.sh: fork: Cannot allocate memory

...and the script aborts at that point.

So, this totally confirms everyone's responses that the issue is related to 
forking.

Thanks all...


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]