develooper Front page | perl.perl5.porters | Postings from March 2007

Re: [perl #42163] "use base" masks $SIG{__DIE__}

Thread Previous | Thread Next
From:
Steve Peters
Date:
March 29, 2007 06:21
Subject:
Re: [perl #42163] "use base" masks $SIG{__DIE__}
Message ID:
20070329132100.GA29986@kirk.peters.homeunix.org
On Wed, Mar 28, 2007 at 08:50:28PM -0700, Michael G Schwern wrote:
> # New Ticket Created by  Michael G Schwern 
> # Please include the string:  [perl #42163]
> # in the subject line of all future correspondence about this issue. 
> # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=42163 >
> 
> 
> This is a bug report for perl from schwern@pobox.com,
> generated with the help of perlbug 1.35 running under perl v5.8.8.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> If a module sets a global $SIG{__DIE__} handler and is loaded with "use base" that $SIG{__DIE__} handler will be localized and thus not set.
> 
> This is because of this code in base.pm.
> 
>             local $SIG{__DIE__};
>             eval "require $base";
> 
> aliased.pm had a similar problem and I propose a similar fix.
> http://rt.cpan.org/Public/Bug/Display.html?id=25293
> 
> Patch forthcoming.
> 

Since you are listed as the maintainer of base on CPAN, would you be
interested in making a release?  If not, would you be willing to work 
with someone to make a release?

Steve Peters
steve@fisharerojo.org

Thread Previous | 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