Programs compiled with GHC master segfault when run with +RTS -h
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.11.20151218
$ ghc +RTS -h
ghc: no input files
Usage: For basic information, try the `--help' option.
Segmentation fault
This appears to be due to ce1f1607,
commit ce1f1607ed7f8fedd2f63c8610cafefd59baaf32
Author: Simon Marlow <marlowsd@gmail.com>
Date: Sat Nov 7 09:39:05 2015 +0000
Make GHCi & TH work when the compiler is built with -prof
Which removes an initProfiling2 call from hs_init_ghc, which means that initHeapProfiling is never called, which means that censuses is never initialized, which causes a crash during cleanup on RTS shutdown.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.11 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | highest |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |
Edited by Ben Gamari