Skip Menu |
 

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Storable CPAN distribution.

Report information
The Basics
Id: 3815
Status: new
Priority: 0/
Queue: Storable

People
Owner: Nobody in particular
Requestors: rmathews [...] citysearch.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 2.08
Fixed in: (no value)



Subject: thawing a truncated value leaks memory
Download (untitled) / with headers
text/plain 327b
Attempting to thaw a serialized object which has been truncated causes a memory leak. It seems that the parts of the object which have already been constructed are not cleaned up when the retrieve operation fails. I've attached a short script which demonstrates the problem. Details: Storable 2.06 and 2.08 perl 5.8.0 redhat 9
Download demo
text/plain 303b
use strict; use warnings; use Storable qw( freeze thaw ); use Devel::Leak; my @x = (1 .. 100); my $frozen = freeze(\@x); thaw($frozen); $frozen = substr($frozen, 0, length($frozen)/2); my $handle; Devel::Leak::NoteSV($handle); thaw($frozen) or print "thaw failed\n"; Devel::Leak::CheckSV($handle);


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.