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

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

Thread Next
Zsban Ambrus via RT
September 24, 2012 05:35
[perl #114990] Non assignment to *DB::DB causes segfault
Message ID:
On Fri Sep 21 05:35:18 2012, LeonT wrote:
> > cat Devel/
> 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.


via perlbug:  queue: perl5 status: resolved

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About