New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak with IO::Socket::INET #5867
Comments
From swift@post7.tele.dkCreated by swift@post7.tele.dkWhen I use IO::Socket::INET for socket communication i experience an memory leak! Program flow for the client: These 4 steps is repeated - and for each time they are executed the program EATS 56KB og memory. Below I have attached the CLIENT and SERVER program. CLIENT: (In this program the memory leak appears!) use strict; SERVER: (This is OK - with no memory problems) use strict; Perl Info
|
From nick.ing-simmons@elixent.comSwift@Post7.Tele.Dk <perl5-porters@perl.org> writes:
I think you have re-discovered a bug in :stdio layer in perl5.8.0. Can you please try running the program which leaks Or add use open ':perlio'; To your script.
|
From @lizmatAt 05:21 PM 8/27/02 +0100, Nick Ing-Simmons wrote:
Running the client part through valgrind indicates a memory leak: ==13652== 161 bytes in 17 blocks are definitely lost in loss record 6 of 16 Oddly enough, vg_clientfuncs is part of valgrind. I'm not sure how to Liz |
From swift@mail.dkHi Liz. I have tried something else. Michael -----Oprindelig meddelelse----- At 05:21 PM 8/27/02 +0100, Nick Ing-Simmons wrote:
Running the client part through valgrind indicates a memory leak: ==13652== 161 bytes in 17 blocks are definitely lost in loss record 6 of 16 Oddly enough, vg_clientfuncs is part of valgrind. I'm not sure how to Liz |
From nick@ing-simmons.netElizabeth Mattijsen <liz@dijkmat.nl> writes:
It indicates something very odd!
Since when did libc's strcpy start calling main() ?
valgrind is seriously confused?
|
From @lizmatAt 08:49 PM 8/27/02 +0100, Nick Ing-Simmons wrote:
It's repeatable. I though it might have had something to do with a signal
Possibly. Or stuff is so messed up that valgrind gets confused? I'll Liz |
From nick@ing-simmons.netElizabeth Mattijsen <liz@dijkmat.nl> writes:
Modifying client to run for 100 loops (taking sleeps out) ==8757== 36400 bytes in 100 blocks are still reachable in loss record 1383 of 1385 That is _all_ the IoOFP's for the socket calls. Unrelated but intestesingly I also see a bunch of things "like" this: ==8802== 9 bytes in 1 blocks are definitely lost in loss record 13 of 53 Is the "new" CONST stuff playing up or does 5.8 do that as well? -- |
From nick@ing-simmons.netElizabeth Mattijsen <liz@dijkmat.nl> writes:
Not by me. valgrind-20020329 on SuSE 8.0 Works fine - I have taken all the sleep() calls in scripts out though. FWIW you get a lot less noise about leaks with PERL_DESTRUCT_LEVEL=2 valgrind ... as perl does more cleanup.
|
From @lizmatAt 09:39 PM 8/27/02 +0100, Nick Ing-Simmons wrote:
Still the same here, with valgrind-1.0.0 and perl 5.8.0 with
Done that too.
I don't see a difference, what should I be seeing? Liz |
From @lizmatAt 09:32 PM 8/27/02 +0100, Nick Ing-Simmons wrote:
Is this with a threaded or unthreaded Perl? Liz |
From nick.ing-simmons@elixent.comElizabeth Mattijsen <liz@dijkmat.nl> writes:
Threaded.
|
From danielt@camelot.deAre there any news on this topic? use open ':perlio'; doesn't work, and setting PERLIO systemwide on each |
From @wolfsageIs this issue still valid? I see no leak on perl5.8.8 (non-threaded) and perl5.10.1 (threaded). It's possible this is because of a difference in configuration, but I |
From @wolfsageOn Sun Dec 11 14:43:48 2011, alh wrote:
Whoops, cc perl5-porters. -- Matthew Horsfall (alh) |
From @wolfsageOn Sun Dec 11 14:43:48 2011, alh wrote:
I installed 5.8.0 and 5.8.3 with perlbrew; 5.8.0 reproduces the leak I believe that this can be closed as fixed. I will wait a few weeks for Thanks, -- Matthew Horsfall (alh) |
From @wolfsageThis appears to have been fixed since at least Perl-5.8.3. |
From [Unknown Contact. See original ticket]This appears to have been fixed since at least Perl-5.8.3. |
@wolfsage - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#16785 (status was 'resolved')
Searchable as RT16785$
The text was updated successfully, but these errors were encountered: