[GHC] #10896: BadSock triggers failing ASSERT

GHC ghc-devs at haskell.org
Mon Sep 21 14:53:42 UTC 2015


#10896: BadSock triggers failing ASSERT
-------------------------------------+-------------------------------------
        Reporter:  ezyang            |                   Owner:
            Type:  bug               |                  Status:  patch
        Priority:  normal            |               Milestone:
       Component:  Compiler (Type    |                 Version:  7.11
  checker)                           |
      Resolution:                    |                Keywords:
Operating System:  Unknown/Multiple  |            Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |               Test Case:
      Blocked By:                    |                Blocking:
 Related Tickets:                    |  Differential Revisions:  Phab:D1260
-------------------------------------+-------------------------------------

Comment (by Richard Eisenberg <eir@…>):

 In [changeset:"8e8b9ed9849ba21e454e6204b368f8e993feaf7b/ghc" 8e8b9ed/ghc]:
 {{{
 #!CommitTicketReference repository="ghc"
 revision="8e8b9ed9849ba21e454e6204b368f8e993feaf7b"
 Run simplifier only when the env is clean.

 This fixes #10896. In the indexed-types/should_fail/BadSock test,
 there is a bad type definition. This gets type-checked, an error
 gets reported, but then **GHC keeps going**. Later, when
 running the simplifier to do an ambiguity check, the bad type
 environment causes GHC to fall over. My solution: only run the
 simplifier in a clean, error-free type environment.

 A downside of this is that fewer error messages are reported.
 This makes me a bit sad, but I'm not sure how to avoid the problem.
 Suggestions welcome.
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10896#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list