[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SegFault in 2**111111111 calculation
From: |
Pearu Peterson |
Subject: |
Re: SegFault in 2**111111111 calculation |
Date: |
Wed, 6 Dec 2000 23:00:40 +0200 (GMT-2) |
On 6 Dec 2000, Torbjorn Granlund wrote:
> Please run your program in a debugger and check where it crashes.
Program received signal SIGSEGV, Segmentation fault.
0x40023579 in __gmpz_pow_ui (r=0xbffff760, b=0xbffff760, e=111111111) at
pow_ui.c:103
On 6 Dec 2000, Sylvain Pion wrote:
> I think it's a stack size problem. If you set "limit stacksize 512M" in
> your shell, then it works. Default is 8MB on linux, and I think I
> remember seeing in the GMP doc that it sometimes stores temporaries on
> the stack.
Yes! This solved the problem. Thanks!
In my bash shell I did:
ulimit -s 64000
and now the program still runs calculating this 2**111111111 ...
Thanks again,
Pearu
Re: SegFault in 2**111111111 calculation, Kevin Ryde, 2000/12/06