FS#50425 - [python-numpy] illegal hardware instruction (core dumped)

Attached to Project: Arch Linux
Opened by Mark Gallagher (MarkG) - Wednesday, 17 August 2016, 18:38 GMT
Last edited by Doug Newgard (Scimmia) - Thursday, 18 August 2016, 14:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Felix Yan (felixonmars)
Architecture x86_64
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

Certain programs in python-numpy lead to a core dump in my installation.

Additional info:
* package version(s): numpy 1.11.1, python 3.5.2
* config and/or log files etc.

Steps to reproduce:

Run: python -c 'import numpy; numpy.test()'

Output:
Running unit tests for numpy
NumPy version 1.11.1
NumPy relaxed strides checking option: False
NumPy is installed in /usr/lib/python3.5/site-packages/numpy
Python version 3.5.2 (default, Jun 28 2016, 08:46:01) [GCC 6.1.1 20160602]
nose version 1.3.7
...............................S.............................................................................................................................................S...............................................S...............zsh: illegal hardware instruction (core dumped) python -c 'import numpy; numpy.test()'

A simple program ending in a core dump:

import numpy
a = numpy.identity(2)
b = numpy.dot(a,a)

Running this immediately yields "
zsh: illegal hardware instruction (core dumped) python debug.py".

Curiously, the program runs with no problem if I use the 1x1 identity matrix instead. Bash instead of zsh still leads to a core dump.
This task depends upon

Closed by  Doug Newgard (Scimmia)
Thursday, 18 August 2016, 14:25 GMT
Reason for closing:  Not a bug
Additional comments about closing:  atlas-lapack-base is no longer in the repos.
Comment by Doug Newgard (Scimmia) - Thursday, 18 August 2016, 03:35 GMT
What hardware?
Comment by Mark Gallagher (MarkG) - Thursday, 18 August 2016, 03:42 GMT
It's Arch 4.7.0-1 x86_64 running on a Lenovo Thinkpad T500 (the processor is a Core 2 Duo P8600). I'm not sure what's the most relevant info -- let me know if I missed anything.
Comment by Doug Newgard (Scimmia) - Thursday, 18 August 2016, 03:53 GMT
The Core 2 is very relevant. Illegal hardware instruction means it's likely trying to use features not supported by your processor.
Comment by Antonio Rojas (arojas) - Thursday, 18 August 2016, 09:20 GMT
which blas/lapack package are you using?
Comment by Mark Gallagher (MarkG) - Thursday, 18 August 2016, 14:22 GMT
Ah, there's the problem. I had the package atlas-lapack-base 3.10.3-1, which I see is far out of date. (I installed numpy quite a while ago and don't remember what the process was.) After replacing with the packages lapack and blas the problem is solved (are these the preferred versions?) My fault -- thanks all!
Comment by Doug Newgard (Scimmia) - Thursday, 18 August 2016, 14:25 GMT
Thanks Antonio, I missed that this was using lapack.

Loading...