[Numpy-discussion] test_multiarray.TestIO.test_ascii segmentation fault with Python2.7
Pauli Virtanen
pav+sp at iki.fi
Tue Dec 15 11:07:47 EST 2009
Hi,
Tue, 15 Dec 2009 09:30:08 -0600, Bruce Southey wrote:
> After installing Python2.7, a patched nose
> (http://bitbucket.org/kumar303/nose-2_7_fixes/ because
> unittest._TextTestResult has been removed) and numpy '1.5.0.dev8011',
> numpy.test crashes with a segmentation fault with the test for:
> test_multiarray.TestIO.test_ascii
>
> If I understand the test correctly:
> $ python
> Python 2.7a1 (r27a1:76674, Dec 14 2009, 13:46:01) [GCC 4.4.1 20090725
> (Red Hat 4.4.1-2)] on linux2 Type "help", "copyright", "credits" or
> "license" for more information.
> >>> import numpy as np
> >>> from numpy.compat import asbytes, getexception
> >>> np.fromstring(asbytes('1 , 2 , 3 , 4'),sep=',')
> Segmentation fault
Please run it under gdb to obtain a backtrace.
$ gdb --args python
...
(gdb) run
...
(gdb) bt
...
> This code works under Python2.6 and numpy '1.5.0.dev8011'.
Please also test the 1.4.x branch
http://svn.scipy.org/svn/numpy/branches/1.4.x
Does it fail too on Python 2.7? There are very few code changes since
1.4.x on the path that the test exercises.
--
Pauli Virtanen
More information about the NumPy-Discussion
mailing list