develooper Front page | perl.perl5.porters | Postings from April 2003

Re: [perl #21347] segfault in UNIVERSAL::AUTOLOAD

Thread Previous | Thread Next
From:
Enache Adrian
Date:
April 2, 2003 14:59
Subject:
Re: [perl #21347] segfault in UNIVERSAL::AUTOLOAD
Message ID:
20030402225856.GA874@ratsnest.hole
On Wed, Apr 02, 2003 at 09:21:43AM +0200, Rafael Garcia-Suarez wrote:
> > I added a new test file too (t/run/crash.t) to test for this
> > kind of final cleanup crashes, etc. The first test there is
> > for another bug, see
> >     http://nntp.perl.org/group/perl.perl5.porters/73117
> 
> bug #21347, right ?

Oh no. That's the second. This one :) - see the subject line.

as of that url try also:

$ perl -e 'split /(?{"FOO"})/,"abcde";print @_'

$ perl -e 'split /(?{ split "" })/,"abc"'

under 5.6.1, 5.8.0 and bleadperl.

> OK, I don't like this idea of a new t/run/crash.t.
> I'd put them in t/op/ref.t; or, at least, if you want a new test
> file, "t/op/cleanup.t" ("test for global cleanups") feels better.

I have no naming policy objections. Notice however that's not just
final cleanup - there are many coredump cases, where putting the
test at the end of a bigger script will make it just work fine -
because that's how malloc(3) works in many cases - it will get
a bigger memory chunk than asked, etc.
( the recent [perl #21728], for instance )

Regards
Adi

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