(^) causes crash

Dean Herington heringtonlacey at mindspring.com
Wed Aug 31 19:06:35 EDT 2005


With GHC 6.4, interpreted or compiled, on Windows and Mac OS X, 
evaluating the expression (4^(4^44))::Integer causes a crash.

On Mac, the message is:
    ___         ___ _
   / _ \ /\  /\/ __(_)
  / /_\// /_/ / /  | |      GHC Interactive, version 6.4, for Haskell 98.
/ /_\\/ __  / /___| |      http://www.haskell.org/ghc/
\____/\/ /_/\____/|_|      Type :? for help.

Loading package base-1.0 ... linking ... done.
Prelude> 4^(4^44)::Integer
bash: [539: 1] tcsetattr: Operation not supported
Segmentation fault



More information about the Glasgow-haskell-bugs mailing list