[GHC] #11304: GHC master segfaults when run with +RTS -h
#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
#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 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by rwbarton): I assume this is really "Haskell programs built without profiling segfault when run with `+RTS -h`"? -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11304: Programs compiled with GHC master segfault when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Indeed. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11304: Programs compiled with GHC master segfault when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: new Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by Simon Marlow <marlowsd@…>): In [changeset:"c33e7c2b1a62f340432c752fb37ca1374e3e982a/ghc" c33e7c2/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="c33e7c2b1a62f340432c752fb37ca1374e3e982a" Fix +RTS -h when compiling without -prof Summary: Was broken by ce1f1607ed7f8fedd2f63c8610cafefd59baaf32. I've added a test so that hopefully it won't break again. Test Plan: validate & new test case Reviewers: bgamari, austin, erikd Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1746 GHC Trac Issues: #11304 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11304: Programs compiled with GHC master segfault when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: merge Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonmar): * status: new => merge -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:4> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11304: Programs compiled with GHC master segfault when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:5> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11304: Programs compiled with GHC master segfault when run with +RTS -h -------------------------------------+------------------------------------- Reporter: bgamari | Owner: simonmar Type: bug | Status: closed Priority: highest | Milestone: 8.0.1 Component: Compiler | Version: 7.11 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: Runtime crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): Merged in d699446a50f92005a8b6515633a3c8937962e225. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11304#comment:6> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC