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 leaking in perl_destruct and perl_free ? #6487
Comments
From Haili.Ma@netiq.comHi, Dear Experts: # include <stdio.h> |
From Tom.Widgery@swi.galileo.comDear Experts. I am having a problem very similar to the one described in ticket #22121 I #include <EXTERN.h> static PerlInterpreter *my_perl; EXTERN_C void xs_init _((void)); EXTERN_C void boot_DynaLoader _((CV* cv)); EXTERN_C void /* DynaLoader is a special case */ /*************************************************************************** dSP; memcpy (temp, tempPop, 10); PUTBACK; char* interface(char pseudo[6], char *queue) char *my_argv[] = { "", "dataquery.pl"}; perl_run(my_perl); Perldatabase(pseudo, queue); perl_destruct (my_perl); return (queue); } And the perl script running looks like this #!/perl5/bin/perl sub database my %dbm; my @list=split ("__",$dbm{"$pseudo"}); untie my %dbm; push( @list, scalar( @list ) ); return @list; } This seems to cause a rather large memory leak - I have traced through this My thanks for your time I hope this can be resolved. Tom Tom Widgery The information in this electronic mail message is sender's business |
From Haili.Ma@netiq.comI have memory leaking problem when my application keeps creating perl -----Original Message----- Dear Experts. I am having a problem very similar to the one described in ticket #22121 I #include <EXTERN.h> static PerlInterpreter *my_perl; EXTERN_C void xs_init _((void)); EXTERN_C void boot_DynaLoader _((CV* cv)); EXTERN_C void /* DynaLoader is a special case */ /*************************************************************************** dSP; memcpy (temp, tempPop, 10); PUTBACK; char* interface(char pseudo[6], char *queue) char *my_argv[] = { "", "dataquery.pl"}; perl_run(my_perl); Perldatabase(pseudo, queue); perl_destruct (my_perl); return (queue); } And the perl script running looks like this #!/perl5/bin/perl sub database my %dbm; my @list=split ("__",$dbm{"$pseudo"}); untie my %dbm; push( @list, scalar( @list ) ); return @list; } This seems to cause a rather large memory leak - I have traced through this My thanks for your time I hope this can be resolved. Tom Tom Widgery The information in this electronic mail message is sender's business |
From rgreab@fx.ro"Widgery, Tom" wrote:
Please try your code with a perl configured with -Dusemultiplicity. If you can't configure and use perl with -Dusemultiplicity, then check while(1) { -- |
From Haili.Ma@netiq.comKeep creating new perl interpreter and freeing it always causes me leaking. -----Original Message----- "Widgery, Tom" wrote:
Please try your code with a perl configured with -Dusemultiplicity. If you can't configure and use perl with -Dusemultiplicity, then check while(1) { -- |
From @jkeenanOn Tue Aug 05 18:16:54 2003, Haili.Ma@netiq.com wrote:
This ticket has been languishing for many years. It would benefit from Thank you very much. |
Migrated from rt.perl.org#22121 (status was 'open')
Searchable as RT22121$
The text was updated successfully, but these errors were encountered: