[ ghc-Bugs-1278350 ] Very big integer arithmetic crashes GHCi on Windows and Mac

SourceForge.net noreply at sourceforge.net
Thu Sep 1 04:12:12 EDT 2005


Bugs item #1278350, was opened at 2005-09-01 08:12
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1278350&group_id=8032

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Runtime System
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Simon Peyton Jones (simonpj)
Assigned to: Nobody/Anonymous (nobody)
Summary: Very big integer arithmetic crashes GHCi on Windows and Mac

Initial Comment:
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


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1278350&group_id=8032



More information about the Glasgow-haskell-bugs mailing list