Skip to content

Segfault during GC with -ffull-laziness and unsafeCoerce#

Summary

The sample program segfaults during the call to performGC

Steps to reproduce

Compile Main.hs, and run it. Unfortunately there are some sensitivities when using performMinorGC that aren't fully understood yet; but an updated version of Main.hs uses performMajorGC instead and removes the calls to getEnvironment.

Environment

  • GHC version used: 8.4.3
  • Operating System: NixOS
  • System Architecture: x64
Edited by Leon P Smith
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information