Skip Menu |

This queue is for tickets about the IO-Socket-SSL CPAN distribution.

Report information
The Basics
Id: 120467
Status: rejected
Priority: 0/
Queue: IO-Socket-SSL

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

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



Subject: memory leak in version 2.047
Date: Wed, 1 Mar 2017 15:55:21 +0100
To: bug-IO-Socket-SSL [...] rt.cpan.org
From: Andrzey <cholewiusz [...] gmail.com>
Hi, Memory leak with perl-5.24.1 uname -a Linux b-gr-dev.v.l 3.2.50-vs2.3.2.16-beng #1 SMP Fri Aug 30 16:43:33 BST 2013 x86_64 GNU/Linux $> perlbrew list perl-5.22.1 * perl-5.24.1 $> perl -MIO::Socket::SSL -e 'print $IO::Socket::SSL::VERSION' 2.047 $> ps aux | grep perl | grep -v grep | grep HTTP errno 9636 2.2 0.0 57252 12696 pts/109 S+ 13:59 0:00 perl -MHTTP::Tiny -e $ua=HTTP::Tiny->new(); for(1..100){ $ua->get("https://sth-huge-page/"); print STDERR "."; } FEW requests later: ps aux | grep perl | grep -v grep | grep HTTP errno 9636 0.3 0.0 58496 14064 pts/109 S+ 13:59 0:00 perl -MHTTP::Tiny -e $ua=HTTP::Tiny->new(); for(1..100){ $ua->get("https://sth-huge-page/"); print STDERR "."; } ... and RSS still is growing. The same with LWP::UserAgent. When downgrade to version 2.027 ( used in perl-5.22.1 ) then memory don`t leak. cpanm --reinstall IO-Socket-SSL-2.027.tar.gz ------ regards Andrzej Cholewiusz
Thanks for the bug report. Unfortunately, I'm unable to reproduce your problem with the following test, which is based on yours: perl -MHTTP::Tiny -e \ '$ua=HTTP::Tiny->new; for(1..1000){ $ua->get("https://www.heise.de/"); system("ps -q$$ -o rss"); }' The reported RSS is mostly stable, sometimes gets a bit bigger and then decreases again a bit but on average it stays the same. Since in your testing you've not only changed the version of IO::Socket::SSL but also the version of Perl and probably of other modules like Net::SSLeay, I would ask you to reproduce your problem by keeping everything except the version of IO::Socket::SSL constant and ideally narrow down the problem to a specific version of IO::Socket::SSL this way. If you can narrow down the problem to a specific version of IO::Socket::SSL please provide me with enough information to reproduce the issue, i.e. at least the version of IO::Socket::SSL which introduced the problem, the version of Net::SSLeay you've used and the build options for Perl (i.e. perl -V). Regards, Steffen
Since the problem could not be reproduced by me and the requested help to reproduce the problem and to find out if it is even caused by IO::Socket::SSL did not happen, the bug report will be rejected for now. It can be reopened if the necessary information are provided.