Out of memory error in Storable::thaw (windows, Perl 5.6.1)

Out of memory error in Storable::thaw (windows, Perl 5.6.1)

am 26.02.2007 22:16:15 von bryan.kramer

I am getting an "out of memory"" error message from Storable::thaw (Perl
version below).

Although the record is big (200 k bytes), from searching the web I
suspect that the problem might be with some bytes that Storable::freeze
stored. Is this in fact the case? If so, can someone supply me with the
code that could at a minimum check the bytes to predict if the problem
is going to occur, and better still, fix the problem so that the thaw
can proceed. I can't upgrade Perl for my users right away, and having
the program terminate with an out of memory error is clearly
unacceptable for the users.

Thanks
Bryan M. Kramer


This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2001, Larry Wall

Binary build 628 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 15:41:05 Jul 4 2001

_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Re: Out of memory error in Storable::thaw (windows, Perl 5.6.1)

am 27.02.2007 00:52:01 von Bill Luebkert

Bryan M. Kramer wrote:
> I am getting an "out of memory"" error message from Storable::thaw (Perl
> version below).
>
> Although the record is big (200 k bytes), from searching the web I
> suspect that the problem might be with some bytes that Storable::freeze
> stored. Is this in fact the case? If so, can someone supply me with the
> code that could at a minimum check the bytes to predict if the problem
> is going to occur, and better still, fix the problem so that the thaw
> can proceed. I can't upgrade Perl for my users right away, and having
> the program terminate with an out of memory error is clearly
> unacceptable for the users.

200KB is chicken feed on today's machines.

I would find a 5.8 version and see if the results are the same.
If yes, then you need to post the code and maybe a link to some
actual test data (although 200KB wouldn't be all that big a post
to make for most people) that reproduces the problem.
_______________________________________________
ActivePerl mailing list
ActivePerl@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs