[GHC] #10501: Exception in :cmd command can terminate GHCi

GHC ghc-devs at haskell.org
Tue Jun 9 10:44:30 UTC 2015


#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


More information about the ghc-tickets mailing list