This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: perl - segfault on "free unused scalar"
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 27 Jul 2005 18:49:57 +0100
- Subject: RE: perl - segfault on "free unused scalar"
----Original Message----
>From: Krzysztof Duleba
>Sent: 27 July 2005 17:56
> Then why does the following code fail?
To find out, run /bin/perl.8.6.exe under gdb/insight and breakpoint sbrk.
You'll see that VirtualAlloc is failing. By reassigning $eip to
GetLastError immediately after one of the failing calls, you'll see that the
problem is error code 487 - ERROR_INVALID_ADDRESS. Perhaps there's
something else occupying the memory map that prevents the heap from being
extended contiguously.
In any case, you should be able to improve things by setting the
heap_chunk_in_mb registry key. Turn it up waaaay big!
cheers,
DaveK
--
Can't think of a witty .sigline today....
--
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/