suggestions for tracking down memory leaks

2023-03-23 Thread Nathan Gray
I have a program that I intend to run for days or weeks at a time, but it is being killed by the OS after a day or so, I think because it is using up too much memory (growing over time). I would like to be able to debug the memory leak and find out where it is happening, so I can fix it. What tool

[perl #63594] [BUG] memory leaks

2009-03-13 Thread jn...@jnthn.net via RT
On Mon Mar 02 01:04:52 2009, ml...@physik.uni-wuerzburg.de wrote: > It seems that even the simplest programs leak memory: > > $ perl6 -e 'while 1 { }' > > Watching this in top (1) shows that it leaks about 1m per second on my > machine (linux amd64). > It's interesting to note that while this le

[perl #63594] [BUG] memory leaks

2009-03-02 Thread via RT
# New Ticket Created by Moritz Lenz # Please include the string: [perl #63594] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=63594 > It seems that even the simplest programs leak memory: $ perl6 -e 'while 1 { }' Watching

Re: [perl #43218] Memory leaks (compreg, invokecc)

2008-07-23 Thread Michal Jurosz
Christoph Otto via RT napsal(a): Is this something we're still concerned about or can this ticket be closed? If it isn't leak then it is a bug (in Parrot or in my PIR/PASM code). I can invoke PASM compiler 10^5x (76MB RAM) but not 10^7x because I get Parrot VM: PANIC: Out of mem! C file src\gc\

[perl #43218] Memory leaks (compreg, invokecc)

2008-07-22 Thread Christoph Otto via RT
On Thu Jun 14 16:25:24 2007, [EMAIL PROTECTED] wrote: > On Thursday 14 June 2007 14:42:31 Jurosz Michal wrote: > > > Attached test use compreg P1, "PASM" and invokecc it 100,000 times. > > On win32 (mingw32) it consumes 70MB of RAM with r18834 (107 MB of > RAM > > with r11704). > > With Linux at

Re: [perl #43218] Memory leaks (compreg, invokecc)

2007-06-14 Thread chromatic
On Thursday 14 June 2007 14:42:31 Jurosz Michal wrote: > Attached test use compreg P1, "PASM" and invokecc it 100,000 times. > On win32 (mingw32) it consumes 70MB of RAM with r18834 (107 MB of RAM > with r11704). With Linux at r19010, the memory use jumped up to 62 MB for me. However, Valgrind s

[perl #43218] Memory leaks (compreg, invokecc)

2007-06-14 Thread via RT
# New Ticket Created by Jurosz Michal # Please include the string: [perl #43218] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=43218 > Attached test use compreg P1, "PASM" and invokecc it 100,000 times. On win32 (mingw32)

Re: [PATCH] string_to_cstring memory leaks

2005-07-23 Thread Leopold Toetsch
Jonathan Worthington wrote: * Memory leak - string_to_cstring returns a malloced string, which isn't freed everywhere Thanks, applied -r8671 Note - yes, I know many of the strings are passed to internal_excpection, but IIRC many of those will be becoming real_exceptions in the future, so it

[PATCH] string_to_cstring memory leaks

2005-07-21 Thread Jonathan Worthington
Hi, From docs/ROADMAP * Memory leak - string_to_cstring returns a malloced string, which isn't freed everywhere A quick grep through the src folder found a few cases like this. I may have missed some, but this patch fixes those I spotted. Compiles, passes all tests (apart from dynclasse

Memory leaks

2003-09-23 Thread Leopold Toetsch
The short story: We have really too much leaks, everywhere: Failed 33/57 test scripts, 42.11% okay. 291/903 subtests failed, 67.77% okay. (A test is considered failing above, when it has more then 3 leaks (which are known to leak currently - the stdio handles)) The longer story: Parrot has si

Re: rx.ops, bitmaps and memory leaks

2002-11-08 Thread Leopold Toetsch
Brent Dax wrote: > Leopold Toetsch: > # 2) For bitmaps I would provide a bitlist.c with functions for setting > # and testing bits. This bitlist would be based on list, so it > # should be > # fast enough and had no limits WRT unicode chars. > > Note that the "Bitmaps" used by rx are only bitmaps

RE: rx.ops, bitmaps and memory leaks

2002-11-08 Thread Brent Dax
Leopold Toetsch: # 2) For bitmaps I would provide a bitlist.c with functions for setting # and testing bits. This bitlist would be based on list, so it # should be # fast enough and had no limits WRT unicode chars. Note that the "Bitmaps" used by rx are only bitmaps within US-ASCII, to keep siz

rx.ops, bitmaps and memory leaks

2002-11-08 Thread Leopold Toetsch
Rx had some time ago (~0.0.6) a state structure rxinfo. AFAIK this was tossed for speed reasons, state is kept in registers now. This has several impacts: - regexen are not reentrant anymore (global intstack) - they don't/can't manage their allocated resources like bitmaps 1) I would propose, tha

Re: Potential Memory Leaks

2002-04-12 Thread Mike Lambert
Hope no one minds me essentially reposting this email. :) > Am I correct in assuming that the stacks stuff leaks memory? Both stacks.c > and rxstacks.c allocate memory via mem_allocate_aligned, but never free > it, relying on the GC for it (code written before the GC existed). There was a frame

Re: Potential Memory Leaks

2002-03-30 Thread Dan Sugalski
At 4:43 AM -0500 3/26/02, Michel J Lambert wrote: >Am I correct in assuming that the stacks stuff leaks memory? Both stacks.c >and rxstacks.c allocate memory via mem_allocate_aligned, but never free >it, relying on the GC for it (code written before the GC existed). > >Should these stacks be chang

Potential Memory Leaks

2002-03-26 Thread Michel J Lambert
Hey, After going through and hopefully learning the GC system yesterday, today I went through looking for problems in the code that uses it (or doesn't use it, as the case may be). Below are what I believe to be potential problems in Parrot's memory use. I may very well be mistaken on many of the