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

Owner: Nobody in particular
Requestors: rmathews [...]

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

MIME-Version: 1.0
X-Mailer: MIME-tools 5.405 (Entity 5.404)
Subject: thawing a truncated value leaks memory
Content-Type: multipart/mixed; boundary="----------=_1063990723-25711-0"
Content-Length: 0
Content-Type: text/plain
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 327
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
Content-Type: text/plain; name="demo"
Content-Disposition: inline; filename="demo"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: iso-8859-1
Content-Length: 303
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 infrastructure.

Please report any issues with to