#11304: GHC master segfaults when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: Runtime crash Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- {{{ $ 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 ce1f1607ed7f8fedd2f63c8610cafefd59baaf32, {{{ 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. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler