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
threads creation memory leak #8619
Comments
From @santtuThis is a bug report for perl from santtu@iki.fi, The following simple program causes memory leak at about 134 kB/s - use strict; while (1) { sub away { This leak is simple to reproduce, but not so easy to detect. The I have reproduced this on Fedora Core 5 stock perl (shown here in I also run valgrind on DEBUGGING perl (*not* the fc5 stock perl) with use strict; my $start = time; sub away { And the results are: ==13941== Memcheck, a memory error detector. Flags: This perlbug was built using Perl v5.8.8 in the Red Hat build system. Site configuration information for perl v5.8.8: Configured by Red Hat, Inc. at Sun Jun 4 19:33:43 EDT 2006. Summary of my perl5 (revision 5 version 8 subversion 8) configuration: Locally applied patches: @INC for perl v5.8.8: Environment for perl v5.8.8: |
From @santtuHere's a graph showing memory usage of the test program (sample interval |
@santtu - Status changed from 'new' to 'open' |
From @jdheddenSanteri Paavolainen reported:
Running through the stack trace we have: ==13941== by 0x8110D1F: perl_clone (sv.c:11074) ==13941== by 0x810CF87: Perl_sv_dup (sv.c:10179) ==13941== by 0x810DB59: Perl_sv_dup (sv.c:10281) Am I correct in interpreting this to mean that the leak is caused by In perl_destruct, we have: The code looks very different in blead. Does that indicate that this (If I'm not being helpful, then please just ignore me.) __________________________________________________ |
From @santtuI just realized that using multiple threads is what causes noise in the use threads; while (1) { sub away { With this test it is easy to see memory increase in just a few minutes |
From @iabynOn Wed, Sep 27, 2006 at 09:16:18AM +0300, Santeri Paavolainen wrote:
This doesn't leak with bleedperl, so I guess it's been fixed: sometime -- |
p5p@spam.wizbit.be - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#40416 (status was 'resolved')
Searchable as RT40416$
The text was updated successfully, but these errors were encountered: