X-Recipient: archive-cygwin AT delorie DOT 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 AT cygwin DOT com From: Jordan Subject: Re: Shell script loop runs out of memory Date: Thu, 31 May 2012 22:53:01 +0000 (UTC) Lines: 21 Message-ID: References: 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 AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Jordan 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