develooper Front page | perl.perl5.porters | Postings from May 2013

Re: [perl #118139] Storable in DESTROY blocks

Thread Previous | Thread Next
From:
Leon Timmermans
Date:
May 23, 2013 16:07
Subject:
Re: [perl #118139] Storable in DESTROY blocks
Message ID:
CAHhgV8iVpEytyCs__e=zS55R6nLzt8=8EsCCKizAtfNbTcnGdg@mail.gmail.com
On Thu, May 23, 2013 at 5:30 PM, rurban@cpanel.net
<perlbug-followup@perl.org> wrote:
> Storable segfaults when being used in DESTROY blocks during global
> destruction, when accessing an already freed PL_modglobal or the internal
> ctx.
> The best fix is to die if used in global destruction.
> See the new test t/destroy.t, which crashes in all perl versions.
>
> Since this Storable fix needs to be released on CPAN also, I had to
> add some compatibility fixes, tested back to 5.6.

This doesn't make sense to me. perl deliberately destroys all objects
before destroying anything else. PL_modglobal should still exist when
any DESTROY is run.

Leon

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