[darcs-users] internal error

David Roundy droundy at abridgegame.org
Sat Nov 29 16:17:50 UTC 2003


On Sat, Nov 29, 2003 at 04:40:43PM +0100, Gour wrote:
> ketil at ii.uib.no (ketil at ii.uib.no) wrote:
> 
> > If you build darcs with profiling (add -prof to the GHC command line
> > for *all* modules), you can run darcs with options
> > 
> >    +RTS -h -RTS
> > 
> > to get memory profiling output.  This should tell you which function
> > is consuming all the memory.  For a variation, use 
> > 
> >    +RTS -hd -RTS
> > 
> > which gives you the type of data (usually the constructor) filling up
> > the heap.  This is often helpful for me when tracking down excessive
> > memory use (which more often than not is caused by too much, and less
> > often, too little, laziness)
> 
> Thanks. I learnt something new, but unfortunately newly compiled darcs
> segfaults when in such a way. I'll try to increase heap size.

That's because you're running with a released version of ghc.  The latest
CVS has the heap profiling bug fixed.  It would be nice if ghc 6.2 were
released soon... there are an awful lot of problems with existing released
versions of ghc.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list