[SciPy-User] Bus error 10 in statically linked scipy.test()

Terry Westley scipy-user at sabonrai.com
Wed May 8 10:20:15 EDT 2013


Please let me know if there's a better mailing list for this question. This
is not really a user nor a dev question, but I'm starting here...

I'm trying to build a statically linked version of python interpreter with
numpy and scipy.

Numpy.test() runs to completion: FAILED (KNOWNFAIL=5, SKIP=25, errors=1). A
shared library built with the same components results in "OK (KNOWNFAIL=5,
SKIP=6)" so there's clearly a problem here.

But I'm ignoring this error for now because scipy error is more serious:
Bus Error 10. It gets a bus error without displaying any results
whatsoever, so I've run a trace version of the tests as follows:

    import trace, scipy
    tracer = trace.Trace(count=False, trace=True)
    tracer.run('scipy.test("full", 10)')

The trace is 152,000 lines so no way am I going to include that in this
email. If you're interested and can help me:
- text file, http://www.sabonrai.com/scipy-user/scipy-test-bus-error.txt,
7.34 MB
- zipped, http://www.sabonrai.com/scipy-user/scipy-test-bus-error.zip, 321
KB

I can't make heads or tails of this trace output; I don't really know
anything about scipy self test. It seems to fail shortly after importing vq
and hierarchy from cluster.

Environment:
- Mac OS X 10.7.5
- Python 2.7.3
- Numpy 1.7.0
- Scipy 0.12.0
- Nose 1.3.0
- clang: Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn),
Target: x86_64-apple-darwin11.4.2
- clang++: Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn),
Target: x86_64-apple-darwin11.4.2
- gfortran: GNU Fortran (MacPorts gcc46 4.6.3_9) 4.6.3

Thanks for any suggestions.

--Terry

P.S. Yes, I've wondered if the numpy error is causing the scipy error. This
is the end of the numpy.test() run:

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute '__file__')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/pym/lib/python2.7/site-packages/nose/loader.py", line 413, in
loadTestsFromName
    addr.filename, addr.module)
  File "/pym/lib/python2.7/site-packages/nose/importer.py", line 47, in
importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/pym/lib/python2.7/site-packages/nose/importer.py", line 94, in
importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/pym/lib/python2.7/site-packages/numpy/tests/test_ctypeslib.py",
line 9, in <module>
    cdll = load_library('multiarray', np.core.multiarray.__file__)
AttributeError: 'module' object has no attribute '__file__'

----------------------------------------------------------------------
Ran 4437 tests in 66.937s

FAILED (KNOWNFAIL=5, SKIP=25, errors=1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.scipy.org/pipermail/scipy-user/attachments/20130508/d78000a6/attachment.html>


More information about the SciPy-User mailing list