Segmentation fault (core dumped) - Ubuntu 20.04
See original GitHub issueConfiguration
Ubuntu 20.04 Conda 4.8.2 Python 3.6.10
Problem
Iβm trying to install habitat api following these instructions.
Everything works until step 4, the installation and testing of habitat sim works well, no issues.
But when I try to run python examples/example.py
, python examples/benchmark.py
, or the code here, it just prints Segmentation fault (core dumped)
.
The output for python setup.py test
is a bit different, but ends the same way :
`
running pytest
Searching for pytest-mock
Best match: pytest-mock 3.1.0
Processing pytest_mock-3.1.0-py3.6.egg
Using /home/juungko/habitat/habitat-api/.eggs/pytest_mock-3.1.0-py3.6.egg running egg_info writing habitat.egg-info/PKG-INFO writing dependency_links to habitat.egg-info/dependency_links.txt writing requirements to habitat.egg-info/requires.txt writing top-level names to habitat.egg-info/top_level.txt reading manifest file βhabitat.egg-info/SOURCES.txtβ reading manifest template βMANIFEST.inβ writing manifest file βhabitat.egg-info/SOURCES.txtβ running build_ext ======================================== test session starts ========================================= platform linux β Python 3.6.10, pytest-5.4.2, py-1.8.1, pluggy-0.13.1 rootdir: /home/juungko/habitat/habitat-api, inifile: setup.cfg, testpaths: test plugins: mock-3.1.0, cov-2.9.0 collecting β¦ Fatal Python error: Segmentation fault
Current thread 0x00007fade7658740 (most recent call first): File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/llvmlite/binding/ffi.pyβ, line 113 in call File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/llvmlite/binding/targets.pyβ, line 60 in get_host_cpu_features File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/codegen.pyβ, line 881 in get_host_cpu_features File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/codegen.pyβ, line 782 in _get_host_cpu_features File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/codegen.pyβ, line 846 in _customize_tm_features File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/codegen.pyβ, line 652 in _init File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/codegen.pyβ, line 645 in init File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/cpu.pyβ, line 47 in init File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/compiler_lock.pyβ, line 32 in _acquire_compile_lock File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/base.pyβ, line 259 in init File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/registry.pyβ, line 31 in _toplevel_target_context File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/utils.pyβ, line 332 in get File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/registry.pyβ, line 47 in target_context File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/dispatcher.pyβ, line 670 in init File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/decorators.pyβ, line 189 in wrapper File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/decorators.pyβ, line 173 in jit File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/core/decorators.pyβ, line 236 in njit File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/typed/typeddict.pyβ, line 22 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/typed/init.pyβ, line 1 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/numba/init.pyβ, line 298 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/quaternion/numba_wrapper.pyβ, line 11 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/quaternion/quaternion_time_series.pyβ, line 8 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/quaternion/init.pyβ, line 13 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/habitat/core/utils.pyβ, line 11 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/habitat/core/dataset.pyβ, line 31 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/habitat/core/simulator.pyβ, line 16 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/habitat/core/agent.pyβ, line 13 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/habitat/init.pyβ, line 8 in <module> File β<frozen importlib._bootstrap>β, line 219 in _call_with_frames_removed File β<frozen importlib._bootstrap_external>β, line 678 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/habitat/habitat-api/test/test_baseline_agents.pyβ, line 11 in <module> File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/assertion/rewrite.pyβ, line 152 in exec_module File β<frozen importlib._bootstrap>β, line 665 in _load_unlocked File β<frozen importlib._bootstrap>β, line 955 in _find_and_load_unlocked File β<frozen importlib._bootstrap>β, line 971 in _find_and_load File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/py/_path/local.pyβ, line 701 in pyimport File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/python.pyβ, line 511 in _importtestmodule File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/python.pyβ, line 443 in _getobj File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/python.pyβ, line 261 in obj File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/python.pyβ, line 459 in _inject_setup_module_fixture File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/python.pyβ, line 446 in collect File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/runner.pyβ, line 264 in <lambda> File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/runner.pyβ, line 244 in from_call File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/_pytest/runner.pyβ, line 264 in pytest_make_collect_report File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/pluggy/callers.pyβ, line 187 in _multicall File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/pluggy/manager.pyβ, line 87 in <lambda> File β/home/juungko/anaconda3/envs/habitat/lib/python3.6/site-packages/pluggy/manager.pyβ, line 93 in _hookexec β¦ Segmentation fault (core dumped) ` Can you help me to get this working ?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top GitHub Comments
Hi @ulysse-bouchet While setting up the habitat-sim & habitat-api (see CI instructions ), I faced up with a similar error to what you described in the Problem section above.
I run
numba -s
to verify that the numba was installed successfully. ButSegmentation fault (core dumped)
message was printed instead of information about my system capabilities.Then I run
pip uninstall numba
to uninstalled numba . And installed it again but using condaconda install numba
instead of pip. (I also remember that this command updated one of numbaβs dependencies, but I donβt remember which exactly).After that, I was able to successfully run all tests and build documentation pages.
Thanks. Iβll soon get a new laptop with a better GPU, it should be ok with it.