X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.5 required=5.0	tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FORGED_YAHOO_RCVD,FREEMAIL_FROM,KHOP_THREADED,NML_ADSP_CUSTOM_MED,RCVD_NUMERIC_HELO,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: Jordan <uptownb0y@yahoo.com>
Subject: Re: Shell script loop runs out of memory
Date: Thu, 31 May 2012 22:53:01 +0000 (UTC)
Lines: 21
Message-ID: <loom.20120601T004907-721@post.gmane.org>
References: <loom.20120531T193933-322@post.gmane.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
User-Agent: Loom/3.14 (http://gmane.org/)
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

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

