
This sounds like a good plan (I do have a ghc build around). How do I go about compiling a debugging RTS?
Add the following to mk/build.mk: GhcRtsHcOpts = -optc-DDEBUG GhcRtsCcOpts = -g then go into ghc/rts and 'make clean && make'. Now rebuild your program using this GHC (or alternatively add a -L flag pointing to this ghc/rts directory). Then run it with +RTS -DS -Sstderr, observe it going very slowly and see if it throws any assertion failures. Cheers, Simon

On Wed, Oct 01, 2003 at 03:06:50PM +0100, Simon Marlow wrote:
... Then run it with +RTS -DS -Sstderr, observe it going very slowly and see if it throws any assertion failures.
I get a: ASSERTION FAILED: file Storage.c, line 875 This is in ghc CVS HEAD as of yesterday morning. It shows up even on small test runs (rather than my monster run that kills swap on my machine), so if you want a test case I can pretty easily get it for you. Although it won't be a small amount of code, it at least wouldn't require 200M of data. -- David Roundy http://www.abridgegame.org
participants (2)
-
David Roundy
-
Simon Marlow