[Top][All Lists]

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

Re: Segfault in mpz_get_str for large numbers

From: Kevin Ryde
Subject: Re: Segfault in mpz_get_str for large numbers
Date: Wed, 05 Jun 2002 08:42:11 +1000
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.1 (i386-debian-linux-gnu)

"Dmitry Antipov" <address@hidden> writes:
> It seems something goes wrong with `mpz_get_str' and _very_ _large_
> numbers. The following example is 100% segfault on my system:

You're probably running out of stack space, as per the faq on the web
page and noted in the debugging section of the manual.

mpz_get_str isn't normally a blindingly fast operation, maybe we
should make it use malloc instead.

mpz_ui_pow_ui in your example also uses quite a bit of stack space in

reply via email to

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