Bug 787613

Summary: Memory leak evaluating version objects in boolean context
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, ppisar, psabata, rc040203, tcallawa
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
URL: https://rt.perl.org/rt3/Public/Bug/Display.html?id=109762
Whiteboard:
Fixed In Version: perl-5.14.2-195.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-23 02:23:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Upstream fix ported to 5.14.2
none
Upstream fix ported to 5.12.4 none

Description Petr Pisar 2012-02-06 10:27:04 UTC
Running following code with perl-5.14.2-194.fc16.x86_64 leaks memory:

$ perl -Mversion -wE 'while (1) { my $v = version->new("1.23"); my $b = !!$v }

This is should be fixed by commit bcb2959f0 in upstream.

Comment 1 Petr Pisar 2012-02-06 16:04:22 UTC
Created attachment 559669 [details]
Upstream fix ported to 5.14.2

Comment 2 Petr Pisar 2012-02-06 16:16:10 UTC
Fixed as perl-5.14.2-211.fc17 in F17.

Comment 3 Petr Pisar 2012-02-07 15:49:37 UTC
F16 affected.
F15 affected.

Comment 4 Fedora Update System 2012-02-07 16:47:41 UTC
perl-5.14.2-195.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/perl-5.14.2-195.fc16

Comment 5 Petr Pisar 2012-02-07 17:04:01 UTC
Created attachment 560014 [details]
Upstream fix ported to 5.12.4

Comment 6 Fedora Update System 2012-02-07 17:27:08 UTC
perl-5.12.4-165.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/perl-5.12.4-165.fc15

Comment 7 Fedora Update System 2012-02-08 02:26:15 UTC
Package perl-5.14.2-195.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-195.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-1429/perl-5.14.2-195.fc16
then log in and leave karma (feedback).

Comment 8 Fedora Update System 2012-02-23 02:23:08 UTC
perl-5.12.4-165.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2012-02-23 02:25:03 UTC
perl-5.14.2-195.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.