develooper Front page | perl.perl5.porters | Postings from September 2012

[perl #114990] Non assignment to *DB::DB causes segfault

Thread Next
From:
Zsban Ambrus via RT
Date:
September 24, 2012 05:35
Subject:
[perl #114990] Non assignment to *DB::DB causes segfault
Message ID:
rt-3.6.HEAD-11172-1348490097-348.114990-15-0@perl.org
On Fri Sep 21 05:35:18 2012, LeonT wrote:
> > cat Devel/foo.pm
> package Devel::foo;
> *DB::DB = sub {} if 0;
> 1;
> 
> > perl -d:foo -e0
> Segmentation fault (core dumped)
> 
> It seems pp_dbstate doesn't check it the &DB::DB is really defined,
> only that it has been seen.

This seems familiar.  Yup: bug #34892 -- a bug from years ago which
claims that declaring DB::sub without defining it can cause a segfault.  

If you know what caused this bug, maybe check all the other debugger
callbacks for similar problems now.

Ambrus



---
via perlbug:  queue: perl5 status: resolved
https://rt.perl.org:443/rt3/Ticket/Display.html?id=114990

Thread Next


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