Skip to content

GHC Panic when running a test function in ghc-9.6.3, ghc-9.6.4, ghc-9.8.1

Summary

When running this a particular test function in with cabal repl ghc panics.

Steps to reproduce

  1. clone and switch to this branch of the following repo: https://github.com/theGhostJW/pyrethrum/tree/ghc-panic

> cabal build
> cabal repl
ghci> unit_nested_thread_pass_fail

=>

panic! (the 'impossible' happened)
  GHC version 9.6.3:
        nameModule
  internal stepDownQStatus_igN0
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:189:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/Types/Name.hs:329:3 in ghc:GHC.Types.Name
  CallStack (from HasCallStack):
    panic, called at compiler/GHC/Utils/Error.hs:454:29 in ghc:GHC.Utils.Error

Expected behavior

What do you expect the reproducer described above to do?

not Panic

Environment

  • GHC version used: GHC version 9.6.3

Optional:

  • Operating System: WSL2 on Windows 10
Edited by theGhostJW
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information