forkProcess does not play well with heap or time profiling
This is similar to #4512 (closed). When doing heap or time profiling, the forked process and the parent process both write to the same .hp or .prof file. I think this also applies to program coverage using hpc (didn't test this).
I was able to reproduce the bug with the attached source code, but some other people were not. Just run space-profiling +RTS -h and try to convert the generated heap profile using hp2ps, I get the following error message:
hp2ps: space-profiling.hp, line 186: integer must follow identifier
I attached the generated hp file.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Runtime System |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | simonmar |
| Operating system | |
| Architecture |