Skip Menu |

This queue is for tickets about the Text-Template CPAN distribution.

Report information
The Basics
Id: 56402
Status: resolved
Priority: 0/
Queue: Text-Template

People
Owner: Nobody in particular
Requestors: vasek.balcar [...] spolecne.cz
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.45
Fixed in: 1.47



Subject: Repeated eval in fill_in creates a memory leak
The problem is that the code evaled inside fill_in ($fi_progtext) leaves a strange relicts in memory: no strict; my $fi_lcomment = "#line $fi_lineno $fi_filename"; my $fi_progtext = "package $fi_eval_package; $fi_prepend;\n$fi_lcomment\n$fi_text;"; my $fi_res; my $fi_eval_err = ''; It looks, like after eval $fi_progtext, the $fi_lcomment (or specifically the value $fi_filename) is kept in the memory and is never reused. <ay be the problem is somewhere deeper in perl evaled text garbage collecting? I have isolated this into a simple script , see attached. -- Vasek
Subject: text-template-leak.zip
Download text-template-leak.zip
application/zip 1.4k

Message body not shown because it is not plain text.

On Thu Apr 08 15:20:50 2010, VASEK wrote: Show quoted text
> is kept in the memory and is never reused. <ay be the problem is > somewhere deeper in perl
Just a note on perl version This is perl, v5.8.8 built for i386-freebsd-64int i haven't been able to reproduce the leaks on v5.8.8 built for x86_64-linux-thread-multi and on v5.10.0 built for darwin-thread-multi-2level
This sounds like the same bug as #22031 which was just patched in CPAN v1.47. Most vendors had patched this issue already so if you were using a vendor perl, that is probably why you were no longer able to reproduce it. Marking this patched. Will resolve once 1.47 shows up in RT "Fixed In" version :) -- Regards, Michael Schout