valgrind and gmp

Torbjörn Granlund tg at gmplib.org
Sun Feb 11 09:46:53 UTC 2018


nisse at lysator.liu.se (Niels Möller) writes:

  I tried upgrading to the debian testing version of valgrind, 1:3.13.0-2.
  That doesn't complain about unknown instructions, but causes some
  miscomputation. E.g.,
  
    ~/build/gmp/mini-gmp/tests/t-mul
  
  succeeds when run normally, but running under valgrind fails like
  
  mpz_mul failed:
  a: -ffffffffffffffffffffff00000007ffffffffffffff00000000000000fffffffffffffffffffff
  b: 1fffffffffffffffffffffffffffffffffffffffe00007ffffffff
  r: -1fffffffffffffffffffffe0000000ffffffffffdfffe7ffffffff000020001ffff7ff000040fffdfff81ffff800000000e00007ffffffff00000001ffff800000001
  ref: -1ffffeffffffffffffffffe0000100fffff7ffffffffe00001000000001ffffefffffffffffffffe0000100000000000000010000000000000001001ffff800000001
  
I'd suggest to get an official valgrind release (not a Debian improved
variant) and if that too is buggy, report it to Julian et al:

http://valgrind.org/support/bug_reports.html

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-devel mailing list