Compiled program with GHC9.2.2 often causes "internal error: evacuate: strange closure type xxx"
Summary
I cannot come up with a good title, so please bear with me with the title. I've been using XMonad with GHC 9.0.2 fine, but when I updated it to GHC9.2.2, it often crashes. It sometimes leave the following message, while sometimes silently crashes.
xmonad-x86_64-linux: internal error: evacuate: strange closure type 0
(GHC version 9.2.2 for x86_64_unknown_linux)
Please report this as a GHC bug: https://www.haskell.org/ghc/reportabug
Aborted (core dumped)
(The closure type depends time to time)
Happens with the most bare-bone XMonad instance. I am lost on how to skin it down further. Reporting this to GHC, since this specifically happens with GHC9.2.2. All previous versions work fine. Any directions to diagnose which part is causing the issue?
Steps to reproduce
- Install XMonad as dynamically linked
- Run with the default configuration
- (At least on my end) performing some action leads to a crash from time to time
Expected behavior
internal error: evacuate: strange closure type 0
should not happen.
Environment
- GHC version used: 9.2.2
Optional:
- Operating System: Ubuntu 20.04.4 LTS, 64-bit, Linux
- System Architecture: x86-64