[GHC] #9662: stack overflow in type checker

#9662: stack overflow in type checker -------------------------------------+------------------------------------- Reporter: Lemming | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Keywords: | Operating System: Architecture: Unknown/Multiple | Unknown/Multiple Difficulty: Unknown | Type of failure: Compile- Blocked By: | time crash Related Tickets: | Test Case: | Blocking: | Differential Revisions: -------------------------------------+------------------------------------- The attached program causes a stack overflow when loading into ghci-7.8.3 or ghci-7.9.20140929: {{{ $ ghci-7.8.3 -Wall BackpermuteTypeLoop.hs GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help Loading package ghc-prim ... linking ... done. Loading package integer-gmp ... linking ... done. Loading package base ... linking ... done. [1 of 1] Compiling BackpermuteTypeLoop ( BackpermuteTypeLoop.hs, interpreted ) *** Exception: stack overflow }}} I have no idea, what's going on. The problem may be even not critical, because the program is not type-correct anyway. If you replace the `id` argument by the out-commented `modify` argument, you will get a nice type error message. The problem arised when using the Accelerate framework and it involves the `modify` function which helps tupling function arguments and untupling function results. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9662 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9662: stack overflow in type checker -------------------------------------+------------------------------------- Reporter: Lemming | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.8.3 Resolution: | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by simonpj): Whoa! That is a real bug. Interestingly, it's fine in GHC 7.6. I'll make sure it gets fixed in HEAD at least. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9662#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9662: stack overflow in type checker -------------------------------------+------------------------------------- Reporter: Lemming | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed * milestone: => 7.10.1 Comment: I can't find the commit, but this has been fixed in HEAD (ghc-7.9.20141108). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9662#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9662: stack overflow in type checker -------------------------------------+------------------------------------- Reporter: Lemming | Owner: Type: bug | Status: closed Priority: normal | Milestone: 7.10.1 Component: Compiler | Version: 7.8.3 Resolution: fixed | Keywords: Operating System: | Architecture: Unknown/Multiple Unknown/Multiple | Difficulty: Unknown Type of failure: Compile- | Blocked By: time crash | Related Tickets: Test Case: indexed- | types/should_fail/T9662 | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Changes (by simonpj): * testcase: => indexed-types/should_fail/T9662 -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9662#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#9662: stack overflow in type checker
-------------------------------------+-------------------------------------
Reporter: Lemming | Owner:
Type: bug | Status: closed
Priority: normal | Milestone: 7.10.1
Component: Compiler | Version: 7.8.3
Resolution: fixed | Keywords:
Operating System: | Architecture: Unknown/Multiple
Unknown/Multiple | Difficulty: Unknown
Type of failure: Compile- | Blocked By:
time crash | Related Tickets:
Test Case: indexed- |
types/should_fail/T9662 |
Blocking: |
Differential Revisions: |
-------------------------------------+-------------------------------------
Comment (by Simon Peyton Jones
participants (1)
-
GHC