[GHC] #10501: Exception in :cmd command can terminate GHCi
#10501: Exception in :cmd command can terminate GHCi ----------------------------------+------------------------------- Reporter: watashi | Owner: watashi Type: bug | Status: new Priority: normal | Milestone: 7.12.1 Component: GHCi | Version: 7.10.1 Keywords: | Operating System: Linux Architecture: x86 | Type of failure: GHCi crash Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | ----------------------------------+------------------------------- {{{ watashi % ghci -ignore-dot-ghci GHCi, version 7.10.1: http://www.haskell.org/ghc/ :? for help Prelude> :cmd return $ head [] ghc: panic! (the 'impossible' happened) (GHC version 7.10.1 for i386-unknown-linux): Prelude.head: empty list Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10501> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10501: Exception in :cmd command can terminate GHCi -------------------------------+------------------------------------ Reporter: watashi | Owner: watashi Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: GHCi | Version: 7.10.1 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D967 -------------------------------+------------------------------------ Changes (by thoughtpolice): * status: new => patch * differential: => Phab:D967 * milestone: 7.12.1 => 7.10.2 -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10501#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10501: Exception in :cmd command can terminate GHCi -------------------------------+------------------------------------ Reporter: watashi | Owner: watashi Type: bug | Status: patch Priority: normal | Milestone: 7.10.2 Component: GHCi | Version: 7.10.1 Resolution: | Keywords: Operating System: Linux | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D967 -------------------------------+------------------------------------ Comment (by Austin Seipp <austin@…>): In [changeset:"3b55659d4f54e503f4e550d762bc55a2650ed13d/ghc"]: {{{ #!CommitTicketReference repository="ghc" revision="3b55659d4f54e503f4e550d762bc55a2650ed13d" Always force the exception in enqueued commands `enqueueCommands` should always force exception in commands. Otherwise the exception thrown in `:cmd` (e.g. `:cmd return $ head []`) will cause GHCi to terminate with panic. Test Plan: `cd testsuite/tests/ghci/ && make` Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D967 GHC Trac Issues: #10501 }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10501#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#10501: Exception in :cmd command can terminate GHCi -------------------------------+------------------------------------ Reporter: watashi | Owner: watashi Type: bug | Status: closed Priority: normal | Milestone: 7.10.2 Component: GHCi | Version: 7.10.1 Resolution: fixed | Keywords: Operating System: Linux | Architecture: x86 Type of failure: GHCi crash | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D967 -------------------------------+------------------------------------ Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged to `ghc-7.10`. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10501#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC