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: complex pow() crash on Alpha
Type: crash Stage:
Components: Extension Modules Versions: Python 2.6
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: christian.heimes, doerwalter, georg.brandl, hawking, loewis, mark.dickinson
Priority: normal Keywords:

Created on 2003-06-17 18:17 by doerwalter, last changed 2022-04-10 16:09 by admin. This issue is now closed.

Messages (8)
msg60346 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2003-06-17 18:17
Python crashes with a floating point exception on SF's
 Alpha/Linux 2.2 machine in the compile farm:
$ ./python
Python 2.3b1+ (#2, Jun 17 2003, 10:50:58) 
[GCC 2.95.4 20011002 (Debian prerelease)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>> pow(1e200+1j,1e200+1j)
Floating point exception
$
msg60347 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-06-21 13:51
Logged In: YES 
user_id=21627

Can you tell whether you were compiling with -ieee?
msg60348 - (view) Author: Walter Dörwald (doerwalter) * (Python committer) Date: 2003-06-23 11:13
Logged In: YES 
user_id=89016

Doesn't seem that way: gcc -pthread -c  -DNDEBUG -g -O3
-Wall -Wstrict-prototypes -I. -I./Include  -DPy_BUILD_CORE
-o Objects/complexobject.o Objects/complexobject.c

Changing OPT in Makefile to include -ieee and recompiling
doesn't fix the problem, I still get a "Floating point
exception".
msg60349 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-06-23 21:24
Logged In: YES 
user_id=21627

Ah, I see: LINUX. This is probably a compiler bug, without
even looking at the details.
msg61326 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2008-01-20 18:51
Does the error occur with Python 2.6, too?
msg67345 - (view) Author: Ali Polatel (hawking) Date: 2008-05-25 12:51
Probably related to this. test_pow fails on alpha with both 2.4.4 and 2.5.2.

test test_pow failed -- Traceback (most recent call last):
  File
"/var/tmp/portage/dev-lang/python-2.4.4-r9/work/Python-2.4.4/Lib/test/test_pow.py",
line 109, in test_bug705231
    eq(pow(a, 1.23e167), 1.0)
ValueError: negative number cannot be raised to a fractional power

I'll test with 2.6 and report back.
msg70079 - (view) Author: Georg Brandl (georg.brandl) * (Python committer) Date: 2008-07-20 11:23
Did you get some results?
msg82270 - (view) Author: Mark Dickinson (mark.dickinson) * (Python committer) Date: 2009-02-16 20:47
Closing this due to lack of feedback.

Ali Polatel's report looks like an entirely separate issue; most likely an 
alpha libm bug.
History
Date User Action Args
2022-04-10 16:09:17adminsetgithub: 38670
2009-02-16 20:47:49mark.dickinsonsetstatus: pending -> closed
resolution: out of date
messages: + msg82270
2008-07-20 14:57:42mark.dickinsonsetnosy: + mark.dickinson
2008-07-20 11:23:47georg.brandlsetnosy: + georg.brandl
messages: + msg70079
2008-05-25 12:52:00hawkingsetnosy: + hawking
messages: + msg67345
2008-01-20 18:51:11christian.heimessetstatus: open -> pending
versions: + Python 2.6, - Python 2.3
nosy: + christian.heimes
messages: + msg61326
components: + Extension Modules, - None
type: crash
2003-06-17 18:17:29doerwaltercreate