Subject: | 0.25_02 memory leak on die |
Date: | Thu, 13 Aug 2009 11:50:35 +1000 |
To: | bug-List-MoreUtils [...] rt.cpan.org |
From: | Kevin Ryde <user42 [...] zip.com.au> |
With List::MoreUtils 0.25_02 and recent debian i386 perl 5.10.0 the
program below seems to consume ever more memory, where I hoped it would
remain constant.
I suspect the COPY_STACK space is not freed if the callback throws an
exception. (I wondered the same about the part() return value array a
while ago, but never made an actual report.) Maybe an actual AV that
FREETMPS would release might be an easy way to let perl do the cleanups.
use strict;
use warnings;
use List::MoreUtils;
print List::MoreUtils->VERSION, "\n";
for (;;) {
eval { List::MoreUtils::any {die} 1 };
}