Skip to content

"unable to commit memory" is rarely a compiler bug, update the error message

We're getting a lot of bug reports for this message:

The error in these tickets is basically "out of memory", but we ask the user to report a bug. Instead we should at least mention the possibility of memory shortage.

Of course there are valid GHC bugs (e.g. because it allocates excessively, #15054 (closed)), but as far as I can see that's a rare event.

(A counter example is #16676 (closed), which was actually a RTS bug, probably a duplicate of #15581 (closed), but we thought the user is running out of memory)

Edited by Ömer Sinan Ağacan
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information