Skip to content

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 in mk/build.mk
  • Add GhcRTSWays += thr_debug_p to mk/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
Edited by niteria
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information