Red Hat Bugzilla – Bug 142972
Memory leak in the XML::Parser perl module.
Last modified: 2007-11-30 17:07:05 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3)
Description of problem:
There is a known memory leak in the version of perl's XML::Parser
module that is shipped with RHEL3, see the changelog for the current
I can verify that this memory leak is real. I have a long script that
I am running as a daemon which uses the XML::Parser module. After
only a few days of running it doubles in memory, so I was forced to
use a cronjob to constantly restart it. Then I checked if there was a
newer version on CPAN and replaced the RHEL3 version with the latest
version I downloaded there. The current version from CPAN completely
eliminated my memory leak problem.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Long running daemon script that is constantly parsing xml data.
Actual Results: The perl process memory footprint doubles after
Expected Results: The memory footprint should stabilize after some time.
This is a known memory leak that was fixed over a year ago in CPAN.
This is now fixed with perl-XML-Parser-2.31-16.EL3 - memory leak fix backported
from 2.34 .
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.