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

Re: [ID 20001029.008] perl binary segfaults on following code

Thread Previous | Thread Next
From:
Benjamin Holzman
Date:
November 25, 2000 20:13
Subject:
Re: [ID 20001029.008] perl binary segfaults on following code
Message ID:
20001125231409.D25040@ecnvantage.com
On Sat, Nov 25, 2000 at 06:21:52PM -0800, Yitzchak Scott-Thoennes wrote:
> Simon Cozens <simon@cozens.net> wrote:
> > On Thu, Nov 23, 2000 at 07:38:04PM -0800, Yitzchak Scott-Thoennes wrote:
> > > Still present at 5.7.0 + DEVEL7837.
> > > Simpler case (assuming it is the same bug :) is:
> > > ./perl -e'sub=;"$a->{b} $a->{b}"'
> > 
> > Are you sure? That doesn't even compile here.
> 
> Does it coredump?  It does for me.
> But perhaps it isn't the same bug after all.
> 
> [D:\perl-current]cat Foo.pm
> sub foo
> {
>     sub ( $Self ) = @_;
>     my $Filename = "$Self->{Name} $Self->{Folder}";
> }

I was just wondering about that.  It seems that the { has to be there for
the mess in-between to be considered a prototype, and then enough ops
to make PL_comppad av_extend, maybe, and relocated, so it causes a segv
on the free?  I'm not really sure, though.

HTH,

Ben

-- 
Benjamin Holzman				ECNvantage Corp.
Chief Technical Officer 			295 Park Avenue S., Suite 7C
(212) 358-0436 : bah@ecnvantage.com		New York, NY, 10010
$ perl -le 'print join $" ,reverse map ucfirst ,qw{ hacker perl another just}'

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