develooper Front page | perl.perl5.porters | Postings from January 2006

Re: [perl #23965] Data::Dumper + threads + recursion = segfault

Thread Previous
From:
Dave Mitchell
Date:
January 8, 2006 11:40
Subject:
Re: [perl #23965] Data::Dumper + threads + recursion = segfault
Message ID:
20060108194212.GA23210@iabyn.com
On Thu, Jul 14, 2005 at 01:58:08AM -0700, Michael G Schwern via RT wrote:
> > [davem - Tue Sep 23 17:09:43 2003]:
> > 
> > On Mon, Sep 22, 2003 at 05:01:19PM -0000, David Buckley wrote:
> > > use threads;
> > > use threads::shared;
> > > use Data::Dumper;
> > > our $a : shared;
> > > $a = \$a;
> > > print Data::Dumper::Dumper( $a );
> > > 
> > > This produces a short pause, then a segfault.
> > 
> > The segfault is due to stack or memory exhaustion caused by infinite
> > recursion. The problem is due to the 'proxy' per-thread variables
> > failing to detect a loop caused by mg_get().
> 
> This is still an issue in bleadperl@25129.

Fixed in bleed by change #26695

-- 
A walk of a thousand miles begins with a single step...
then continues for another 1,999,999 or so.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About