Re: Upstream patch to remove abort() that occur during memory overflow

2021-06-12 Thread Marco Bodrato
Il 2020-09-13 11:38 t...@gmplib.org ha scritto: Marco Bodrato writes: With ABI=64 I get: 16777216 ^ 768614336404564651 = 256 With ABI=32 I get: 16777216 ^ 178956971 = 256 Not a signal, nor an abort, simply an incorrect result :-) That's undesirable. I thought we cought overflows

Re: Upstream patch to remove abort() that occur during memory overflow

2020-09-13 Thread Torbjörn Granlund
Marco Bodrato writes: With ABI=64 I get: 16777216 ^ 768614336404564651 = 256 With ABI=32 I get: 16777216 ^ 178956971 = 256 Not a signal, nor an abort, simply an incorrect result :-) That's undesirable. I thought we cought overflows also in this difficult a^b case by (indirectly

Re: Upstream patch to remove abort() that occur during memory overflow

2020-09-13 Thread Marco Bodrato
Ciao, Il 2020-09-03 19:22 ni...@lysator.liu.se ha scritto: Mustafa Mohamad writes: Currently GMP aborts which sends SIGBART and forcibly aborts Julia or any linked program. With the above patch, GMP will instead throw a __GMP_ALLOC_OVERFLOW_FUNC Instead of forcibly aborting Hi, I

Re: Upstream patch to remove abort() that occur during memory overflow

2020-09-03 Thread Niels Möller
Mustafa Mohamad writes: > Currently GMP aborts which sends SIGBART and forcibly aborts Julia or any > linked program. With the above patch, GMP will instead throw a > __GMP_ALLOC_OVERFLOW_FUNC > Instead of forcibly aborting Hi, I understand aborting may be undesirable, but can you provide a

Upstream patch to remove abort() that occur during memory overflow

2020-09-03 Thread Mustafa Mohamad
Dear developers, Below we at the Julia team would love to see the following patch upstreamed: https://github.com/JuliaLang/julia/blob/master/deps/patches/gmp_alloc_overflow_func.patch Rationale: Currently GMP aborts which sends SIGBART and forcibly aborts Julia or any linked program. With