List Info

Thread: Re: 5.8.8 B::Debug and others coredumping on aelemfast; insight?




Re: 5.8.8 B::Debug and others coredumping on aelemfast; insight?
user name
2007-09-14 17:45:46
On Fri, Sep 14, 2007 at 02:48:01PM -0700, Scott Walters
wrote:
> Dear kind Perl porters,
> 
> cat >t.pl <<EOF
> my freegame_multipliers;
> $freegame_multipliers[0] = 0;

[snip]

> The basic observeration was that arrays subscripted
with constants caused
> the compiler to coredump.

Without looking too closely, I'd make the observation that,
prior to 5.8.4,
aelemfast only applied to package arrays; with 5.8.4 I
changed it so that
it would work with lexical arrays too: the OPf_SPECIAL flag
does the
discimination:

    PP(pp_aelemfast)
    {
	dSP;
	AV *av = PL_op->op_flags & OPf_SPECIAL ?
		    (AV*)PAD_SV(PL_op->op_targ) : GvAV(cGVOP_gv);

The segfault might be related to that change.

-- 
The warp engines start playing up a bit, but seem to sort
themselves out
after a while without any intervention from boy genius
Wesley Crusher.
    -- Things That Never Happen in "Star Trek"
#17

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )