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 Message-ID: <42E7B413.8040203@familiehaase.de> Date: Wed, 27 Jul 2005 18:19:31 +0200 From: "Gerrit P. Haase" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.8) Gecko/20050511 MIME-Version: 1.0 To: Krzysztof Duleba CC: cygwin AT cygwin DOT com Subject: Re: perl - segfault on "free unused scalar" References: <42E76865 DOT 4000301 AT familiehaase DOT de> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Krzysztof Duleba wrote: > Gerrit P. Haase wrote: >> With 5.8.7 I get the core dump after calling `foo 1` the first time: >> >> $ ./inter.pl >> perl> sub foo($){$a=shift;foo($a+1);} >> perl> foo 1 >> Out of memory during request for 4040 bytes, total sbrk() is 402624512 >> bytes! >> Segmentation fault (core dumped) > > > How many times did you try that? With 5.8.7 I get either I tried it one time ;) > Another version (with "my $a"): > > perl> sub foo($){my $a=shift;foo($a+1);} > perl> foo 1 > Out of memory during "large" request for 134221824 bytes, total sbrk() > is 304633856 bytes at (eval 19) line 1. > perl> foo 1 > Bad realloc() ignored at (eval 19) line 1. > Segmentation fault (core dumped) > > > Is this a perl bug, Cygwin bug, or just a feature? I don't know. Maybe it is a Windows feature that applications running out of memory are crashing? Gerrit -- =^..^= -- 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/