https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Bug ID: 1062576
Summary: memory leak when including a file with "use utf8"
Product: Fedora
Version: 19
Component: perl
Severity: medium
Assignee: jplesnik(a)redhat.com
Reporter: lav(a)yars.free.net
QA Contact: extras-qa(a)fedoraproject.org
CC: cweyl(a)alumni.drew.edu, iarnell(a)gmail.com,
jplesnik(a)redhat.com, kasal(a)ucw.cz,
perl-devel(a)lists.fedoraproject.org, ppisar(a)redhat.com,
psabata(a)redhat.com, rc040203(a)freenet.de,
tcallawa(a)redhat.com
Description of problem:
Every time perl includes a file with "use utf8" and text constants it leaks
memory.
Version-Release number of selected component (if applicable):
perl-5.16.3-266.fc19.x86_64
How reproducible:
always
Steps to Reproduce:
1. run the test program below
2. watch as memory usage grows
Here is the test program:
-------------------------
my $mem = 0;
sub report_memory () {
my $next_mem = qx[ps -p $$ -o size=]+0;
printf "%+8d = %8d K\n", $next_mem-$mem, $next_mem; $mem = $next_mem;
}
for (0..1e5) {
do 'x.inc';
report_memory unless $_ % 1e4;
}
-------------------------
x.inc contains:
-------------------------
use utf8;
$x='x';
-------------------------
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=l7ghbj1UQE&a=cc_unsubscribe