Skip to content

GHC version 9.4.4: heap overflow; the same with 9.6.1, but 9.2.7 compiles fine

Summary

Heap overflow when compiling, both with -O0 and with -O1.

Edit: Disclaimer: lots of UndecidableInstances in this code, though not in the file on which GHC diverges.

Steps to reproduce

Clone this repo at this commit

https://github.com/Mikolaj/horde-ad/commit/773bc01382748b073fddee776b6fd8e6657c35df

then run (you can ignore cabal.project, the fork of mnist-idx is no longer needed)

cabal build -j1 --disable-optimization

Or any other build invocation. I haven't found a set of options for which it does compile.

Expected behavior

Compiles.

Environment

Fails the same with 9.4.4 and 9.6.1 (with --allow-newer). Fails the same in CI:

https://github.com/Mikolaj/horde-ad/actions/runs/4492044812/jobs/7901371200#step:18:629

Compiles and all tests pass with 9.2.7.

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