swap leak problem

David Roundy droundy at jdj5.mit.edu
Wed Oct 1 09:05:31 EDT 2003


On Wed, Oct 01, 2003 at 11:02:52AM +0100, Simon Marlow wrote:
>  
> > Oh yes, one more datum.  If I run hs_perform_gc before each and every
> > mallocForeignPtrBytes and reallocBytes, the leak goes much more slowly,
> > and the code gets much further in the job before getting killed.  But
> > it still leaks, and still gets killed.
> 
> It could potentially be a memory leak in the RTS.  There are two ways to
> proceed: if you have a GHC build around, you can compile up a debugging
> RTS and run with sanity checking enabled (+RTS -DS), which will check
> for memory leaks.  If there are any memory leaks in the RTS, this will
> throw an assertion failure immediately.

This sounds like a good plan (I do have a ghc build around).  How do I go
about compiling a debugging RTS?
-- 
David Roundy
http://www.abridgegame.org


More information about the Haskell-Cafe mailing list