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 78954 - Problems with nan(NULL) call in trionan.c on OSF1
Problems with nan(NULL) call in trionan.c on OSF1
Status: VERIFIED FIXED
Product: libxml2
Classification: Platform
Component: general
2.4.19
Other OSF/1
: Normal normal
: ---
Assigned To: Daniel Veillard
Daniel Veillard
Depends on:
Blocks:
 
 
Reported: 2002-04-17 14:34 UTC by Georg Bolz
Modified: 2009-08-15 18:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Georg Bolz 2002-04-17 14:34:08 UTC
Hi,

I encountered problems with the call nan(NULL) in file trionan.c on our 
OSF1 (Tru64) V5.1A box. We use the C-Compiler V6.4 and CXX V6.3-014.
After making a patch to the system provided by Compaq the libm was
changed and now the program xmllint crashes with SEGFAULT within
the call nan(NULL). Unfortunately I dont know the id of the patch.

I made the following changes to the file trionan.c to get it work:

include <nan.h> // for dnan structure

In trio_nan function:

#if defined(TRIO_COMPILER_SUPPORTS_C99)

+++#ifdef TRIO_COMPILER_DECC
+++    dnan dnan_;
+++    result = nan(&dnan_);
+++#else
    result = nan(NULL);
+++#endif

#elif defined(NAN) && defined(__STDC_IEC_559__)

Lines with +++ signs were added.

Any ideas or comments?

Thank you
Georg Bolz
Base Development
viastore systems GmbH
g.bolz@viastore.de
Comment 2 Daniel Veillard 2002-08-27 09:59:39 UTC
Okay, this should be fixed in the last releases,

Daniel