Fatal Python error: Segmentation fault - test_arpack.py::test_symmetric_modes
See original GitHub issueMy issue is about a segmentation fault when trying to run tests.
Reproducing code example:
python runtests.py -v -s sparse
Error message:
scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py::test_symmetric_modes Fatal Python error: Segmentation fault
Current thread 0x00007fe14f9fa740 (most recent call first):
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/_lib/_util.py", line 121 in _aligned_zeros
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/arpack/arpack.py", line 518 in __init__
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/arpack/arpack.py", line 1681 in eigsh
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py", line 244 in eval_evec
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/sparse/linalg/eigen/arpack/tests/test_arpack.py", line 404 in test_symmetric_modes
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/python.py", line 184 in pytest_pyfunc_call
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/python.py", line 1479 in runtest
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 135 in pytest_runtest_call
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 217 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 244 in from_call
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 217 in call_runtest_hook
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 186 in call_and_report
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 100 in runtestprotocol
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/runner.py", line 85 in pytest_runtest_protocol
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/main.py", line 272 in pytest_runtestloop
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/main.py", line 247 in _main
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/main.py", line 191 in wrap_session
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/main.py", line 240 in pytest_cmdline_main
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/callers.py", line 187 in _multicall
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 87 in <lambda>
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/manager.py", line 93 in _hookexec
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/home/kaleab/.conda/envs/scipy/lib/python3.7/site-packages/_pytest/config/__init__.py", line 125 in main
File "/home/kaleab/Documents/Code/scipy/build/testenv/lib/python3.7/site-packages/scipy/_lib/_testutils.py", line 67 in __call__
File "runtests.py", line 313 in main
File "runtests.py", line 525 in <module>
Segmentation fault (core dumped)
Scipy/Numpy/Python version information:
Python 3.7.7/python 3.6.0, pytest-5.4.1/ pytest 4.0.0 , py-1.8.1, pluggy-0.13.1, numpy 1.18.1
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Tests run when called by name but seg fault when part of a ...
Hi, I'm running the python3-pytest package of Ubuntu 18.04, v3.3.2-2, with cov-2.5.1 from a package and faulthandler-1.5.0 from pip.
Read more >What causes a Python segmentation fault? - Stack Overflow
This happens when a python extension (written in C) tries to access a memory beyond reach. You can trace it in following ways....
Read more >runtime/interp/thread state refactoring leads to segmentation ...
The segfault either happens in the `ssl` module or the `selectors` ... test/test_reproduce.py Fatal Python error: Segmentation fault Thread ...
Read more >Solved: segmentation fault while pytest - Atlassian Community
Solved: Old builds stopped working recently. We get a segmanatation fault in something related to pymongo / or maybe to tensorflow.
Read more >Fatal Python error: Segmentation fault - PyMC Discourse
Hello everyone, I am struggling with the segmentation error while using pymc4. Any help will be very much appreciated.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This test is also failing on master intermittently, but not a segfault.
The output of
conda list
may be useful here. Also OS and compiler versions.