[Python-Dev] troubling math bug under IRIX 6.5
Flying Cougar Burnette
tommy@ilm.com
Tue, 13 Feb 2001 12:04:28 -0800 (PST)
Tim Peters writes:
| [Flying Cougar Burnette]
| > ...
| > >>> 4 * math.exp(-0.5)
| > Bus error (core dumped)
|
| Now let's look at the important <wink> part:
|
| > (tommy@mace)/u0/tommy/pycvs/python/dist/src$ ./python
| > Python 2.1a2 (#2, Feb 13 2001, 09:49:17) [C] on irix6
| ^^^^^
figgered as much...
|
| The first thing to try on any SGI box is to recompile Python with
| optimization turned off. After that confirms it's the compiler's fault, we
| can try to figure out where it's screwing up. Do either of these blow up
| too?
|
| >>> 4 * 0.60653065971263342
| >>> 4.0 * math.exp(-0.5)
yup.
|
| > is it just me?
|
| Yup. So long as you use SGI software, it always will be <wink>.
|
| and-i-say-that-as-an-sgi-shareholder-ly y'rs - tim
one these days sgi... Pow! Right to the Moon! ;)
Okay, I recompiled after blanking OPT= in Makefile and things now
work. This is where I start swearing "But, this has never happened to
me before!" and the kind, gentle response is "Don't worry, it happens
to lots of guys..." ;)
And the next step is... ?