develooper Front page | perl.perl5.porters | Postings from December 2008

Re: [perl #57944] Incorrect nonnull attribution on Perl_parser_dup

Thread Previous
From:
Dave Mitchell
Date:
December 9, 2008 14:20
Subject:
Re: [perl #57944] Incorrect nonnull attribution on Perl_parser_dup
Message ID:
20081209220924.GB23737@iabyn.com
On Mon, Aug 18, 2008 at 10:37:49AM +0200, Rafael Garcia-Suarez wrote:
> 2008/8/15 richard.earnshaw@arm.com (via RT) <perlbug-followup@perl.org>:
> > I've been trying to build perl with a compiler that implements a number of
> > GNU extensions.  When the tests are run from using this compiler a number
> > of tests fail due do a segmentation fault in Perl_parser_dup.  The reason
> > for this seems to be an incorrect attribute((nonnull)) annotation on the
> > 'proto' argument to this function.  A backtrace shows that perl_clone (line
> > 11297) can call this routine with a NULL proto value.  The crash occurs
> > because the compiler has optimized away the null check at the top of the
> > function (since the programmer has asserted that the argument can't be null
> > the check must be redundant).
> 
> If I'm not mistaken, this is already solved in bleadperl (see embed.fnc).

And now also fixed in 5.10.1-to-be with change #35070.

-- 
print+qq&$}$"$/$s$,$a$d$g$s$@$.$q$,$:$.$q$^$,$@$a$~$;$.$q$m&if+map{m,^\d{0\,},,${$::{$'}}=chr($"+=$&||1)}q&10m22,42}6:17a2~2.3@3;^2dg3q/s"&=~m*\d\*.*g

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