Skip Menu |
 

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

Report information
The Basics
Id: 59683
Status: resolved
Priority: 0/
Queue: XML-Twig

People
Owner: Nobody in particular
Requestors: carcus88 [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 3.32
Fixed in: (no value)



Subject: Memory Leak
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
X-RT-Original-Encoding: utf-8
Content-Type: multipart/mixed; boundary="----------=_1280022267-2369-125"
Content-Length: 0
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: binary
Content-Length: 564
Download (untitled) / with headers
text/plain 564b
When trying to parse multiple XML files in one run I came across a memory leak. See the attached example script and data file. There seems to be no way to not make PERL continue to use memory. Given enough data this script will die from memory bloat. I have seeked the wisdom of the PERL monks and they where at a loss. They said to report a bug ticket. So here it is :) I may be doing this all wrong, in which I would love to be corrected so I can get my program to work as I need it to. I am trying to parse about 85 30+MB files in a single run with no success.
Subject: test_10000000_10099999.xml
MIME-Version: 1.0
Content-Type: text/xml; name="test_10000000_10099999.xml"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="test_10000000_10099999.xml"
Content-Transfer-Encoding: binary
Content-Length: 435264

Message body is not shown because it is too large.

Subject: memory_example.pl
MIME-Version: 1.0
Content-Type: text/x-perl; name="memory_example.pl"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="memory_example.pl"
Content-Transfer-Encoding: binary
Content-Length: 947
Download memory_example.pl
text/x-perl 947b
#!/usr/bin/perl -w use strict; use XML::Twig; my $inFile = 'test_10000000_10099999.xml'; if ( ! $inFile ) { die("No input file specified"); } if ( ! -f $inFile ) { die("file '$inFile' not found"); } for(my $x=0;$x<6;++$x) { print "Doing $x\n"; process($inFile); } exit 0; # # Process the file # sub process { $inFile =~ /data_(\d+)_(\d+)/; my $t= new XML::Twig( TwigHandlers=> { BIOG => \&BIOG }, ); $t->parsefile( $inFile ); $t->purge(); $t->dispose(); # Try to Free memory but does not work... } # # BIOG is XML element we are triggering # sub BIOG { my ($t, $BIOG)= @_; if ( ! checkBiog($BIOG->field('BIOG_NBR')) ) { print "Missing ". $BIOG->field('BIOG_NBR') . "\n"; } $t->purge(); $t->dispose(); return 1; } # # Check database for ID # sub checkBiog { my ($biog) = @_; return 1; }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Type: multipart/mixed; boundary="----------=_1280135234-2371-151"
Message-ID: <rt-3.8.HEAD-2371-1280135234-1735.59683-0-0 [...] rt.cpan.org>
X-RT-Original-Encoding: utf-8
Content-Length: 0
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 563
Download (untitled) / with headers
text/plain 563b
I can't reproduce the bug with perl 5.10.1 (with perl v5.10.1 (*) built for i486-linux-gnu-thread-multi). From looking at the Pelrmonks thread you are using 5.10, I suspect a bug in that version of Perl. I can't remember the bug reference, I'll look it up, and in hte meantime I am installing a perl 5.10.0 on my machine to test your code with it. If you can, see if you can test the code with 5.10.1 or 5.12.1 BTW, you went a little overboard with the purge/dispose ;--) You only need 1 call to purge once, in the element handler. See attached code. __ mirod
Subject: memory_example.pl
MIME-Version: 1.0
Content-Type: text/x-perl; name="memory_example.pl"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline; filename="memory_example.pl"
Content-Transfer-Encoding: binary
Content-Length: 921
Download memory_example.pl
text/x-perl 921b
#!/usr/bin/perl -w use strict; use XML::Twig; my $inFile = 'test_10000000_10099999.xml'; if ( ! $inFile ) { die("No input file specified"); } if ( ! -f $inFile ) { die("file '$inFile' not found"); } #for(my $x=0;$x<6;++$x) { for my $x (1..10) { print "Doing $x\n"; process($inFile); } exit 0; # # Process the file # sub process { $inFile =~ /data_(\d+)_(\d+)/; my $t= new XML::Twig( TwigHandlers=> { BIOG => \&BIOG }, ); $t->parsefile( $inFile ); # $t->purge(); # $t->dispose(); # Try to Free memory but does not work... } # # BIOG is XML element we are triggering # sub BIOG { my ($t, $BIOG)= @_; if ( ! checkBiog($BIOG->field('BIOG_NBR')) ) { print "Missing ". $BIOG->field('BIOG_NBR') . "\n"; } $t->purge(); #$t->dispose(); return 1; } # # Check database for ID # sub checkBiog { my ($biog) = @_; return 1; }
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2370-1280136791-1574.59683-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 130
Download (untitled) / with headers
text/plain 130b
Indeed I was able to reproduce the bug with 5.10.0. It might be due to RT #56908 "A weak reference to a hash would leak" __ mirod
From carcus88 [...] gmail.com Mon Jul 26 10: 44:04 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-9.912 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2370-1280136792-1369.59683-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-59683 [...] rt.cpan.org> <rt-3.8.HEAD-2370-1280136792-1369.59683-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <AANLkTik=QN1ubt20ZNXrBabLKW1MtLvRb808+CJ_6Q4u [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=0016e659f49c337ad3048c4b7047
X-Spam-Score: -9.912
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=carcus88 [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 533CB240A85 for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 10:44:04 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bSXMTAZCLXgZ for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 10:43:58 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 93B4C240A12 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 10:43:58 -0400 (EDT)
Received: (qmail 10484 invoked by uid 103); 26 Jul 2010 14:45:52 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Jul 2010 14:45:52 -0000
Received: from mail-ww0-f52.google.com (HELO mail-ww0-f52.google.com) (74.125.82.52) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 26 Jul 2010 07:45:51 -0700
Received: by wwc33 with SMTP id 33so212322wwc.21 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 07:45:47 -0700 (PDT)
Received: by 10.227.156.12 with SMTP id u12mr7411127wbw.213.1280155539700; Mon, 26 Jul 2010 07:45:39 -0700 (PDT)
Received: by 10.216.188.8 with HTTP; Mon, 26 Jul 2010 07:45:39 -0700 (PDT)
Delivered-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #59683] Memory Leak
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Pl8HslUj3+VkBvGzBUn1fHfOApCCTW16oQZKpvCBNKUFNT6W2zXmHwhfMJr48x/6jX aeK28zXL1oSOeopSlHJGjXnXK1V279HKYirIiJoFC3Zcpuh8qaFURclBA627803Dm5r1 yNqYEsuEgWCvBxsSOLZRTK8TezyqO2++lgAGw=
Return-Path: <carcus88 [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=eW8+Da0uJ8TC4OBFO6B17MIR6Zq5nkdqC4YMMGEc4kg=; b=mCOQEswRkKLRxq9AcQT1bGtjiPvd1dlALiRYiFVFc3BfwqP87M4bzKE86J+MSy908n WF9aa0I4PycSocm/DCclPjouNzdnRx8fROmfX5q09GFJXD1IH1WMmmnv5dT3UHIBpUdZ rGVIGKQWqhF99ReNm1JMB6qUlqKUxjwb4eypA=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
X-RT-Mail-Extension: xml-twig
Date: Mon, 26 Jul 2010 10:45:39 -0400
X-Spam-Level:
To: bug-XML-Twig [...] rt.cpan.org
From: Mark Mitchell <carcus88 [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-2367-1280155559-1792.59683-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 554
Download (untitled) / with headers
text/plain 554b
Upgraded to 5.10.1 from ActiveState and the problem has gone away. The script now holds a steady memory footprint around 18 MB where before it would increase a few hundred KB per second. Thanks so much for your quick reply, I will post the fix to the Perlmonks thread. On Mon, Jul 26, 2010 at 5:33 AM, MIROD via RT <bug-XML-Twig@rt.cpan.org>wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > > > Indeed I was able to reproduce the bug with 5.10.0. It might be due to > RT #56908 "A weak reference to a hash would leak" > > __ > mirod >
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 990
From xmltwig [...] gmail.com Mon Jul 26 12: 16:42 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-9.913 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2367-1280155560-1512.59683-5-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-59683 [...] rt.cpan.org> <rt-3.8.HEAD-2370-1280136792-1369.59683-6-0 [...] rt.cpan.org> <AANLkTik=QN1ubt20ZNXrBabLKW1MtLvRb808+CJ_6Q4u [...] mail.gmail.com> <rt-3.8.HEAD-2367-1280155560-1512.59683-5-0 [...] rt.cpan.org>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <AANLkTimLuf4NWHKDj1n1XmxFyaHgq8weDPqkajDLCHkG [...] mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
X-RT-Original-Encoding: utf-8
X-Spam-Score: -9.913
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=xmltwig [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 35FEC240A57 for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 12:16:42 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GRR-4Rg9fscB for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 12:16:39 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 8DCA62409A6 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 12:16:39 -0400 (EDT)
Received: (qmail 27261 invoked by uid 103); 26 Jul 2010 16:18:33 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Jul 2010 16:18:33 -0000
Received: from mail-bw0-f50.google.com (HELO mail-bw0-f50.google.com) (209.85.214.50) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 26 Jul 2010 09:18:31 -0700
Received: by bwz18 with SMTP id 18so3157022bwz.9 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 09:18:27 -0700 (PDT)
Received: by 10.204.81.39 with SMTP id v39mr5595481bkk.149.1280161104933; Mon, 26 Jul 2010 09:18:24 -0700 (PDT)
Received: by 10.204.80.21 with HTTP; Mon, 26 Jul 2010 09:18:24 -0700 (PDT)
Delivered-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #59683] Memory Leak
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=CVOyyL/TnxBYZ7nqmESgLaPoIFI+vaCsfLLUOTUv3btgF0gObcFFLSbCrRcIOcfTZG nvMk51gsUklnIjwefYWK3SO1q/O1Ha0Xnf/bxu51zj8XymixSKz8iz+ZW7m6spLcF55N 6/hNjSuXKi2U0SYxpbKl7S7CelnEbOcDi2WBM=
Return-Path: <xmltwig [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=F9fS/Y/qehVPFXvtGDbLbrQHc8s+A2v/VqFmFoIrJ2s=; b=GtQKMJ9Fy5yPYUN4qlXzR8kAUGgRgV/V4gtKzqYuU2NfbaDL1MqhNRK7r6h8taMKWM f2QnR3OqBtY5YSGM5UY5Nz3K1/JD7/x0lf6sYKy+j5ayTfrAwLsHpbQJyqIJNYis7yzE o8CeS0vMHF4vleDsoKd04mvmlFh7SJPU6eZzM=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
X-RT-Mail-Extension: xml-twig
Date: Mon, 26 Jul 2010 18:18:24 +0200
X-Spam-Level:
To: bug-XML-Twig [...] rt.cpan.org
Content-Transfer-Encoding: quoted-printable
From: Michel Rodriguez <xmltwig [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-2371-1280161117-953.59683-0-0 [...] rt.cpan.org>
Content-Length: 1007
Download (untitled) / with headers
text/plain 1007b
I usually monitor perlmonks, but I was busy this week and missed the thread, sorry. It's a good thing you mentioned the version of perl you used, I will add a warning to the docs in the next version of the module. -- mirod On Mon, Jul 26, 2010 at 4:46 PM, Mark Mitchell via RT <bug-XML-Twig@rt.cpan.org> wrote: Show quoted text
>       Queue: XML-Twig >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > > > Upgraded to 5.10.1 from ActiveState and the problem has gone away. The > script now holds a steady memory footprint around 18 MB where before it > would increase a few hundred KB per second. > Thanks so much for your quick reply, I will post the fix to the Perlmonks > thread. > > > On Mon, Jul 26, 2010 at 5:33 AM, MIROD via RT <bug-XML-Twig@rt.cpan.org>wrote: >
>> <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > >> >> Indeed I was able to reproduce the bug with 5.10.0. It might be due to >> RT #56908 "A weak reference to a hash would leak" >> >> __ >> mirod >>
> >
-- mirod
From carcus88 [...] gmail.com Mon Jul 26 12: 24:38 2010
MIME-Version: 1.0
X-Spam-Status: No, score=-9.912 tagged_above=-99.9 required=10 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-8, SPF_NEUTRAL=0.686] autolearn=ham
In-Reply-To: <rt-3.8.HEAD-2371-1280161118-1629.59683-6-0 [...] rt.cpan.org>
X-Spam-Flag: NO
References: <RT-Ticket-59683 [...] rt.cpan.org> <rt-3.8.HEAD-2370-1280136792-1369.59683-6-0 [...] rt.cpan.org> <AANLkTik=QN1ubt20ZNXrBabLKW1MtLvRb808+CJ_6Q4u [...] mail.gmail.com> <rt-3.8.HEAD-2367-1280155560-1512.59683-5-0 [...] rt.cpan.org> <AANLkTimLuf4NWHKDj1n1XmxFyaHgq8weDPqkajDLCHkG [...] mail.gmail.com> <rt-3.8.HEAD-2371-1280161118-1629.59683-6-0 [...] rt.cpan.org>
X-Virus-Checked: Checked by ClamAV on 16.mx.develooper.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Message-ID: <AANLkTimhrpu4AiD7wjPLcZRe9y6Bsy16=_kNLAYW5cSG [...] mail.gmail.com>
Content-Type: multipart/alternative; boundary=0016e6d7e0125df680048c4cd8ad
X-Spam-Score: -9.912
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] gmail.com
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=carcus88 [...] gmail.com
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 504FD240A43 for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 12:24:38 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ATNI-5ZZ7cSW for <cpan-bug+XML-Twig [...] hipster.bestpractical.com>; Mon, 26 Jul 2010 12:24:36 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 2DE722409A6 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 12:24:36 -0400 (EDT)
Received: (qmail 28603 invoked by uid 103); 26 Jul 2010 16:26:30 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 26 Jul 2010 16:26:30 -0000
Received: from mail-ww0-f52.google.com (HELO mail-ww0-f52.google.com) (74.125.82.52) by 16.mx.develooper.com (qpsmtpd/0.80) with ESMTP; Mon, 26 Jul 2010 09:26:26 -0700
Received: by wwc33 with SMTP id 33so319552wwc.21 for <bug-XML-Twig [...] rt.cpan.org>; Mon, 26 Jul 2010 09:26:22 -0700 (PDT)
Received: by 10.216.137.101 with SMTP id x79mr7659397wei.48.1280161582282; Mon, 26 Jul 2010 09:26:22 -0700 (PDT)
Received: by 10.216.188.8 with HTTP; Mon, 26 Jul 2010 09:26:22 -0700 (PDT)
Delivered-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #59683] Memory Leak
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=Xpd7p3L3TDJmq0BWu8KPoiQ4foNXKPjXA7+SaN5hKFp9B3Ujv9wcHaDQS95SR//axB cBjf5buSB+N//m0GqcmnTTwlohYlt11UeS3qfO95s/HOCu2LFysurNJwCtJ495Oq8jsI iLmiXPjrnF8Ihsk8EO385Y1VJ+iYKTuJD6zm0=
Return-Path: <carcus88 [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=uQ0QlprYup24QVk0I4l6v1lH3AFmQ4DFSWvpkxqZzdM=; b=NPdz9fnNMY05F0W2Hrt0aO/UrMu4HYzEeeopxy6CiuyAD6bm5uhllwVKbfzkq3vWyU Z6Cc2Wv5hfbw7hwbqR5z4e4WviTXSDsBTGU6jzmQaKsZpQrH8uDnqHAZd6zMkQhvtln0 p/4lYdAmX1w6489h3scvsusIF/IFshJKQHUc0=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: cpan-bug+XML-Twig [...] hipster.bestpractical.com
X-RT-Mail-Extension: xml-twig
Date: Mon, 26 Jul 2010 12:26:22 -0400
X-Spam-Level:
To: bug-XML-Twig [...] rt.cpan.org
From: Mark Mitchell <carcus88 [...] gmail.com>
RT-Message-ID: <rt-3.8.HEAD-2366-1280161593-593.59683-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
X-RT-Original-Encoding: utf-8
Content-Length: 1458
Download (untitled) / with headers
text/plain 1.4k
Its cool, I'm just glad it was an easy fix, I've been going crazy for a week thinking it was my code or Twig.pm Thanks again for the quick response, you just saved me from another week of trying to figure this out. - Mark On Mon, Jul 26, 2010 at 12:18 PM, xmltwig@gmail.com via RT < bug-XML-Twig@rt.cpan.org> wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > > > I usually monitor perlmonks, but I was busy this week and missed the > thread, sorry. > > It's a good thing you mentioned the version of perl you used, I will > add a warning to the docs in the next version of the module. > > -- > mirod > > On Mon, Jul 26, 2010 at 4:46 PM, Mark Mitchell via RT > <bug-XML-Twig@rt.cpan.org> wrote:
> > Queue: XML-Twig > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > > > > > Upgraded to 5.10.1 from ActiveState and the problem has gone away. The > > script now holds a steady memory footprint around 18 MB where before it > > would increase a few hundred KB per second. > > Thanks so much for your quick reply, I will post the fix to the Perlmonks > > thread. > > > > > > On Mon, Jul 26, 2010 at 5:33 AM, MIROD via RT <bug-XML-Twig@rt.cpan.org > >wrote: > >
> >> <URL: https://rt.cpan.org/Ticket/Display.html?id=59683 > > >> > >> Indeed I was able to reproduce the bug with 5.10.0. It might be due to > >> RT #56908 "A weak reference to a hash would leak" > >> > >> __ > >> mirod > >>
> > > >
> > > > -- > mirod > >
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: utf-8
Content-Length: 2446


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.