[Numpy-discussion] Bus error for Debian / SPARC on current trunk
Matthew Brett
matthew.brett@gmail....
Mon Mar 5 23:53:30 CST 2012
Hi,
On Mon, Mar 5, 2012 at 8:04 PM, Mark Wiebe <mwwiebe@gmail.com> wrote:
> I've pushed a bugfix to github, can you confirm that the crash goes away on
> your test box? Thanks for tracking that down, the stack trace was very
> helpful. Since x86 machines don't have as strict alignment requirements,
> bugs like this one will generally remain undetected until someone tests on
> an architecture like sparc.
Thanks - no Bus error. For your enjoyment: there were some failures
and errors from numpy.test("full")
======================================================================
ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose([1e-08, 1,
1000020.0000000099], [0, nan, 1000000.0])
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/tests/test_numeric.py",
line 1288, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/numeric.py",
line 2020, in allclose
return all(less_equal(absolute(x-y), atol + rtol * absolute(y)))
RuntimeWarning: invalid value encountered in absolute
======================================================================
ERROR: test_numeric.TestIsclose.test_ip_isclose_allclose(nan, [nan, nan, nan])
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/tests/test_numeric.py",
line 1288, in tst_isclose_allclose
assert_array_equal(isclose(x, y).all(), allclose(x, y), msg % (x, y))
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/numeric.py",
line 2020, in allclose
return all(less_equal(absolute(x-y), atol + rtol * absolute(y)))
RuntimeWarning: invalid value encountered in absolute
======================================================================
ERROR: Test a special case for var
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/ma/tests/test_core.py",
line 2725, in test_varstd_specialcases
_ = method(out=nout)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/ma/core.py",
line 4778, in std
dvar = sqrt(dvar)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/ma/core.py",
line 849, in __call__
m |= self.domain(d)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/ma/core.py",
line 801, in __call__
return umath.less(x, self.critical_value)
RuntimeWarning: invalid value encountered in less
======================================================================
FAIL: test_complex_dtype_repr (test_dtype.TestString)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/tests/test_dtype.py",
line 401, in test_complex_dtype_repr
"dtype([('a', '<M8[D]'), ('b', '<m8[us]')])")
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/testing/utils.py",
line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: "dtype([('a', '>M8[D]'), ('b', '>m8[us]')])"
DESIRED: "dtype([('a', '<M8[D]'), ('b', '<m8[us]')])"
======================================================================
FAIL: test_complex_dtype_str (test_dtype.TestString)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/core/tests/test_dtype.py",
line 353, in test_complex_dtype_str
"[('a', '<m8[D]'), ('b', '<M8[us]')]")
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/testing/utils.py",
line 313, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: "[('a', '>m8[D]'), ('b', '>M8[us]')]"
DESIRED: "[('a', '<m8[D]'), ('b', '<M8[us]')]"
======================================================================
FAIL: test_kind.TestKind.test_all
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/nose-1.1.2-py2.6.egg/nose/case.py",
line 197, in runTest
self.test(*self.arg)
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/f2py/tests/test_kind.py",
line 30, in test_all
'selectedrealkind(%s): expected %r but got %r' % (i,
selected_real_kind(i), selectedrealkind(i)))
File "/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy/testing/utils.py",
line 34, in assert_
raise AssertionError(msg)
AssertionError: selectedrealkind(16): expected 10 but got 16
----------------------------------------------------------------------
Ran 3693 tests in 362.416s
FAILED (KNOWNFAIL=3, SKIP=6, errors=3, failures=3)
Running unit tests for numpy
NumPy version 1.7.0.dev-7c07089
NumPy is installed in
/home/matthew/.virtualenvs/np-devel/lib/python2.6/site-packages/numpy
Python version 2.6.6 (r266:84292, Dec 26 2010, 23:29:26) [GCC 4.4.5
20100913 (prerelease)]
nose version 1.1.2
Thanks,
Matthew
More information about the NumPy-Discussion
mailing list