Subject: | Memory leak in Net:SSH2::poll() |
Date: | Fri, 01 Jun 2007 15:20:05 +0200 |
To: | bug-Net-SSH2 [...] rt.cpan.org |
From: | Kenneth Vestergaard Schmidt <kvs [...] binarysolutions.dk> |
Hi.
Net:SSH2 v0.10 seems to be leaking some memory on each call to poll(). I
haven't been able to determine if it's in the .pm, the .xs or the .so.
I've put a script which demonstrates the bug at
http://dev.binsol.dk/~kvs/net-ssh2-leak.pl
I've tried reinitialising @poll on each run through the main-loop, and
I've tried not using $chan->eof, so that shouldn't be it.
I've disabled reading the data on the channel, since this'll make the
memory-leak that much more apparent - it just gobbles up RAM.
This is on an amd64 FreeBSD 6.2-system, with perl 5.8.8 and
libssh2-0.14.
Let me know if I missed anything, or can do/test something.
--
Best Regards
Kenneth Schmidt