abort on error - is this being addressed?

Vincent Lefevre vincent at vinc17.net
Sat Aug 28 02:54:23 CEST 2010

On 2010-08-26 11:38:10 +0200, Marc Glisse wrote:
> On Thu, 26 Aug 2010, Allan Chandler wrote:
> >   GNU MP unconditionally calls abort() on allocation failures,
> >   which are bound to happen with certain insanely large
> >   computations. This is unacceptable behaviour for a library and
> >   reason enough to write your own arbitrary-precision code.
> First, notice that any OS that overcommits memory (like Linux unless
> you use some option that is not recommended) makes the point moot.

Linux no longer blindly overcommits, so that if you have insanely
large computations, malloc will fail.

Vincent Lefèvre <vincent at vinc17.net> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / Arénaire project (LIP, ENS-Lyon)

More information about the gmp-devel mailing list