Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Numpy 1.19.5, Python 3.6.9: Import results in segmentation fault #18468

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
codethief opened this issue Feb 22, 2021 · 7 comments
Open

Numpy 1.19.5, Python 3.6.9: Import results in segmentation fault #18468

codethief opened this issue Feb 22, 2021 · 7 comments

Comments

@codethief
Copy link

Reproducing code example:

I installed Numpy through pip3 install --user numpy==1.19.5 on an ARM64 device (Nvidia Jetson Nano) running Ubuntu 20.04 and cannot import it in Python. Interestingly, Numpy 1.16.1 and 1.19.4 work.

Error message:

$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Illegal instruction (core dumped)

NumPy/Python version information:

  • Python 3.6.9
  • Numpy 1.19.5

Related issues:

@mattip
Copy link
Member

mattip commented Feb 22, 2021

Someone needs to debug this on the platform in question. Is there a way to get access to this hardware, or could you try a debug build? There was no stack trace or hint as to which instruction failed?

@codethief
Copy link
Author

codethief commented Feb 22, 2021

@mattip Thanks for responding so quickly!

Is there a way to get access to this hardware, or could you try a debug build?

I'm afraid I only have this one device and can't open it up for anyone else. Is there a fast way to install a debug build?

There was no stack trace or hint as to which instruction failed?

No. I could provide a coredump, though, in case that helps?

@leofang
Copy link
Contributor

leofang commented Feb 28, 2021

If you could generate a core dump, I wonder if you could take one step further by examining the traceback in gdb? Even if it's not a debug build, experienced NumPy developers (not me!) could probably still guess the source of failure.

@charris
Copy link
Member

charris commented Feb 28, 2021

IIRC, there have been other reports on Jetson.

@codethief
Copy link
Author

@charris I just searched for other issues again and, this time, also included closed tickets. I suppose you're referring to #18131 ? It seems to be exactly the same issue that I am having but I can't tell which Numpy release includes the fix – in any case, I suppose I'll have to upgrade Numpy v1.20.x to get it?

@joyven
Copy link

joyven commented Mar 4, 2021

Reproducing code example:

I installed Numpy through pip3 install --user numpy==1.19.5 on an ARM64 device (Nvidia Jetson Nano) running Ubuntu 20.04 and cannot import it in Python. Interestingly, Numpy 1.16.1 and 1.19.4 work.

Error message:

$ python3
Python 3.6.9 (default, Oct  8 2020, 12:12:24) 
[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Illegal instruction (core dumped)

NumPy/Python version information:

  • Python 3.6.9
  • Numpy 1.19.5

Related issues:

Numpy 1.19.4 ,python 3.6.9 , opencv-python and opencv_contrib_python 4.5.1.48 work, tks~~~

@yoonsikp
Copy link

yoonsikp commented Mar 4, 2021

Had to rollback to 1.19.4 as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants