Heap profiling woes
I have a large program with a space leak. So I want to heap profiling, of course. Here's what happens:
I compile with -prof -auto-all and run with -hc. All (99%) allocation is attributed to Main.CAF.
I add -caf-all, run with -hc. All allocation is attributed to Main.main.
I try running with -hd. The program segfaults.
I try running with -hy. The program segfaults.
I try running with -hb. The program dies with a GHC RTS internal error.
I try running with -hr. The generated profile cannot be read by hp2ps because it's truncated.
I edit the truncated file by hand. The allocation is now split between main and SYSTEM.