Skip Menu |

This queue is for tickets about the XML-Writer CPAN distribution.

Report information
The Basics
Id: 86082
Status: resolved
Priority: 0/
Queue: XML-Writer

People
Owner: joe [...] kafsemo.org
Requestors: vkatsikaros [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.623



Subject: memory leak at 0.620
Date: Wed, 12 Jun 2013 12:26:05 +0300
To: bug-XML-Writer [...] rt.cpan.org
From: Vangelis Katsikaros <vkatsikaros [...] gmail.com>
Hello First, I would like to thank you for the great work on XML::Writer. I have noticed a memory leak that shows with XML::Writer version >= 0.620. ============================ Reproduce the bug ============================ Run the attached perl script and with `top` monitor the process: * With 0.615 memory usage doesn't change and remains always in very small numbers * With 0.620 memory usage explodes to several hundreds of Ms and soon reaches Gs ============================ System details ============================ The bug shows up with XML-Writer versions 0.620, 0.621 and 0.622, but doesn't show not with 0.615 and 0.605 (I haven't tried between 0.615 and 0.605) Other information: $ perl -v This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi # lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 10.04.2 LTS Release: 10.04 Codename: lucid # uname -a Linux xxxxx 2.6.32-042stab076.8 #1 SMP Tue May 14 20:38:14 MSK 2013 x86_64 GNU/Linux Regards Vangelis Katsikaros

Message body is not shown because sender requested not to inline it.

Show quoted text
> Run the attached perl script and with `top` monitor the process: > * With 0.615 memory usage doesn't change and remains always in very > small numbers > * With 0.620 memory usage explodes to several hundreds of Ms and soon > reaches Gs
Thanks for the script -- I was able to reproduce it exactly as you reported. May I modify it and include it in XML::Writer, without restriction? It looks like this was due to a circular reference added in 0.620. I've made a change in this commit: https://github.com/josephw/xml-writer-perl/commit/8c20c80f7e62447975bf1934a8ef0a0ec6a5fd4a which seems to fix it. If you're able to confirm, that would be great; otherwise, I'll roll into into a bugfix release.
Subject: Re: [rt.cpan.org #86082] memory leak at 0.620
Date: Wed, 12 Jun 2013 18:55:05 +0300
To: bug-XML-Writer [...] rt.cpan.org
From: Vangelis Katsikaros <vkatsikaros [...] gmail.com>
Hi Joseph Thanks for the prompt answer. Yes, consider the script I attached to be under the public domain. You can freely use, modify, distribute the script, without any restrictions. I tested 8c20c80f7e62447975bf1934a8ef0a0ec6a5fd4a and indeed it looks to be working fine. Regards Vangelis On 06/12/2013 06:19 PM, Joseph Walton via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=86082 > >
>> Run the attached perl script and with `top` monitor the process: >> * With 0.615 memory usage doesn't change and remains always in very >> small numbers >> * With 0.620 memory usage explodes to several hundreds of Ms and soon >> reaches Gs
> > Thanks for the script -- I was able to reproduce it exactly as you reported. May I modify it and include it in XML::Writer, without restriction? > > It looks like this was due to a circular reference added in 0.620. I've made a change in this commit: > > https://github.com/josephw/xml-writer-perl/commit/8c20c80f7e62447975bf1934a8ef0a0ec6a5fd4a > > which seems to fix it. If you're able to confirm, that would be great; otherwise, I'll roll into into a bugfix release. >