GHC issues
https://gitlab.haskell.org/ghc/ghc/-/issues
2019-07-07T18:51:07Z
https://gitlab.haskell.org/ghc/ghc/-/issues/7149
Heap profiling restricted with retainers (+RTS -hrfoo -hc) segfaults
2019-07-07T18:51:07Z
takano-akio
Heap profiling restricted with retainers (+RTS -hrfoo -hc) segfaults
Steps to reproduce:
```
% cat hello.hs
main = print $ last [0..]
% ghc hello.hs -prof
[1 of 1] Compiling Main ( hello.hs, hello.o )
Linking hello ...
% ./hello +RTS -hrfoo -hc
zsh: segmentation fault ./hello +RTS -hrfoo -hc...
Steps to reproduce:
```
% cat hello.hs
main = print $ last [0..]
% ghc hello.hs -prof
[1 of 1] Compiling Main ( hello.hs, hello.o )
Linking hello ...
% ./hello +RTS -hrfoo -hc
zsh: segmentation fault ./hello +RTS -hrfoo -hc
```
<details><summary>Trac metadata</summary>
| Trac field | Value |
| ---------------------- | ------------ |
| Version | 7.5 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Profiling |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture | |
</details>
<!-- {"blocked_by":[],"summary":"Heap profiling restricted with retainers (+RTS -hrfoo -hc) segfaults","status":"New","operating_system":"","component":"Profiling","related":[],"milestone":"","resolution":"Unresolved","owner":{"tag":"Unowned"},"version":"7.5","keywords":[],"differentials":[],"test_case":"","architecture":"","cc":[""],"type":"Bug","description":"Steps to reproduce:\r\n\r\n{{{\r\n% cat hello.hs\r\nmain = print $ last [0..]\r\n% ghc hello.hs -prof\r\n[1 of 1] Compiling Main ( hello.hs, hello.o )\r\nLinking hello ...\r\n% ./hello +RTS -hrfoo -hc\r\nzsh: segmentation fault ./hello +RTS -hrfoo -hc\r\n}}}","type_of_failure":"OtherFailure","blocking":[]} -->
7.6.1
pcapriotti
pcapriotti