Issue738066
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.
Created on 2003-05-15 05:52 by jensj, last changed 2022-04-10 16:08 by admin. This issue is now closed.
Messages (8) | |||
---|---|---|---|
msg16014 - (view) | Author: Jens Jørgen Mortensen (jensj) | Date: 2003-05-15 05:52 | |
Multiplying two numbers makes the interpreter crash. The architecture is an Alpha running: Digital UNIX V4.0F (Rev. 1229); Sat Oct 26 16:44:55 MET DST 2002 Compaq Tru64 UNIX V4.0F (Rev. 1229); Thu Mar 23 08:45:31 MET 2000 Python 2.2.1 (#1, Jun 4 2002, 15:33:18) [C] on osf1V4 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.uname() ('OSF1', 'asrv', 'V4.0', '1229', 'alpha') >>> 1e300 * 1e300 Floating exception (core dumped) |
|||
msg16015 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2003-05-15 14:11 | |
Logged In: YES user_id=33168 Is this still a problem with 2.2.2 or 2.3? |
|||
msg16016 - (view) | Author: Tim Peters (tim.peters) * | Date: 2003-05-15 18:31 | |
Logged In: YES user_id=31435 Python inherits its floating-point behavior from whatever your C compiler and libraries happen to do. So, presumably a plain C program would do the same thing with this example. If that's not what you want, your C compiler probably supports some option to compile code that acts more the way you want it to work, and then you should compile Python with that option too. IIRC (I've never run on an Alpha), by default Alphas don't have compliant IEEE-754 fp arithmetic, and by default C compilers on Alphas don't try to repair that. If the compiler you're using as an option named "-ieee", try it. |
|||
msg16017 - (view) | Author: Jens Jørgen Mortensen (jensj) | Date: 2003-05-19 15:52 | |
Logged In: YES user_id=716463 I tried with Python-2.3b1: Same problem. I then tried building with -ieee added to CFLAGS in Makefile - That solved the problem! Thanks |
|||
msg16018 - (view) | Author: Tim Peters (tim.peters) * | Date: 2003-05-19 17:42 | |
Logged In: YES user_id=31435 If someone knows how to make a config patch to pass -ieee automatically to this compiler, that would be helpful -- IIRC, this comes up a couple times per year. |
|||
msg16019 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2003-05-25 16:45 | |
Logged In: YES user_id=33168 This problem has a tentative solution. Please test the patch in http://python.org/sf/719359 Scroll to the bottom and click Download on the osf-opts.patch line. Thanks. |
|||
msg16020 - (view) | Author: Jens Jørgen Mortensen (jensj) | Date: 2003-05-26 07:15 | |
Logged In: YES user_id=716463 I have tested the patch (http://python.org/sf/719359) and it fixes my bug. Thanks. |
|||
msg16021 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2003-05-26 14:14 | |
Logged In: YES user_id=33168 Checked in as: * configure 1.402 * configure.in 1.413 |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:08:46 | admin | set | github: 38505 |
2003-05-15 05:52:12 | jensj | create |