Skip to content

Profiled GHCi segfaults under Windows.

Building ghc with the prof flavour and trying to run ghci segfaults on master.

C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe --interactive
GHCi, version 8.7.20181218: https://www.haskell.org/ghc/  :? for help

Access violation in generated code when reading 0xffffffffffffffff

 Attempting to reconstruct a stack trace...

   Frame        Code address
 * 0x67cd990    0x4d6634c C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x496634c
 * 0x67cd9f0    0x4d51848 C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x4951848
 * 0x67cda50    0x4d5192f C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x495192f
 * 0x67cda80    0x4d678a1 C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x49678a1
 * 0x67cda88    0x4c5fe64 C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x485fe64
 * 0x67cda90    0x1083d0
 * 0x67cda98    0x88e5020
 * 0x67cdaa0    0x88e36a1
 * 0x67cdaa8    0x2000000 C:\ghc\msys64\home\Andi\ghc_head\inplace\bin\ghc-stage2.exe+0x1c00000

Just starting it in gdb tells me this is happening in registerCcsList in the RTS.

Trac metadata
Trac field Value
Version 8.7
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Runtime System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information