https://bugs.kde.org/show_bug.cgi?id=424044

Bruno Haible <br...@clisp.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Platform|unspecified                 |Ubuntu
            Version|unspecified                 |3.18.1
                 CC|                            |br...@clisp.org

--- Comment #1 from Bruno Haible <br...@clisp.org> ---
The problem is with the isinf call. In this test case
====================================================
#include <math.h>
#include <stdio.h>

long double x;

int main ()
{
  x = 1.0L / 0.0L;
  printf ("%d %La %d\n", !!isinf (x), x, 33);
  return 0;
}
====================================================
we have two isinf calls:
1) in main,
2) inside glibc's fprintf routines, more exactly in
glibc/stdio-common/printf_fphex.c, macro PRINTF_FPHEX_FETCH, line 109.

Both return 1 when run natively, but 0 when run under valgrind.
$ ./a.out
1 inf 33
$ valgrind ./a.out
0 0x8p+16381 33

Valgrind version: 3.18.1
Architecture: x86_64
OS: Linux 5.15.0 (Ubuntu 22.04)
GCC: 11.3
CPU: AMD Ryzen 7 4800U

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to