[Bug 1062576] New: memory leak when including a file with "use utf8"

bugzilla at redhat.com bugzilla at redhat.com
Fri Feb 7 11:04:55 UTC 2014


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 at redhat.com
          Reporter: lav at yars.free.net
        QA Contact: extras-qa at fedoraproject.org
                CC: cweyl at alumni.drew.edu, iarnell at gmail.com,
                    jplesnik at redhat.com, kasal at ucw.cz,
                    perl-devel at lists.fedoraproject.org, ppisar at redhat.com,
                    psabata at redhat.com, rc040203 at freenet.de,
                    tcallawa at 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



More information about the perl-devel mailing list