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

Re: [perl #118139] Storable in DESTROY blocks

Thread Previous | Thread Next
Leon Timmermans
May 23, 2013 16:07
Re: [perl #118139] Storable in DESTROY blocks
Message ID:
On Thu, May 23, 2013 at 5:30 PM,
<> 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.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About