segfault in mpz_divexact()

Antony Dovgal antony at zend.com
Thu Apr 19 21:03:28 CEST 2007


On 04/19/2007 09:02 PM, Torbjorn Granlund wrote:
> I have now reproduced the SIGSEGV.  (You seem to have grown impatient
> after less than a day, but since you don't have a support contract, I
> hope you can excuse a delay of a full day...?)

Don't get me wrong, I just wanted to know if you can reproduce it and should I do 
some more investigation on my part =)

> I need to think about what to do--document more clearly that the
> function's behaviour is undefined when the division is inexact, or add
> code and thus overhead to the function to catch this user error.
> 
> (The documentation of this function could be clarified in other ways.
> E.g., that one should never call this function if one first need to
> verify that the remainder vanishes.)

Sure, that's clearly up to you.

-- 
Wbr, 
Antony Dovgal


More information about the gmp-bugs mailing list