Bug 767597

Summary: Memory leak with non-matching named captures
Product: [Fedora] Fedora Reporter: Petr Pisar <ppisar>
Component: perlAssignee: Petr Pisar <ppisar>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: cweyl, iarnell, kasal, lkundrak, mmaslano, rc040203, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=78266
Whiteboard:
Fixed In Version: perl-5.14.2-193.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 767608 (view as bug list) Environment:
Last Closed: 2012-01-02 21:50:38 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Fix ported for perl-5.14.2 none

Description Petr Pisar 2011-12-14 13:21:38 UTC
Referring non-matched named capture leaks memory:

for (1..10_000_000) {
  if ("foo" =~ /(foo|(?<capture>bar))?/) {
    my $capture = $+{capture}
  }
}


This is tracked by upstream (https://rt.perl.org/rt3/Public/Bug/Display.html?id=78266) and fixed by commit 7402016d87474403eea5c52dc2c071f68cbbe25c.

Comment 1 Petr Pisar 2011-12-14 13:36:02 UTC
F17 (perl-5.14.2-205.fc17.x86_64) affected.
F16 (perl-5.14.2-191.fc16.x86_64) affected.
F15 (perl-5.12.4-163.fc15.x86_64) affected.

Comment 2 Petr Pisar 2011-12-14 14:25:45 UTC
Created attachment 546750 [details]
Fix ported for perl-5.14.2

Comment 3 Fedora Update System 2011-12-14 17:53:55 UTC
perl-5.14.2-192.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/perl-5.14.2-192.fc16

Comment 4 Fedora Update System 2011-12-14 17:55:17 UTC
perl-5.12.4-164.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/perl-5.12.4-164.fc15

Comment 5 Fedora Update System 2011-12-14 23:29:05 UTC
Package perl-5.14.2-192.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing perl-5.14.2-192.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2011-17088/perl-5.14.2-192.fc16
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2011-12-21 13:08:02 UTC
perl-5.14.2-193.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/perl-5.14.2-193.fc16

Comment 7 Fedora Update System 2012-01-02 21:50:38 UTC
perl-5.12.4-164.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2012-01-07 22:57:15 UTC
perl-5.14.2-193.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.