Skip to content

nameModule panic with byte code interpreter, multiple home units, -fwrite-if-simplified-core

Result size of CorePrep
  = {terms: 9,991, types: 19,028, coercions: 1,577, joins: 0/1,897}
!!! CorePrep [Control.Monad.Catch]: finished in 7.25 milliseconds, allocated 13.208 megabytes
*** Stg2Stg:
*** GHC.StgToByteCode [Control.Monad.Catch]:
!!! GHC.StgToByteCode [Control.Monad.Catch]: finished in 19.71 milliseconds, allocated 46.775 megabytes
panic! (the 'impossible' happened)
  GHC version 9.6.0.20230201:
	nameModule
  internal $cget7_i13nY
  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

The reproduction instructions are a bit involved at the moment but I write this down in a ticket in case other users are reporting it.

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