develooper Front page | perl.perl5.porters | Postings from August 2010

Re: [perl #77432] assertion failure with POSIX::SigAction

Thread Previous
From:
Tony Cook
Date:
August 31, 2010 02:25
Subject:
Re: [perl #77432] assertion failure with POSIX::SigAction
Message ID:
20100831092518.GA17156@mars.tony.develop-help.com
On Mon, Aug 30, 2010 at 04:01:28PM +0100, Nicholas Clark wrote:
> On Tue, Aug 31, 2010 at 12:41:29AM +1000, Tony Cook wrote:
> > On Tue, Aug 24, 2010 at 10:32:18PM -0700, Niko Tyni wrote:
> > > Originally triggered by the CPAN forks module:
> > > 
> > > ./perl -Ilib -MPOSIX -e '*SIG={}; sigaction(1, POSIX::SigAction->new)'
> > > perl: mg.c:98: S_save_magic: Assertion `((sv)->sv_flags & (0x00200000|0x00400000|0x00800000))' failed.
> > > zsh: abort (core dumped)  ./perl -Ilib -MPOSIX -e '*SIG={}; sigaction(1, POSIX::SigAction->new)'
> > > 
> > > Seen at least on 5.10.1 and blead.
> > 
> > Fixed in 17cffb3718693d45499c002f0f50df9196858f28.
> 
> I believe that this bug is a duplicate of 75150

The patch prevents the test code from 75150 crashing.

> Whilst this fixes the immediate symptoms of an assertion failure, I'm not
> convinced that it actually fixes the underlying bugginess, which is caused
> by the core not handling this sanely:
> 
>    *SIG={}

I'm not sure the current behaviour is insane.

Tony

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