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"


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


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