Bug with -h and -c together

Simon Marlow simonmar at microsoft.com
Mon Oct 22 09:04:53 EDT 2001


> Here's another one, using GHC 5.02
> 
> [ian at urchin current]$ cat W.lhs 
> 
> > module Main where
> 
> > main :: IO()
> > main = putStrLn $ show $ last [1..100000]
> 
> [ian at urchin current]$ ghc W.lhs -prof -auto-all -o W
> [ian at urchin current]$ ./W +RTS -h   
> 100000
> [ian at urchin current]$ ./W +RTS -c
> 100000
> [ian at urchin current]$ ./W +RTS -h -c
> Segmentation fault (core dumped)
> [ian at urchin current]$ 

The compacting collector is currently incompatible with
single-generation GC (i.e. -G1), and the heap profiler automatically
turns on -G1.  We added a test to automatically disable compaction in
the presence of -G1, but the patch got overlooked during the run-up to
the release of 5.02 and never made it into the stable branch.

The workaround is "don't do that" :-)

Cheers,
	Simon




More information about the Glasgow-haskell-bugs mailing list