Package: valgrind
Version: 1:3.3.1-2
Followup-For: Bug #471042
finitel is behaving incorrectly when compiled with gcc-4.3 and run
under valgrind. Change the compiler or run without valgrind and things
work smoothly.
------------------------------------------
#include <math.h>
#include <assert.h>
#include <locale.h>
#include <stdio.h>
main()
{
double d;
long double ld;
setlocale (LC_ALL, "C");
sscanf ("Inf", "%lf", &d);
ld = d;
assert (!finitel (d));
}
------------------------------------------
gcc test.c -lm
valgrind ./a.out
....
a.out: t.c:15: main: Assertion `!finitel (d)' failed.
------------------------------------------
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686-bigmem (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages valgrind depends on:
ii libc6 2.7-12 GNU C Library: Shared libraries
Versions of packages valgrind recommends:
ii gdb 6.8-3 The GNU Debugger
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]