Bug 1063330
| Summary: | memory leak when including a file with "use utf8" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Petr Pisar <ppisar> | ||||
| Component: | perl | Assignee: | perl-maint-list | ||||
| Status: | CLOSED ERRATA | QA Contact: | Martin Kyral <mkyral> | ||||
| Severity: | medium | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 7.0 | CC: | isenfeld, jorton, jplesnik, mkyral | ||||
| Target Milestone: | rc | Keywords: | Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| URL: | https://rt.perl.org/Public/Bug/Display.html?id=121200 | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | perl-5.16.3-288.el7 | Doc Type: | Bug Fix | ||||
| Doc Text: |
Cause:
Including file with "use utf8"
Consequence:
When perl includes a file with "use utf8" and text constants it leaks memory.
Fix:
Upstream fix that the temp utf8 copy of namepv is correctly freeing.
Result:
Including "use utf8" and constant does not leak.
|
Story Points: | --- | ||||
| Clone Of: | 1062576 | Environment: | |||||
| Last Closed: | 2016-11-04 00:15:38 UTC | Type: | Bug | ||||
| 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
Petr Pisar
2014-02-10 14:11:58 UTC
Created attachment 1086911 [details]
Upstream fix applicable to 5.16.3
How reproduce:
1) Install perl
2) Create test data file
x.inc contains:
-------------------------
use utf8;
$x='x';
-------------------------
3) Create 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;
}
-------------------------
4) Run the test and watch the memory usage
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2191.html |