From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27388 invoked by alias); 2 Apr 2012 08:58:34 -0000 Received: (qmail 27317 invoked by uid 22791); 2 Apr 2012 08:58:12 -0000 X-Spam-Check-By: sourceware.org Received: from aquarius.hirmke.de (HELO calimero.vinschen.de) (217.91.18.234) by sourceware.org (qpsmtpd/0.83/v0.83-20-g38e4449) with ESMTP; Mon, 02 Apr 2012 08:57:58 +0000 Received: by calimero.vinschen.de (Postfix, from userid 500) id 18CF52C006E; Mon, 2 Apr 2012 10:57:56 +0200 (CEST) Date: Mon, 02 Apr 2012 08:58:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: "cant commit memory for stack" error with perl Message-ID: <20120402085756.GD8014@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <4F75A300.4030208@peralex.com> <4F7897C4.1020202@cygwin.com> <4F7961DA.2080203@peralex.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <4F7961DA.2080203@peralex.com> User-Agent: Mutt/1.5.21 (2010-09-15) Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com X-SW-Source: 2012-04/txt/msg00028.txt.bz2 Please, don't http://cygwin.com/acronyms/#TOFU Thank you. On Apr 2 10:22, Noel Grandin wrote: > Hi > > Thanks for the advise. But I'm still not winning :-( > > I've done a rebaseall and a peflagsall and then a reboot, and I'm > still seeing the failures. > > Is there anything else I can try, any other debugging I can do? You could try with the latest developer snapshot from http://cygwin.com/snapshots/ > >>0 [main] perl 488 child_info_fork::abort: can't commit memory for stack > >>0x88B000(86016), Win32 error 487 > >>0 [main] perl 3604 child_info_fork::abort: can't commit memory for stack > >>0x88B000(86016), Win32 error 487 This is strange. The stack address in question points to a thread stack. Trying to create a thread stack in a specific location only occurs if the process tries to fork() from another thread than the main thread. However, if you're running Cygwin 1.7.10 or later, pthread stacks are not located so low in the memory, since thread stacks are by default allocated with MEM_TOP_DOWN. So this looks like perl or the perl package you're using does not use pthreads, but rather native Windows CreateThread to create a thread. If so, it's kind of on its own. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- 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