
#8833: GHC (compilation mode) crashes -------------------------------------+------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: 7.8.1 Component: Compiler | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: x86_64 (amd64) | Type of failure: Compile-time Difficulty: Moderate (less | crash than a day) | Test Case: Blocked By: | Blocking: Related Tickets: | -------------------------------------+------------------------------------- {{{ module Main where { newtype Rec a b = Rec {deRec :: Rec a b -> a}; infixl 1 >|>; infixl 1 <|<; (>|>) = Rec; (<|<) (Rec x) = x; fix f = (\x -> f (x <|< x)) (Rec (\x -> f (x <|< x))); factorial = fix (\f x -> if x<=1 then 1 else x*f(x-1)); main = do { x <- getLine; putStrLn (show (factorial (read x))) } } }}} GHC crashes with this error: {{{ [1 of 1] Compiling Main ( /Users/iOne/Documents/Test.hs, /Users/iOne/Documents/Test.o ) ghc: panic! (the 'impossible' happened) (GHC version 7.6.3 for x86_64-apple-darwin): Simplifier ticks exhausted When trying UnfoldingDone a_sMx{v} [lid] To increase the limit, use -fsimpl-tick-factor=N (default 100) If you need to do this, let GHC HQ know, and what factor you needed To see detailed counts use -ddump-simpl-stats Total ticks: 7121 }}} (This works fine in GHCi). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8833 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler