bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SegFault in 2**111111111 calculation


From: Torbjorn Granlund
Subject: Re: SegFault in 2**111111111 calculation
Date: 06 Dec 2000 21:36:31 +0100
User-agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6

Pearu Peterson <address@hidden> writes:

  > If I am right, you should be able to make the program work by adding
  > more swap.
  
  Thanks for your interesting suggestion!
  
  I am running Linux on a machine with 96MB physical memory and with a 256MB
  swap. So, there should be plenty of VM. I even tried the reboot in order
  to start with a fresh startup (with X and other stuff running there was
  50MB free phys. memory available) but still with a SegFault crash. 
  
Please run your program in a debugger and check where it crashes.

  Have anybody tried this test on a different machine? Does it run at all?

It works on a FreeBSD system with 256MB main memory and 4GB swap.

  Any estimates in MB how big is acctually 2**111111111?

It is 111111112 bits, or 3472223 32-but words, or about 33447778
decimal digits.  One needs just about 14MB to store it.

-- 
Torbjörn



reply via email to

[Prev in Thread] Current Thread [Next in Thread]