This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: perl - segfault on "free unused scalar"


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.


Krzysztof Duleba


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]