[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: segfault in gmp p-1 factorer
From: |
Torbjorn Granlund |
Subject: |
Re: segfault in gmp p-1 factorer |
Date: |
11 May 2001 08:35:01 +0200 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) Emacs/20.6 |
Kevin Ryde <address@hidden> writes:
Alexander Kruppa <address@hidden> writes:
>
> I've written a simple P-1 factorer called gpm1. When I try to factor a
> large number on a K6-3 450Mhz, the program segfaults. The segfault
> occurs in mpn_sqr_basecase. The program runs fine on a P-II 400 Mhz, and
> it runs fine for smaller numbers.
Perhaps you're running out of stack space. gmp uses the stack for
some temporaries, you can configure with --disable-alloca to stop it
doing that.
Unfortunately, that hurts performance. It is better to use the ulimit
command (or the setrlimit syscall) to increase the allowed stack size.
--
Torbjörn