[SciPy-dev] segmentation fault in latest cvs using scipy.test()

Nils Wagner nwagner at mecha.uni-stuttgart.de
Tue Nov 30 04:28:23 CST 2004


Pearu Peterson wrote:

>
>
> On Tue, 30 Nov 2004, Nils Wagner wrote:
>
>>> Now try
>>>
>>> scipy.lib.lapack.flapack.zheev([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.zheevd([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.cheev([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.cheevd([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.dsyev([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.dsyevd([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.ssyev([[1,2,3],[2,2,3],[3,3,6]])
>>> scipy.lib.lapack.flapack.ssyevd([[1,2,3],[2,2,3],[3,3,6]])
>>
>
> Which one did not crash? (The question may seem irrelevant for you but
> the answer may give additional information for those who try
> to fix such issues.)
>
>>> If you still get a crash, build lib.lapack without optimization:
>>>
>> No crash, but many failures ... (see below)
>
>
> You didn't include failure messages.
>
======================================================================
FAIL: check_syevr_vrange_mid (__main__.test_flapack_double)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 128, in check_syevr_vrange_mid
    self.check_syevr_vrange(vrange=[0,1])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.5]
        Array 2: [ 0.4876939]


======================================================================
FAIL: check_heevr_irange_high (__main__.test_flapack_double_complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 108, in check_heevr_irange_high
    self.check_syevr_irange(sym='he',irange=[1,2])
  File "tests/test_lapack.py", line 88, in check_syevr_irange
    assert_array_almost_equal(w,exact_w[rslice])
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [ 0.4876939  9.1822305]


======================================================================
FAIL: check_heevr_irange_low (__main__.test_flapack_double_complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 105, in check_heevr_irange_low
    self.check_syevr_irange(sym='he',irange=[0,1])
  File "tests/test_lapack.py", line 88, in check_syevr_irange
    assert_array_almost_equal(w,exact_w[rslice])
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [-0.6699243  0.4876939]


======================================================================
FAIL: check_heevr_vrange (__main__.test_flapack_double_complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 134, in check_heevr_vrange
    self.check_syevr_vrange(sym='he')
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 4.5  4.5  4.5]
        Array 2: [-0.6699243  0.4876939  9.1822305]


======================================================================
FAIL: check_heevr_vrange_high (__main__.test_flapack_double_complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 140, in check_heevr_vrange_high
    self.check_syevr_vrange(sym='he',vrange=[1,10])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 5.5]
        Array 2: [ 9.1822305]


======================================================================
FAIL: check_heevr_vrange_low (__main__.test_flapack_double_complex)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 137, in check_heevr_vrange_low
    self.check_syevr_vrange(sym='he',vrange=[-1,1])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [-0.6699243  0.4876939]


======================================================================
FAIL: check_syevr_irange_high (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 99, in check_syevr_irange_high
    self.check_syevr_irange(irange=[1,2])
  File "tests/test_lapack.py", line 88, in check_syevr_irange
    assert_array_almost_equal(w,exact_w[rslice])
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [ 0.4876939  9.1822305]


======================================================================
FAIL: check_syevr_irange_low (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 93, in check_syevr_irange_low
    self.check_syevr_irange(irange=[0,1])
  File "tests/test_lapack.py", line 88, in check_syevr_irange
    assert_array_almost_equal(w,exact_w[rslice])
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [-0.6699243  0.4876939]


======================================================================
FAIL: check_syevr_irange_mid (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 96, in check_syevr_irange_mid
    self.check_syevr_irange(irange=[1,1])
  File "tests/test_lapack.py", line 88, in check_syevr_irange
    assert_array_almost_equal(w,exact_w[rslice])
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.]
        Array 2: [ 0.4876939]


======================================================================
FAIL: check_syevr_vrange (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 4.5  4.5  4.5]
        Array 2: [-0.6699243  0.4876939  9.1822305]


======================================================================
FAIL: check_syevr_vrange_high (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 131, in check_syevr_vrange_high
    self.check_syevr_vrange(vrange=[1,10])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 5.5]
        Array 2: [ 9.1822305]


======================================================================
FAIL: check_syevr_vrange_low (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 125, in check_syevr_vrange_low
    self.check_syevr_vrange(vrange=[-1,1])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.  0.]
        Array 2: [-0.6699243  0.4876939]


======================================================================
FAIL: check_syevr_vrange_mid (__main__.test_flapack_float)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "tests/test_lapack.py", line 128, in check_syevr_vrange_mid
    self.check_syevr_vrange(vrange=[0,1])
  File "tests/test_lapack.py", line 119, in check_syevr_vrange
    assert_array_almost_equal(w,ew)
  File "/usr/lib/python2.3/site-packages/scipy_test/testing.py", line 
748, in assert_array_almost_equal
    assert cond,\
AssertionError:
Arrays are not almost equal (mismatch 100.0%):
        Array 1: [ 0.5]
        Array 2: [ 0.4876939]


----------------------------------------------------------------------
Ran 108 tests in 0.264s

FAILED (failures=48)

> Please try building lib.lapack without optimization.
>
I will do that asap.

Nils

> Pearu
>
> _______________________________________________
> Scipy-dev mailing list
> Scipy-dev at scipy.net
> http://www.scipy.net/mailman/listinfo/scipy-dev



 





More information about the Scipy-dev mailing list