[GHC] #9445: GHC Panic: Tick Exhausted with high factor

GHC ghc-devs at haskell.org
Mon May 22 01:08:56 UTC 2017


#9445: GHC Panic: Tick Exhausted with high factor
-------------------------------------+-------------------------------------
        Reporter:  adinapoli         |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.8.3
      Resolution:                    |             Keywords:  panic
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:  #5539             |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by dfeuer):

 I've stripped it down to a small test case. Under GHC 8.0.2, this requires
 a tick factor somewhere between 5190 and 5210 (really). Under GHC 8.2, it
 compiles about as quickly as one might expect.

 {{{#!hs
 module SFML.Graphics.Transform
 (
     Transform
 )
 where

 -- | Encapsulate a 3x3 transform matrix.
 data Transform = Transform
     { m00 :: !Float, m10 :: !Float, m20 :: !Float
     , m01 :: !Float, m11 :: !Float, m21 :: !Float
     , m02 :: !Float, m12 :: !Float, m22 :: !Float
     }


 instance Num Transform where
   abs (Transform a00 a01 a02 a03 a04 a05 a06 a07 a08) =
         (Transform (abs a00) (abs a01) (abs a02) (abs a03)
             (abs a04) (abs a05) (abs a06) (abs a07) (abs a08))
 }}}

 I'll install this test case so we can (hopefully) close the ticket. I am
 not able to test the actual package at the relevant commit (prior to
 https://github.com/SFML-
 haskell/SFML/commit/becb6c967721a77f244b3c0e3c61ac72f13d91eb) because my
 distribution doesn't offer all the required C libraries.

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


More information about the ghc-tickets mailing list