delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/27/19:32:00

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 19:31:53 -0400
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: perl - segfault on "free unused scalar"
Message-ID: <20050727233153.GB21845@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <dc7n8k$m72$1 AT sea DOT gmane DOT org> <42E76865 DOT 4000301 AT familiehaase DOT de> <dc82t0$r0a$1 AT sea DOT gmane DOT org> <42E7B413 DOT 8040203 AT familiehaase DOT de> <dc8ebq$36m$1 AT sea DOT gmane DOT org> <Pine DOT GSO DOT 4 DOT 61 DOT 0507271350010 DOT 21789 AT slinky DOT cs DOT nyu DOT edu> <dc926n$tko$1 AT sea DOT gmane DOT org>
Mime-Version: 1.0
In-Reply-To: <dc926n$tko$1@sea.gmane.org>
User-Agent: Mutt/1.5.8i

On Thu, Jul 28, 2005 at 12:35:02AM +0200, 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 we have to work at making C as mean as perl seems to be.

What's particularly perplexing is that they are both maintained by the
same person so you'd expect the meanness quotient to be the same for
each package.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019