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

[perl #118139] Storable in DESTROY blocks

Thread Next
Reini Urban via RT
May 23, 2013 15:36
[perl #118139] Storable in DESTROY blocks
Message ID:
The attached patch fixes the DESTROY issue. 
This is a pretty rare use case, but deserves a CPAN release also.

use Storable;
BEGIN { store {}, "foo"; }
package foo;
sub new { return bless {} }
DESTROY { open $fh, "<", "foo";
  eval { Storable::pretrieve($fh); }; #SEGV
  unlink "foo";
package main;

Reini Urban

via perlbug:  queue: perl5 status: new

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