Bug#600376: perl-base: memory leak in 'use v5.8'

onlyjob. onlyjob at gmail.com
Sat Oct 16 15:23:34 UTC 2010


Package: perl-base
Version: 5.10.1-14
Severity: normal

There is a memory leak in 'use v5.8;' statement. (Version or notation not
important)

Can be reproduced using following command:
    bash -c 'ulimit -v 70000; perl -e "eval q{use v5.8} while 1;"'

Execution of this command terminates with 'Out of memory!' error after several
seconds.
This is happening on both x86 and x86_64.

Not a big problem, but for persistent FastCGI dispatcher EVALing or DOing other
scripts it is a cause of memory leak.

Thank you.



-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (555, 'testing'), (444, 'unstable'), (333, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-vserver-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages perl-base depends on:
ii  dpkg                          1.15.8.5   Debian package management system
ii  libc6                         2.11.2-6   Embedded GNU C Library: Shared lib

perl-base recommends no packages.

Versions of packages perl-base suggests:
ii  perl                          5.10.1-14  Larry Wall's Practical Extraction 

-- no debconf information






More information about the Perl-maintainers mailing list