Skip to content

Use MonadFix in generalBuildHeapGraph to avoid infinite loop on heap reference cycles

jberryman requested to merge trac-jberryman/ghc-debug:upstream-pr-staging into master

This was causing my debugger to loop forever and consume infinite memory when analyzing hasura/graphql-engine

I tested using the cycles program here and running a dominator tree analysis on a snapshot of cycles, observing that before this change we hang forever

TODOs here:

  • Figure out how test suite works, integrate cycle test
  • figure out how to repro the ghc bug below, open ticket and reference it here

Merge request reports