Skip to content

9.2.5 panic ((RUBBISH[LiftedRep] @(IO ()))

I am seeing this

ghc: panic! (the 'impossible' happened)
  (GHC version 9.2.5:
	CoreToStg.myCollectArgs
  ((RUBBISH[LiftedRep] @(IO ()))
   `cast` (N:IO[0] <()>_R
           :: IO () ~R# (State# RealWorld -> (# State# RealWorld, () #))))
    ipv4_sj1F
  Call stack:
      CallStack (from HasCallStack):
        callStackDoc, called at compiler/GHC/Utils/Panic.hs:181:37 in ghc:GHC.Utils.Panic
        pprPanic, called at compiler/GHC/CoreToStg.hs:969:33 in ghc:GHC.CoreToStg
Please report this as a GHC bug:  https://www.haskell.org/ghc/reportabug

It happens in a large project https://gitlab.imn.htwk-leipzig.de/autotool/all0/-/jobs/110022 Do you want me to isolate this?

you can reproduce with

git clone https://gitlab.imn.htwk-leipzig.de/autotool/all0/
cd all0
git checkout 931-move-to-ghc-9-2-stackage-lts-20
git submodule init
git submodule update
stack build autotool-collection:exe:declarative-graphics

#19824 (closed) has a similar error

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