GHCi trips -DS checks at rts/sm/Sanity.c, line 210
Error:
$ echo -e ":quit\n" | ./inplace/bin/ghc-stage2 --interactive +RTS -DS -RTS -ignore-dot-ghci
GHCi, version 8.3.20170515: http://www.haskell.org/ghc/ :? for help
Prelude> Leaving GHCi.
ghc-stage2: internal error: ASSERTION FAILED: file rts/sm/Sanity.c, line 210
(GHC version 8.3.20170515 for x86_64_unknown_linux)
Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug
Aborted (core dumped)
Steps to reproduce:
- Set
BuildFlavour = prof
inmk/build.mk
- Add
GhcRTSWays += thr_debug_p
tomk/build.mk
- Build GHC with
./boot; ./configure; GhcDebugged=YES make
- relink with
(cd ghc; make re2 GhcDebugged=YES)
echo -e ":quit\n" | ./inplace/bin/ghc-stage2 --interactive +RTS -DS -RTS -ignore-dot-ghci