[GHC] #10896: BadSock triggers failing ASSERT

#10896: BadSock triggers failing ASSERT -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.11 (Type checker) | Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Revisions: | -------------------------------------+------------------------------------- {{{ --- ./indexed-types/should_fail/BadSock.stderr.normalised 2015-09-18 20:44:48.437390831 +0000 +++ ./indexed-types/should_fail/BadSock.comp.stderr.normalised 2015-09-18 20:44:48.437390831 +0000 @@ -1,5 +1,5 @@ +ghc: panic! (the 'impossible' happened) + (GHC version 7.11.20150918 for x86_64-unknown-linux): + ASSERT failed! file compiler/typecheck/TcFlatten.hs, line 1041 -BadSock.hs:30:5: - The type family ‘Readable’ should have 1 argument, but has been given none - In the equations for closed type family ‘Foo’ - In the type family declaration for ‘Foo’ \ No newline at end of file +Please report this as a GHC bug: http://www.haskell.org/ghc/reportabug \ No newline at end of file *** unexpected failure for BadSock(normal) }}} Haven't investigated any further. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10896: BadSock triggers failing ASSERT -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: new 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: -------------------------------------+------------------------------------- Changes (by thomie): * cc: simonpj (added) Comment: This was caused by one of Simon's commits trying to fix the fallout from Phab:D202 (injective type families). See jstolarek's comment in https://phabricator.haskell.org/D202#34497. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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 -------------------------------------+------------------------------------- Changes (by goldfire): * status: new => patch * differential: => Phab:D1260 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#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

#10896: BadSock triggers failing ASSERT -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/BadSock Blocked By: | Blocking: Related Tickets: | Differential Revisions: Phab:D1260 -------------------------------------+------------------------------------- Changes (by goldfire): * testcase: => indexed-types/should_fail/BadSock * status: patch => closed * resolution: => fixed Comment: All set now. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10896: BadSock triggers failing ASSERT -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/BadSock Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1260 Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): Simon, I remember you suggesting a better approach here. But I'm afraid I didn't note it down nor implement it. Do you remember what it was? Was it to protect all calls to `checkValidType` from !TcTyClsDecls? Thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10896: BadSock triggers failing ASSERT -------------------------------------+------------------------------------- Reporter: ezyang | Owner: Type: bug | Status: closed Priority: normal | Milestone: Component: Compiler (Type | Version: 7.11 checker) | Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: indexed- | types/should_fail/BadSock Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Phab:D1260 Wiki Page: | -------------------------------------+------------------------------------- Comment (by simonpj): Ug. This is all paged out, so I can't remember. I think I have something in my tree... The current situation it not terrible. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/10896#comment:6 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#10896: BadSock triggers failing ASSERT
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler (Type | Version: 7.11
checker) |
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: indexed-
| types/should_fail/BadSock
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1260
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#10896: BadSock triggers failing ASSERT
-------------------------------------+-------------------------------------
Reporter: ezyang | Owner:
Type: bug | Status: closed
Priority: normal | Milestone:
Component: Compiler (Type | Version: 7.11
checker) |
Resolution: fixed | Keywords:
Operating System: Unknown/Multiple | Architecture:
| Unknown/Multiple
Type of failure: None/Unknown | Test Case: indexed-
| types/should_fail/BadSock
Blocked By: | Blocking:
Related Tickets: | Differential Rev(s): Phab:D1260
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Ben Gamari
participants (1)
-
GHC