This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Solaris Forte 7 &8 bug in test_long
Type: Stage:
Components: Interpreter Core Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: nmm1
Priority: normal Keywords:

Created on 2003-08-15 15:24 by nmm1, last changed 2022-04-10 16:10 by admin. This issue is now closed.

Messages (1)
msg17791 - (view) Author: Nick Maclaren (nmm1) Date: 2003-08-15 15:24
Python 2.2.3

This is for information.  It is a bug in Sun's Forte 7
and 8 compiler suite, very unlikely to affect most
people, and I am pursuing it at low priority with Sun.
I am reporting it as it will cause the tests to fail
if anyone switches floating-point trapping on.

In PyFloat_FromString in floatobject.c, there is a
call to strtod.  In test_long, this is supplied with
a huge argument.  Sun have misunderstood C99 (puke)
to state that the wording in Annex F requires strtod
to raise an exception if it overflows, and have again
misunderstood C99 to mean that implies SIGFPE if
trapping is on.  I don't blame them for getting
confused, but their interpretation is wrong - or, at
least that what was stated when C99 was in draft!

Generically, we can expect to see more vendors get
confused by C99, and especially by the horrible
floating-point changes.

Yuck.
History
Date User Action Args
2022-04-10 16:10:39adminsetgithub: 39071
2003-08-15 15:24:12nmm1create