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

noreply@sourceforge.net noreply@sourceforge.net
Thu, 10 Jan 2002 23:33:10 -0800


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: 3rd Party
Status: Open
Resolution: Wont Fix
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: 2002-01-10 23:33

Message:
Logged In: YES 
user_id=21627

One further piece of information: If mathmodule is linked
into the interpreter, the test passes fine.

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

Comment By: Martin v. Löwis (loewis)
Date: 2002-01-10 23:31

Message:
Logged In: YES 
user_id=21627

Re-opening, this can be reproduced on the SF compile farm.
It is not a sparc64 issue, since this is all 32-bit userland.

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

Comment By: Tim Peters (tim_one)
Date: 2001-09-17 12:45

Message:
Logged In: YES 
user_id=31435

Closed for lack of followup; presumed to be a platform libm 
bug.

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

Comment By: Tim Peters (tim_one)
Date: 2001-09-13 20:20

Message:
Logged In: YES 
user_id=31435

If there isn't any followup on this by the weekend, I'm 
going to close it.

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

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