Debugger: GHC 9.10.1 panic! (the 'impossible' happened) (same issue on 9.8.2)
Summary
When debugging the project via cabal repl
the following panic message shows up.
Stopped in Main.cgiHandler, src/Main.hs:32:12-21
panic! (the 'impossible' happened)
GHC version 9.10.1:
fieldGREInfo
gre_name: cgiHandler
info: Vanilla
Call stack:
CallStack (from HasCallStack):
callStackDoc, called at compiler/GHC/Utils/Panic.hs:190:37 in ghc-9.10.1-803c:GHC.Utils.Panic
pprPanic, called at compiler/GHC/Types/Name/Reader.hs:1055:15 in ghc-9.10.1-803c:GHC.Types.Name.Reader
CallStack (from HasCallStack):
panic, called at compiler/GHC/Utils/Error.hs:507:29 in ghc-9.10.1-803c:GHC.Utils.Error
Steps to reproduce
git clone git@gitlab.haskell.org:mhitza1/poc-panic.git
cd poc-panic
cabal repl prototyper-server
Within the repl
:set -fdefer-type-errors
:set stop :list
:break Lib.CGIHandler.handleRequest
main
-- open http://localhost:8089 in the browser
:step
:step
:step
:step
:step
:step
:step
:step -- line: 23 pure $ Env cgi
Expected behavior
Environment
- GHC version used: 9.10.1 (and 9.8.2)
Optional:
- Operating System: Linux (Fedora 40)
- System Architecture: x86