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 From: "Dave Korn" To: Subject: RE: perl - segfault on "free unused scalar" Date: Wed, 27 Jul 2005 18:49:57 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: Message-ID: ----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/