Patch: support callback on allocation overflow instead of calling abort()

Colin Caine cmcaine at
Tue Oct 6 03:41:42 UTC 2020

This is used by Julia to raise an OutOfMemory exception rather than having
the Julia process itself abort.

Others on stackoverflow, etc, have experienced similar problems with
undesired aborts(), so this patch would probably be useful to a variety of
users. (see:

More information is available here and in the linked issues and PRs:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp_alloc_overflow_func.patch
Type: text/x-patch
Size: 5426 bytes
Desc: not available
URL: <>

More information about the gmp-bugs mailing list