9.2.1 regression: panic with heap overflow on a file that works fine in 9.0.1
On sufficiently large(?) files that compile fine with GHC 9.0.1, I get the error message
ghc: panic! (the 'impossible' happened) (GHC version 9.2.1: heap overflow Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Steps to reproduce
Once the CI finishes, download any the
ExtractionHaskell-* file at https://github.com/mit-plv/fiat-crypto/actions/runs/1460347497 corresponding to the failed job and extract the contents. Run
ghc src/ExtractionHaskell/word_by_word_montgomery.hs -o src/ExtractionHaskell/word_by_word_montgomery. With 9.0.1, it succeeds; on 9.2.1, it fails with the aforementioned panic.
Unpack word_by_word_montgomery.hs.tar.gz (unpacked file is about 30 MB). Run
ghc word_by_word_montgomery.hs -o word_by_word_montgomery +RTS -M5G -RTS
I expect a working binary output.
- GHC version used: 9.2.1, 9.0.1
- Operating System: Linux
- System Architecture: