question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Segmentation fault (core dumped) - Ubuntu 20.04

See original GitHub issue

Configuration

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:closed
  • Created 3 years ago
  • Comments:7

github_iconTop GitHub Comments

2reactions
rpartseycommented, Aug 5, 2020

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. But Segmentation 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 conda conda 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.

0reactions
ulysse-bouchetcommented, Jun 4, 2020

Thanks. I’ll soon get a new laptop with a better GPU, it should be ok with it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Segmentation Fault Core Dumped Ubuntu - Javatpoint
A segmentation fault appears when any program attempts for accessing a memory location that it's not permitted for accessing or attempts for accessing...
Read more >
gnu-make 3.82 run error on Ubuntu-20.04: Segmentation fault ...
I downloaded gnu-make-3.82 from gun and make & install it on a specific directory(e.g.dir) on my Ubuntu-20.04 machine. Then I run $file dir/make....
Read more >
Segmentation fault (core dumped) on Ubuntu 20.04 x64 + v0 ...
Hi, I have AMD + 2080TI. I am sending the following commands: bazel build -j 96 -c opt --copt -DMESA_EGL_NO_X11_HEADERS --copt -DEGL_NO_X11Β ...
Read more >
Segmentation fault (core dumped) on Ubuntu 20.04 - GitLab
It happens only when a model is displayed or a file opened. I am using Gmsh 4.4.1. version installed from the Ubuntu package...
Read more >
How to solve the segmentation fault (core dumped) error in ...
segmentation fault means an out-of-bounds memory address, and is an application (or library) problem. Look at /var/crash/*. Β· Some binary program crashed, butΒ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found