[Python-bugs-list] [ python-Bugs-459464 ] Math_test overflowerror on sparc64 linux

noreply@sourceforge.net noreply@sourceforge.net
Mon, 10 Sep 2001 08:43:18 -0700


Bugs item #459464, was opened at 2001-09-07 02:34
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=459464&group_id=5470

Category: Extension Modules
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Tim Peters (tim_one)
Summary: Math_test overflowerror on sparc64 linux

Initial Comment:
Traceback(most recent call last):
testit('asin(-1)',math.asin(-1),-math.pi/2)
OverflowError: math range error

----------------------------------------------------------------------

>Comment By: Martin v. Löwis (loewis)
Date: 2001-09-10 08:43

Message:
Logged In: YES 
user_id=21627

Also, what compiler did you use? gcc on sparc64 (all
versions) has known floating point bugs, so that it is not
capable of building reliable 64-bit binaries, see
gcc.gnu.org for details.
The test works fine for me on Solaris 8, with the Sun WS6U1
compiler.

----------------------------------------------------------------------

Comment By: Tim Peters (tim_one)
Date: 2001-09-07 02:58

Message:
Logged In: YES 
user_id=31435

Needs more info.

Which version of Python?

If you try asin(-1) in a C program on this box, does the 
math library set errno?  If so, it's a platform C bug, and 
you should report it to your C vendor (Python doesn't do 
anything with asin except call the platform asin, and if 
that sets errno to ERANGE, Python raises OverflowError; asin
(-1) should not set errno to ERANGE, but if it does there's 
nothing Python can do about that).

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=459464&group_id=5470