RTS internal error when compiled with -finfo-table-map AND -threaded in 9.4
Summary
When running a program (even hello world) compiled with both -finfo-table-map
and -threaded
, the executable crashes:
internal error: ACQUIRE_LOCK failed (rts/IPE.c:126): 22
(GHC version 9.4.1 for x86_64_apple_darwin)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Abort trap: 6
Steps to reproduce
$ cat repr.hs
main = putStrLn "hello world"
$ ghc -finfo-table-map -threaded repr.h
[1 of 2] Compiling Main ( repr.hs, repr.o )
[2 of 2] Linking repr
$ ./repr
internal error: ACQUIRE_LOCK failed (rts/IPE.c:126): 22
(GHC version 9.4.1 for x86_64_apple_darwin)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Abort trap: 6
Expected behavior
Well...
Environment
- GHC version used: 9.4
- Operating System: MacOS Monterey 12.5
- System Architecture: Intel MacBook Pro
Edited by Rodrigo Mesquita