https://bugzilla.redhat.com/show_bug.cgi?id=859910
Bug ID: 859910 QA Contact: extras-qa@fedoraproject.org Severity: unspecified URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=107 000 Version: 17 Priority: unspecified CC: cweyl@alumni.drew.edu, iarnell@gmail.com, jplesnik@redhat.com, kasal@ucw.cz, lkundrak@v3.sk, mmaslano@redhat.com, perl-devel@lists.fedoraproject.org, ppisar@redhat.com, psabata@redhat.com, rc040203@freenet.de, tcallawa@redhat.com Assignee: ppisar@redhat.com Summary: Hint-hash copying can leak Regression: --- Story Points: --- Classification: Fedora OS: Unspecified Reporter: ppisar@redhat.com Type: Bug Documentation: --- Hardware: Unspecified Mount Type: --- Status: ASSIGNED Component: perl Product: Fedora
Dying in tied %^H leaks memory:
use Config; use Test::LeakTrace;
# [perl #107000] package hhtie { sub TIEHASH { bless [] } sub STORE { $_[0][0]{$_[1]} = $_[2] } sub FETCH { die if $explosive; $_[0][0]{$_[1]} } sub FIRSTKEY { keys %{$_[0][0]}; each %{$_[0][0]} } sub NEXTKEY { each %{$_[0][0]} } } leaktrace { eval q` BEGIN { $hhtie::explosive = 0; tie %^H, hhtie; $^H{foo} = bar; $hhtie::explosive = 1; } { 1; } `; };
Fixed in upstream with commit:
commit 0db511c03fa45894d146905ba3408b3be3f5baa0 Author: Father Chrysostomos sprout@cpan.org Date: Sun Sep 23 12:42:15 2012 -0700
[perl #107000] Don’t leak if hh copying dies
Perl 5.14.2 as well as 5.16.1 (all Fedoras) are affected.
https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #1 from Petr Pisar ppisar@redhat.com --- Well, this is not complete fix. The upstream test suit fails on test added by the commit in blead as well as in 5.16.1.
https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #2 from Petr Pisar ppisar@redhat.com --- The blead issue was bug in build system. The 5.16.1 branch requires another commit:
commit 895cdc83ca4f8ad093074b3bd5d0fbc1d09f7628 Author: Father Chrysostomos sprout@cpan.org Date: Fri Sep 21 22:01:19 2012 -0700
Free iterator when freeing tied hash
Third commit will be good too:
commit aec0c0cc27651656899efeb7c4f64d2838a9cf9e Author: Father Chrysostomos sprout@cpan.org Date: Fri Sep 21 18:23:20 2012 -0700
Don’t leak deleted iterator when tying hash
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #3 from Fedora Update System updates@fedoraproject.org --- perl-5.16.3-262.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/perl-5.16.3-262.fc19
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #4 from Fedora Update System updates@fedoraproject.org --- perl-5.16.3-242.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/perl-5.16.3-242.fc18
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed In Version| |perl-5.16.3-270.fc20
--- Comment #5 from Petr Pisar ppisar@redhat.com --- We are not going to fix it in F17 because it's to risky.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #6 from Fedora Update System updates@fedoraproject.org --- perl-5.16.3-262.fc19, perl-Sys-Syslog-0.32-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- perl-5.16.3-242.fc18, perl-Sys-Syslog-0.32-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.
Product: Fedora https://bugzilla.redhat.com/show_bug.cgi?id=859910
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |CLOSED Resolution|--- |ERRATA Last Closed| |2013-05-02 09:11:35
perl-devel@lists.fedoraproject.org