valgrind and gmp

Vincent Lefevre vincent at vinc17.net
Mon Feb 12 23:10:24 UTC 2018


On 2018-02-12 23:32:56 +0100, Torbjorn Granlund wrote:
> Probably so.  But couldn't it be problems with valgrind and its handling
> of mpz_set_str or functions it calls, or mpz_mul, mpn_mul, mpn_mul_n,
> etc?

Are union's used somewhere? Last night I reported a bug due to the
use of a union, which causes an incorrect result with MPFR:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890215

> Perhaps it would be better to make a self-contained test case, i.e. a
> test case which does not depend on GMP?  Just some directly assigned
> unsigned long[] vectors and a call to an included mul_basecase, and then
> printf of the (poor) result?

A self-contained test case should be better, in particular if it can
be reduced to something simple, as I did in my bug report.

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


More information about the gmp-devel mailing list