Skip to content

Programs built with certain ghc flags, and run with certain RTS flags segfault immediately on startup.

Steps to reproduce

echo "main = print 42" >> HelloWorld.hs
/opt/ghc-9.8.1/bin/ghc HelloWorld.hs -O -debug -threaded -rtsopts
./HelloWorld +RTS -N2 -l -Ds
Segmentation fault (core dumped)

Environment

  • GHC version used: 9.8/HEAD, works in 9.6

Optional:

  • Operating System:
  • System Architecture:
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information