andyvand / gmpy

Automatically exported from code.google.com/p/gmpy
GNU Lesser General Public License v3.0
0 stars 0 forks source link

Gmp testsuite causes interpreter floating point error on Mac OS X Leopard #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. svn checkout http://gmpy.googlecode.com/svn/trunk/ gmpy
2. python gmpy/test/gmpy_test_mpf.py

I would expect something ending with 'Test passed' (hopefully) or a report of 
failed tests.

Instead the python interpreter badly fails because of a floating point 
exception *in the 
interpreter*.

% python gmpy/test/gmpy_test_mpf.py
Unit tests for gmpy 1.02 release candidate (mpf functionality)
    running on Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17) 
[GCC 4.0.1 (Apple Inc. build 5465)]

Testing gmpy 1.02 (GMP 4.2.2) with default caching (20, 20, -2..11)
[1]    9923 floating point exception  python gmpy/test/gmpy_test_mpf.py

Then it appears the usual OS window informing that process Python has crashed 
and asking 
whether I want to inform apple.

I'm using 

Mac OS X Leopard 10.5.2
Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-
1228.4.31~1/RELEASE_I386 i386

Default Python 2.5
% python --version
Python 2.5.1

gmp 4.2.2 (make checked and working)

gmpy 1.02 RC

The rest of gmpy works (passes all the test excepted the one on mpf).

Original issue reported on code.google.com by enrico.franchi on 5 Apr 2008 at 12:59

GoogleCodeExporter commented 9 years ago
I think this bug is fixed in gmpy 1.03. Can you verify?

Thanks,

casevh

Original comment by casevh on 23 Jun 2008 at 11:48

GoogleCodeExporter commented 9 years ago
Fixed in 1.03 as per casevh's observations.

Original comment by alea...@gmail.com on 24 Jun 2008 at 2:59