Very big integer arithmetic crashes GHCi on Windows and Mac
With GHC 6.4, interpreted or compiled, on Windows and
Mac OS X,
evaluating the expression (4^(4^44))::Integer causes a
crash.
On Unix, it just goes out to lunch and eats memory,
which seems more plausible.
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
Edited by Simon Marlow