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

Re: [perl #76248] "Attempt to free unreferenced scalar" with nested%SIG-handlers calls

Thread Previous
From:
Dave Mitchell
Date:
November 1, 2010 09:43
Subject:
Re: [perl #76248] "Attempt to free unreferenced scalar" with nested%SIG-handlers calls
Message ID:
20101101164324.GL3937@iabyn.com
On Wed, Jun 30, 2010 at 04:44:32PM +0200, Vincent Pit wrote:
> 
> > On Mon, Jun 28, 2010 at 22:59, mons@cpan.org <perlbug-followup@perl.org> wrote:
> >> $ perl5.10.0 -E '$SIG{INT} = sub { kill TERM => $$ }; $SIG{TERM} = sub { kill USR1 => $$; }; $SIG{USR1} = sub { exit };  kill INT => $$;'
> >> Attempt to free unreferenced scalar: SV 0x800d76bb8 at -e line 1.
> >>
> >> $ perl5.12.0 -E '$SIG{INT} = sub { kill TERM => $$ }; $SIG{TERM} = sub { kill USR1 => $$; }; $SIG{USR1} = sub { exit };  kill INT => $$;'
> >> Attempt to free unreferenced scalar: SV 0x800e72660 at -e line 1.
> >>
> >> $ perl5.13.2 -E '$SIG{INT} = sub { kill TERM => $$ }; $SIG{TERM} = sub { kill USR1 => $$; }; $SIG{USR1} = sub { exit };  kill INT => $$;'
> >> Attempt to free unreferenced scalar: SV 0x800e76660 at -e line 1.
> >>
> >> [Please do not change anything below this line]
> > No such error in blead for me
> 
> It seems like it only happens with non-threaded perls :
> 
> $ perl5.12.1-thr-64 -E '$SIG{INT} = sub { kill TERM => $$ }; $SIG{TERM}
> = sub { kill USR1 => $$; }; $SIG{USR1} = sub { exit };  kill INT => $$;'
> $ perl5.12.1-64 -E '$SIG{INT} = sub { kill TERM => $$ }; $SIG{TERM} =
> sub { kill USR1 => $$; }; $SIG{USR1} = sub { exit };  kill INT => $$;'
> Attempt to free unreferenced scalar: SV 0xd88148 at -e line 1.


Now fixed with 0c4d3b5ea916cf640ea163c5a6bcffefade55a1b

-- 
Music lesson: a symbiotic relationship whereby a pupil's embellishments
concerning the amount of practice performed since the last lesson are
rewarded with embellishments from the teacher concerning the pupil's
progress over the corresponding period.

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