octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Strange test failure when running with valgrind


From: John W. Eaton
Subject: Strange test failure when running with valgrind
Date: Wed, 07 Jan 2015 14:49:05 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0

The following test, and a similar one with int64 instead of uint64, fails when running Octave with valgrind:

  a = 1.9*2^61; b = uint64 (a); b++; assert (b > a);

The test does not fail when Octave is running normally (without valgrind).

Any ideas about why could that be?

When the test fails, it appears that b == a, though b++ does appear to increment the initial value of b, and b appears to be the same value in both cases (with and without valgrind).

jwe




reply via email to

[Prev in Thread] Current Thread [Next in Thread]