Skip to content

GHCi leaks in DEBUG mode

The solution to ticket #15111 (closed) fixes some space leaks in GHCi. That ticket also installs -fghci-leak-check to the testsuite, so that we'll know when these leaks return. This is all good.

However, the DEBUG compile still leaks in GHCi. This means that many ghci tests fail in the testsuite when using a DEBUG compiler.

I thus have two requests:

  1. (hopefully quick) Teach the testsuite not to use -fghci-leak-check on a DEBUG compiler. I tried to do this myself but got lost, never having worked on the testsuite harness.
  2. Fix the leaks.

If someone could post the fix to (1) in the short term (even if you don't commit it), I'd be grateful. This is holding me up.

Trac metadata
Trac field Value
Version 8.4.3
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information