[GHC] #11362: T6137 doesn't pass with reversed uniques

#11362: T6137 doesn't pass with reversed uniques
-------------------------------------+-------------------------------------
Reporter: niteria | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Keywords: | Operating System: Unknown/Multiple
Architecture: | Type of failure: GHC rejects
Unknown/Multiple | valid program
Test Case: | Blocked By:
Blocking: | Related Tickets:
Differential Rev(s): | Wiki Page:
-------------------------------------+-------------------------------------
It fails with (full trace https://phabricator.haskell.org/P81):
{{{
*** Core Lint errors : in result of Tidy Core ***
<no location info>: warning:
[in body of lambda with binder dt_a18nYf :: In
f_a18o2M
(Sum1 r_a18o2L (In ('F
f_a18o2M) r_a18o2L))
o_a18o2K]
Kind application error in
coercion ‘Sym
(TFCo:R:InioFro[0]

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by niteria): * owner: => goldfire Comment: Bisects to https://phabricator.haskell.org/rGHC6746549772c5cc0ac66c0fce562f297f4d4b80a2 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: goldfire Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by goldfire): * keywords: => TypeInType -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: niteria Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: 4012 Related Tickets: #11371 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by niteria): * owner: goldfire => niteria * blocking: => 4012 * related: => #11371 Comment: This is a symptom of #11371. I just got this: {{{ ghc-stage2: panic! (the 'impossible' happened) (GHC version 8.1.20160121 for x86_64-unknown-linux): ASSERT failed! CallStack (from ImplicitParams): assertPprPanic, called at compiler/types/TyCoRep.hs:1868:61 in ghc:TyCoRep substTy, called at compiler/types/TyCoRep.hs:1799:23 in ghc:TyCoRep substTyWith, called at compiler/types/Type.hs:799:46 in ghc:Type in_scope InScope [aph :-> k1_aph] tenv [aph :-> k1_aph] cenv [] ty (k1_aph -> *) -> (k2_apj -> *) -> Sum k1_aph k2_apj -> * needInScope [apj :-> k2_apj] }}} -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques
-------------------------------------+-------------------------------------
Reporter: niteria | Owner: niteria
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking: 4012
Related Tickets: #11371 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by niteria):
After clearing the `substTy` sanity check I'm back here with the original
issue and I need some input on the underlying assumptions.
The test fails with a lint failure:
{{{
*** Core Lint errors : in result of Tidy Core ***
<no location info>: warning:
[in body of lambda with binder dt_a18nZe :: In
g_a18o6Y
(Sum1 r_a18o6X (In ('F
g_a18o6Y) r_a18o6X))
v_a18o6W]
Kind application error in
coercion ‘Sym
(D:R:InjuFrv0[0]

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: niteria Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: 4012 Related Tickets: #11371 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by goldfire): I have not been following this ticket, but I'm very lost at the last comment. * `cab_lhs` is a list of types that are the type patterns on the LHS of an axiom. * `cab_rhs` is the type on the RHS of an axiom. What do you mean by an order of the RHS? There's just one thing. The line of code you include is for data family axioms, where the RHS has a certain prescribed form. I can see how "order" might apply here. But the Core Lint code should work over all axioms, including type family axioms, for which the RHS has no notion of ordering at all. What makes you say that Core Lint is assuming this? It is possible something somewhere is assuming an ordering property about data family axioms, in particular, but it's not Core Lint. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques
-------------------------------------+-------------------------------------
Reporter: niteria | Owner: niteria
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking: 4012
Related Tickets: #11371 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: niteria Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: 4012 Related Tickets: #11371 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * status: new => merge Comment: OK fixed. Merge to stable branch please. Would someone (Bartosz) like to add a regression test? Perhaps just compiling this test with reversed uniques. Thanks! I'll put it in merge state, but let's not forget that test. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:7 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: niteria Type: bug | Status: merge Priority: normal | Milestone: Component: Compiler | Version: 8.1 Resolution: | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: 4012 Related Tickets: #11371 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by niteria): I will add a test. Thank you! This should unblock D1905 from #4012. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:8 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#11362: T6137 doesn't pass with reversed uniques
-------------------------------------+-------------------------------------
Reporter: niteria | Owner: niteria
Type: bug | Status: merge
Priority: normal | Milestone:
Component: Compiler | Version: 8.1
Resolution: | Keywords: TypeInType
Operating System: Unknown/Multiple | Architecture:
Type of failure: GHC rejects | Unknown/Multiple
valid program | Test Case:
Blocked By: | Blocking: 4012
Related Tickets: #11371 | Differential Rev(s):
Wiki Page: |
-------------------------------------+-------------------------------------
Comment (by Bartosz Nitka

#11362: T6137 doesn't pass with reversed uniques -------------------------------------+------------------------------------- Reporter: niteria | Owner: niteria Type: bug | Status: closed Priority: normal | Milestone: 8.0.1 Component: Compiler | Version: 8.1 Resolution: fixed | Keywords: TypeInType Operating System: Unknown/Multiple | Architecture: Type of failure: GHC rejects | Unknown/Multiple valid program | Test Case: Blocked By: | Blocking: 4012 Related Tickets: #11371 | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: merge => closed * resolution: => fixed * milestone: => 8.0.1 Comment: Merged fix. Also merged test as 77de825300a71be0769f23d70015716672e91ca4. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/11362#comment:10 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC