llvmlite: Importing llvmlite on Github Actions MacOS crashes Python
Sorry I don’t have more info on what is going on but I noticed that importing numba on Github Actions MacOS runner throws an abort trap: 6 when getting to the llvmlite imports. This happens on the MacOS 10.15 runner on Python 3.6 and 3.7. The full logs can be found at https://github.com/micom-dev/micom/runs/637947756?check_suite_focus=true.
The relevant part of the logs:
Fatal Python error: Aborted
Current thread 0x000000011454cdc0 (most recent call first):
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/llvmlite/binding/ffi.py", line 113 in __call__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/llvmlite/binding/transforms.py", line 88 in _populate_module_pm
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/llvmlite/binding/transforms.py", line 95 in populate
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/codegen.py", line 697 in _module_pass_manager
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/codegen.py", line 664 in _init
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/codegen.py", line 645 in __init__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/cpu.py", line 47 in init
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/compiler_lock.py", line 32 in _acquire_compile_lock
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/base.py", line 259 in __init__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/registry.py", line 31 in _toplevel_target_context
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/utils.py", line 331 in __get__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/registry.py", line 47 in target_context
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/dispatcher.py", line 670 in __init__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/decorators.py", line 189 in wrapper
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/decorators.py", line 173 in jit
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/numba/core/decorators.py", line 236 in njit
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/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 728 in exec_module
[...]
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/pluggy/hooks.py", line 286 in __call__
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/lib/python3.7/site-packages/_pytest/config/__init__.py", line 125 in main
File "/Users/runner/hostedtoolcache/Python/3.7.6/x64/bin/pytest", line 8 in <module>
/Users/runner/runners/2.169.1/work/_temp/d017b5e1-8779-4c88-b9d6-e5a88227601f.sh: line 2: 1709 Abort trap: 6 pytest --benchmark-skip --cov=micom --cov-report=xml
##[error]Process completed with exit code 134.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 35 (30 by maintainers)
@esc seems to be fixed: https://github.com/cdiener/symengine_numba_issue/runs/2179356226?check_suite_focus=true
@certik maybe here: https://github.com/numba/numba/issues/6717#issuecomment-804284883
Using the following patch:
Results in exchanging the error for a test failure:
props go out to @sklam and @stuartarchibald for an OOB conversation that included the suggestion implemented above.