Skip Menu |

This queue is for tickets about the Text-Iconv CPAN distribution.

Report information
The Basics
Id: 31101
Status: open
Priority: 0/
Queue: Text-Iconv

People
Owner: Nobody in particular
Requestors: mcousin [...] sigma.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in:
  • 1.4
  • 1.7
Fixed in: (no value)



Subject: memory leak
I'm having a memory leak using Text::Iconv. System : Debian, Sid I tried with the provided package (libtext-iconv-perl 1.4-3) and compiling it myself (1.7). my libc6 is : 2.7-2 Perl is : v5.8.8 OS is : Linux postgres-isr 2.6.18-1-xen-amd64 #1 SMP Sat Oct 21 19:25:12 CEST 2006 x86_64 GNU/Linux (also reproduced with Linux 2.6.23-1-686 #1 SMP Mon Nov 19 01:08:26 UTC 2007 i686 GNU/Linux) Here's the code : #!/usr/bin/perl use Text::Iconv; $converter = Text::Iconv->new("iso8859-1", "utf8"); while(1) { $converted = $converter->convert("Text to convert"); } Here, the memory usage is skyrocketing when doing this. Of course, this is not the real code, but when converting a big stream, the memory leak is very big (my process goes well over 3GB of memory used)
Subject: Re: [rt.cpan.org #31101] memory leak
Date: Sat, 01 Dec 2007 11:48:22 +0100
To: bug-Text-Iconv [...] rt.cpan.org
From: Michael Piotrowski <mxp [...] dynalabs.de>
On 2007-11-30, "Marc Cousin via RT" <bug-Text-Iconv@rt.cpan.org> wrote: Show quoted text
> I'm having a memory leak using Text::Iconv. > System : Debian, Sid
[...] Show quoted text
> Here, the memory usage is skyrocketing when doing this. Of course, > this is not the real code, but when converting a big stream, the > memory leak is very big (my process goes well over 3GB of memory used)
Yes, I can reproduce this (on NetBSD). I'll have a look at it as soon as possible. Thank you for the report -- Michael Piotrowski, M.A. <mxp@dynalabs.de> Public key at <http://www.dynalabs.de/mxp/pubkey.txt> (ID 0x1614A044)