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@redhat.com Reporter: lav@yars.free.net QA Contact: extras-qa@fedoraproject.org CC: cweyl@alumni.drew.edu, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rc040203@freenet.de, tcallawa@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'; -------------------------
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- URL| |https://rt.perl.org/Public/ | |Bug/Display.html?id=121200
--- Comment #1 from Petr Pisar ppisar@redhat.com --- Upstream report https://rt.perl.org/Public/Bug/Display.html?id=121200.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
--- Comment #2 from Petr Pisar ppisar@redhat.com --- All Fedoras are affected (confirmed on perl-5.18.2-296.fc21.x86_64, perl-5.18.2-289.fc20.x86_64, perl-5.16.3-266.fc19.x86_64).
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #3 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|19 |20
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #4 from Fedora End Of Life endoflife@fedoraproject.org --- This message is a reminder that Fedora 20 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 20. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '20'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 20 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|20 |rawhide
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|23 |22
--- Comment #6 from Petr Pisar ppisar@redhat.com --- This was fixed in perl-5.22.0 (since Fedora 23) by refactoring the code. A fix for perl-5.20 is scheduled for perl-5.20.3 in this commit:
commit 8d89c0509dd5eb1de58dc6617f6e08599eb24792 Author: Tony Cook tony@develop-help.com Date: Mon Aug 10 13:37:26 2015 +0100
[PATCH] [perl #123786] don't leak the temp utf8 copy of namepv
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #7 from Petr Pisar ppisar@redhat.com --- Created attachment 1067231 --> https://bugzilla.redhat.com/attachment.cgi?id=1067231&action=edit Fix for perl-5.20
This simple fix could be applied to Fedora 21 too.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- perl-5.20.3-327.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15793
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- perl-5.18.4-309.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-16027
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- perl-5.18.4-309.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update perl'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-16027
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Jitka Plesnikova jplesnik@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |perl-5.20.3-327.fc22
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- perl-5.20.3-327.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|perl-5.20.3-327.fc22 |5.20.3-327.fc22 Resolution|--- |NEXTRELEASE Last Closed| |2015-09-22 18:54:04
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- perl-5.18.4-310.fc21 has been submitted as an update to Fedora 21. https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4c6dd8cd3
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ON_QA Resolution|NEXTRELEASE |--- Keywords| |Reopened
--- Comment #13 from Fedora Update System updates@fedoraproject.org --- perl-5.18.4-310.fc21 has been pushed to the Fedora 21 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with $ su -c 'dnf --enablerepo=updates-testing update perl' You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-b4c6dd8cd3
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
--- Comment #14 from Fedora Update System updates@fedoraproject.org --- perl-5.18.4-310.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1062576
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|5.20.3-327.fc22 |5.20.3-327.fc22 | |perl-5.18.4-310.fc21 Resolution|--- |ERRATA Last Closed|2015-09-22 18:54:04 |2015-10-04 19:20:34
perl-devel@lists.fedoraproject.org