Ticket #5909 (merge bug)
Segfault with multi-threaded retainer profiling
|Reported by:||akio||Owned by:||simonmar|
|Operating System:||Linux||Architecture:||x86_64 (amd64)|
|Type of failure:||Runtime crash||Difficulty:||Unknown|
|Test Case:||Blocked By:|
I see the following program often segfaults when compiled and run like this:
% ghc -threaded -O2 -prof -fprof-auto segfault.hs -rtsopts [1 of 1] Compiling Main ( segfault.hs, segfault.o ) Linking segfault ... % ./segfault aaaaaaaaaaaaaaaaaaaaaaa +RTS -hr -N5 -V -A512K # Segfaults, often within a minute.
It also seems to me that it segfaults more often/quickly when some other process is actively running on the same machine. I kept "ghc -e 'last [1..]' +RTS -A13G" running while making the test case. The machine I used has 4 cores, 8 HT threads and 16GB RAM.