Description
I use python3.8.4 and Cython-0.29.21, numpy-1.19.4 to test on mips platform;
when I cross compile over,and run "import numpy" it crashed,
Python 3.8.4 (default, Nov 24 2020, 10:53:37)
[GCC 4.9.2] on linux
Type "help", "copyright", "credits" or "license" for more information.
import numpy
/tmp/sda1/Python3/lib/python3.8/site-packages/numpy/core/_multiarray_umath.py:3: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
import sys, pkg_resources, imp
Segmentation fault (core dumped)
waiting for reply,thank you
Reproducing code example:
import numpy as np
<< your code here >>
Error message:
GNU gdb (GDB) 7.9
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "mipsel-linux".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3.8...(no debugging symbols found)...done.
[New LWP 25289]
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
warning: Unable to find libthread_db matching inferior's thread library, thread debugging will not be available.
Core was generated by `python3.8'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000 in ?? ()
(gdb) bt
#0 0x00000000 in ?? ()
#1 0x2c5155a4 in PyInit__multiarray_umath ()
at numpy/core/src/multiarray/multiarraymodule.c:4370
#2 0x2ba0e0dc in _PyImport_LoadDynamicModuleWithSpec ()
from /tmp/sda1/Python3/lib/libpython3.8d.so.1.0
Backtrace stopped: frame did not save the PC
NumPy/Python version information:
numpy 1.19.4 python 3.8.4 mips playform kernel 2.6.36+