GNOME Bugzilla – Bug 133398
make check: strtod-test fail
Last modified: 2011-02-18 16:14:20 UTC
** ERROR **: file strtod-test.c: line 59: assertion failed: (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL)) aborting... /bin/sh: 1307 Trace/BPT trap(coredump) FAIL: strtod-test Compiler-info: HP C/HP-UX Release Notes for HP-UX 11i/11.x HP 9000 Computers HP C/HP-UX Version B.11.11.06 5187-0750 GLib configured like this: ./configure --prefix=/alcesys/build/gnome-2.6 --exec_prefix=/alcesys/build/gnome-2.6 --bindir=/alcesys/build/gnome-2.6/bin --sbindir=/alcesys/build/gnome-2.6/sbin --libexecdir=/alcesys/build/gnome-2.6/libexec --datadir=/alcesys/build/gnome-2.6/share --sysconfdir=/alcesys/build/gnome-2.6/etc --sharedstatedir=/alcesys/build/gnome-2.6/share --localstatedir=/alcesys/build/gnome-2.6/var --libdir=/alcesys/build/gnome-2.6/lib --infodir=/alcesys/build/gnome-2.6/info --includedir=/alcesys/build/gnome-2.6/include --mandir=/alcesys/build/gnome-2.6/man --disable-static --with-html-dir=/alcesys/build/gnome-2.6/share/gtk-doc/html --disable-gtk-doc --x-includes=/usr/include/X11R6 --x-libraries=/usr/lib/X11R6 --with-threads=posix --with-libiconv=gnu --enable-debug CFLAGS used: +DA2.0W -Ae -g
Now on glib-2.3.5, compiled with gcc, same arror. /usr/local/pa64/bin/gcc -v Reading specs from /usr/local/pa64/lib/gcc-lib/hppa64-hp-hpux11.11/3.3.2/specs Configured with: /scratch/root/gcc-pkg/3.3.1/hpux-11/gcc-3.3.2/configure --enable-languages=c,c++ --enable-threads=posix --disable-nls --with-gnu-as --with-gnu-ld --with-as=/usr/local/pa64/bin/as --with-ld=/usr/local/pa64/bin/ld --host=hppa64-hp-hpux11.11 --target=hppa64-hp-hpux11.11 --prefix=/usr/local/pa64 Thread model: posix gcc version 3.3.2
What's in "buffer" when the assertion failure occurs?
Starting program: /alcesys/build/garnome-0.30.1/platform/glib/work/main.d/glib-2.3.6/tests/.libs/strtod-test Breakpoint 1, main () at strtod-test.c:58 58 d = pow (2.0, -1024.1); (gdb) list 53 g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL)); 54 55 d = -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368.0; 56 g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL)); 57 58 d = pow (2.0, -1024.1); 59 g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL)); 60 61 d = -pow (2.0, -1024.1); 62 g_assert (d == g_ascii_strtod (g_ascii_dtostr (buffer, sizeof (buffer), d), NULL)); (gdb) print buffer $1 = "-1.7976931348623157e+308\000\000\000\000@\000V°\000\003ÿÿ~"
g_ascii_strtod has seen some changes in recent releases. Does this still occur with glib 2.5.7 ?
No response, closing.