Skip to content

GHC segfaults (Intel Silver N5000)

Summary

When I try to compile something nontrivial, GHC segfaults.

Steps to reproduce

$ cabal install gscholar-rss # any nontrivial program will do

wait a bit and compilation will end with — say — cabal: Failed to build conduit-1.3.4.2 (which is required by exe:gscholar-rss from gscholar-rss-0.3.0.0). The build process terminated with exit code -4. Checking dmesg you will read a few lines like

[ 1342.986467] traps: ghc[13940] trap invalid opcode ip:7ff292bcc025 sp:7ffd0325fb08 error:0 in libHSghc-9.0.1-ghc9.0.1.so[7ff29057b000+2fde000]

The error happens at different places during compilation, so I cannot pinpoint a package.

Expected behavior

Not to segfault.

Environment

  • GHC version used: 9.0.1

Optional:

  • Operating System: Debian 11.0
  • System Architecture: from lscpu: Intel(R) Pentium(R) Silver N5000 CPU @ 1.10GHz
  • Cabal: 3.6.1.0
Edited by f-a
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information