Re: Memory leak with NativeCall

2018-01-23 Thread David E.
Done, thanks. https://github.com/rakudo/rakudo/issues/1440 On Mon, Jan 22, 2018 at 4:14 PM, Elizabeth Mattijsen wrote: > This feels like a bug to me. So please make report this as a potential > issue, either by mailing rakudo...@perl.org, or by creating an issue on > http://github.com/rakudo/r

Re: Memory leak with NativeCall

2018-01-22 Thread Elizabeth Mattijsen
This feels like a bug to me. So please make report this as a potential issue, either by mailing rakudo...@perl.org, or by creating an issue on http://github.com/rakudo/rakudo . Thank you! > On 22 Jan 2018, at 01:24, David E. wrote: > > I'm not certain where to report this (ie: rakudo vs Moar

Re: Memory leak with NativeCall

2018-01-22 Thread David E.
It looks like the String may not be at fault - changing the argument to an int32 pointer results in the same memory leak. In either case, the variable is allocated on the static in the C function and would be automatically freed when the function returns, so the problem has to be some temporary at

Re: Memory leak with NativeCall

2018-01-21 Thread Michael Stemle
I believe that this is actually a result of Perl 6 delegating responsibility of memory management for arguments passed to callbacks from native code to the native code. I wonder if the issue is that you're sending a constant which is being reallocated and recreated and never cleared out from th

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 10:25 PM, wrote: > > > On 01/10/2015 08:39 PM, Gabor Szabo wrote: > > Well, whatever it is, this means that the web application fills all > > the memory and crashes every 30-40 requests. > > Luckily there are not many people who read the site :) > > > > Gabor > > > > > > I'

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
On 01/10/2015 08:39 PM, Gabor Szabo wrote: > Well, whatever it is, this means that the web application fills all > the memory and crashes every 30-40 requests. > Luckily there are not many people who read the site :) > > Gabor > > I'm expecting you're talking about https://github.com/szabgab/Per

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 9:01 PM, wrote: > > On 01/10/2015 07:53 PM, Gabor Szabo wrote: > > On Sat, Jan 10, 2015 at 7:57 PM, wrote: > >> That happens because the result of the for statement is a list that is >> then sunk; it contains one scalar and one Int object for each iteration >> and rakudo

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
On 01/10/2015 07:53 PM, Gabor Szabo wrote: > On Sat, Jan 10, 2015 at 7:57 PM, > wrote: > > That happens because the result of the for statement is a list that is > then sunk; it contains one scalar and one Int object for each > iteration > and rakudo doesn

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread Gabor Szabo
On Sat, Jan 10, 2015 at 7:57 PM, wrote: > That happens because the result of the for statement is a list that is > then sunk; it contains one scalar and one Int object for each iteration > and rakudo doesn't yet know to throw it away immediately. > The problem happens even without the internal $

Re: Memory leak in Rakudo Star 2014.12.1 ?

2015-01-10 Thread timo
That happens because the result of the for statement is a list that is then sunk; it contains one scalar and one Int object for each iteration and rakudo doesn't yet know to throw it away immediately. Regards - Timo

Re: memory leak I think.

2013-12-20 Thread Richard Hainsworth
On 12/19/2013 10:32 PM, Patrick R. Michaud wrote: On Thu, Dec 19, 2013 at 11:27:32AM +0800, Richard Hainsworth wrote: I've been running a perl6 program that runs through a loop, dumps intermediate results and starts again with new initialisation values. [...] Looking at system resources, the pro

Re: memory leak I think.

2013-12-19 Thread Patrick R. Michaud
On Thu, Dec 19, 2013 at 11:27:32AM +0800, Richard Hainsworth wrote: > I've been running a perl6 program that runs through a loop, dumps > intermediate results and starts again with new initialisation > values. > [...] > Looking at system resources, the program chews up memory resources > continuall

Re: Memory leak

2004-10-16 Thread H.Merijn Brand
On Fri 15 Oct 2004 22:32, [EMAIL PROTECTED] (PerlDiscuss - Perl Newsgroups and mailing lists) wrote: > I need to embed Perl function in C program running as a daemon on Linux > and Solaris. What it needs is to do pattern matching in Perl while it is If pattern matching is your only goal, why not

Re: Memory leak

2004-10-15 Thread Dan Sugalski
At 8:32 PM + 10/15/04, [EMAIL PROTECTED] (PerlDiscuss - Perl Newsgroups and mailing li wrote: I need to embed Perl function in C program running as a daemon on Linux and Solaris. What it needs is to do pattern matching in Perl while it is difficult in C. However, frequently calling either of f