After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 133398 - make check: strtod-test fail
make check: strtod-test fail
Status: RESOLVED INCOMPLETE
Product: glib
Classification: Platform
Component: general
2.3.x
Other HP-UX
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2004-02-04 13:08 UTC by Jonas Jonsson
Modified: 2011-02-18 16:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jonas Jonsson 2004-02-04 13:08:29 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
Comment 1 Jonas Jonsson 2004-03-05 14:00:54 UTC
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

Comment 2 Owen Taylor 2004-03-14 15:14:21 UTC
What's in "buffer" when the assertion failure occurs?
Comment 3 Jonas Jonsson 2004-03-15 08:39:21 UTC
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ÿÿ~"
Comment 4 Matthias Clasen 2004-12-03 15:56:36 UTC
g_ascii_strtod has seen some changes in recent releases.
Does this still occur with glib 2.5.7 ?
Comment 5 Matthias Clasen 2005-05-18 04:02:20 UTC
No response, closing.