Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Wed, 27 Jul 2005 18:49:41 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Krzysztof Duleba cc: cygwin AT cygwin DOT com Subject: Re: perl - segfault on "free unused scalar" In-Reply-To: Message-ID: References: <42E76865 DOT 4000301 AT familiehaase DOT de> <42E7B413 DOT 8040203 AT familiehaase DOT de> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 28 Jul 2005, Krzysztof Duleba wrote: > Igor Pechtchanski wrote: > > On Wed, 27 Jul 2005, Krzysztof Duleba wrote: > > > > I've simplified the test case. It seems that Cygwin perl can't handle > > > too much memory. For instance: > > > > > > $ perl -e '$a="a"x(200 * 1024 * 1024); sleep 9' > > > > $ perl -e '$a="a"x(1024 * 1024);my %b; $b{$_}=$a for(1..400);sleep 9' > > > > $ perl -e '$a="a"x(50 * 1024 * 1024);$b=$a;$c=$a;$d=$a;$e=$a;sleep 10' > > > > Yeah. Set heap_chunk_in_mb to include all available memory, and I'm sure > > you'll find that Cygwin perl works the same too. > > After setting heap_chunk_in_mb to 2048, all those tests passed. Thanks! But I > still don't understand why C isn't bound by heap_chunk_in_mb and perl is. I think you're confused. All Cygwin programs, including those written in C, are bound by heap_chunk_in_mb. Unless you are somehow generating a pure Windows program from your C source (e.g., using "gcc -mno-cygwin")... Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! If there's any real truth it's that the entire multidimensional infinity of the Universe is almost certainly being run by a bunch of maniacs. /DA -- 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/