abort on error - is this being addressed?

Niels Möller nisse at lysator.liu.se
Thu Aug 26 12:42:36 CEST 2010


Joerg Arndt <arndt at jjj.de> writes:

> Specifically, OOM for GMP just means "cannot proceed".  What could
> be "acceptable behaviour" has been cunningly left open in the above
> comment.

For an interactive number theory system like PARI/GP: Abort the current
computation, display an error message, and return to the GP prompt. For
an ssh server using GMP for keyexhange operations: Disconnect the one
client that requested the operation, and maybe write a message to syslog.

That said, with common unix-like systems with virtual memory, overall
system behaviour at out of memory is typically awful, no matter how
libraries and applications handle failure from malloc.

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.


More information about the gmp-devel mailing list