Infinite loop in typechecker/renamer on ghc 9.2.4
Summary
While working on our app I noticed a small change seems to lead to an infinite loop during typechecking / renaming, during cabal repl
or compiling without optimizations.
-ddump-tc-trace -ddump-rn-trace
Seems to stream output forever, it also looks like all memory was consumed
maybe this is a dupe of : #21530 (closed)
Steps to reproduce
sorry for lack of small reproducer
- clone this branch: https://github.com/jberryman/graphql-engine/tree/jberryman/11-9-22-ghc-bug-DONT-DELETE
$ echo 12345 > "$(git rev-parse --show-toplevel)/server/CURRENT_VERSION"
- you likely need to install the system libraries mentioned in:
packaging/graphql-engine-base/ubuntu.dockerfile
$ cabal repl lib:graphql-engine
reverting the commit at HEAD of that branch 55937fa5
no longer exhibits issue
Expected behavior
compilation or type error
Environment
- GHC version used: 9.2.4
Optional:
- Operating System: debian linux
- System Architecture: x86-64