runtime crashing with +RTS -w -h
A combination of the RTS flags -w and -h makes executables generated with ghc crash at runtime. Does not happen always; my current guess is that a gc run triggers the bug.
Reproducible with the following input:
Main.hs
module Main where
import qualified Data.Map.Strict as M
main = print $ M.lookup 10 $ M.fromList [ (i,i)
| i<-[1..10000000] ]
> ghc -rtsopts Main.hs && ./Main +RTS -w -h
[1 of 1] Compiling Main ( Main.hs, Main.o )
Linking Main ...
Main: internal error: heapCensus, unknown object: 4093
(GHC version 7.8.3 for x86_64_unknown_linux)
optimization level did not change the outcome.
I am aware that -w is marked experimental, and I don't need it. Just noticed the crashing.
@simon: you get added to Cc (one more time) every time I press "preview", it seems. Doubt that is intentional.. I'll leave you in Cc just so you get this message. (hmm.. where is the bug-tracker bug-tracker..)
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | low |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | simonmar |
Operating system | |
Architecture |