[GHC] #9823: --show-iface panics with HEAD

#9823: --show-iface panics with HEAD -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Driver | Version: 7.9 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Moderate (less | Type of failure: GHC than a day) | doesn't work at all Blocked By: | Test Case: Related Tickets: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- Let's say I compile an empty module: {{{#!hs module Foo where }}} Now, this works: {{{ ghc-stage2 --show-iface Foo.hi }}} But this panics: {{{ ghc-stage2 Foo.hi --show-iface ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.9.20141120 for x86_64-unknown-linux): ghc-stage2: panic! (the 'impossible' happened) (GHC version 7.9.20141120 for x86_64-unknown-linux): v_unsafeGlobalDynFlags: not initialised Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} Does not happen with 7.8.3. I guess one of recent DynFlags changes must have caused this. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9823 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9823: --show-iface panics with HEAD -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.10.1 Component: Driver | Version: 7.9 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Moderate (less Type of failure: GHC | than a day) doesn't work at all | Blocked By: Test Case: | Related Tickets: #9799 Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * related: => #9799 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9823#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9823: --show-iface panics with HEAD -------------------------------------+------------------------------------- Reporter: jstolarek | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.12.1 Component: Driver | Version: 7.9 Resolution: duplicate | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC doesn't work | Unknown/Multiple at all | Test Case: Blocked By: | Blocking: Related Tickets: #9963 | Differential Revisions: -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => duplicate * related: #9799 => #9963 Comment: Closing this as a duplicate of #9963, for which I have a fix. '--show-iface' is a mode flag, just like '--interactive' and '-e', and all usages of invalid (combinations of) mode flag(s) currently panic in HEAD. Note that the filename should come after the flag, and the error is: {{{ $ ghc-7.8.4 T9963.hi --show-iface ghc: on the commandline: missing argument for flag: --show-iface Usage: For basic information, try the `--help' option. }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9823#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC