Skip to content

Python library segfaulting on macOS Montery, Intel Core I9, python 3.9 with Conda #24

@taalexander

Description

@taalexander

Invoking pytest test/python_lib gives:

Current thread 0x0000000108bc6600 (most recent call first):
  File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 1173 in create_module
  File "<frozen importlib._bootstrap>", line 565 in module_from_spec
  File "<frozen importlib._bootstrap>", line 666 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
  File "/Users/thomas/Devel/ibm/internal/qss-compiler/build/qss-compiler/python_lib/qss_compiler/__init__.py", line 7 in <module>
  File "<frozen importlib._bootstrap>", line 228 in _call_with_frames_removed
  File "<frozen importlib._bootstrap_external>", line 855 in exec_module
  File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
  File "/Users/thomas/Devel/ibm/internal/qss-compiler/qss-compiler/test/python_lib/test_compile.py", line 11 in <module>
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/assertion/rewrite.py", line 171 in exec_module
  File "<frozen importlib._bootstrap>", line 680 in _load_unlocked
  File "<frozen importlib._bootstrap>", line 986 in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 1007 in _find_and_load
  File "<frozen importlib._bootstrap>", line 1030 in _gcd_import
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/importlib/__init__.py", line 127 in import_module
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/pathlib.py", line 533 in import_path
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/python.py", line 599 in _importtestmodule
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/python.py", line 510 in _getobj
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/python.py", line 296 in obj
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/python.py", line 527 in _inject_setup_module_fixture
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/python.py", line 513 in collect
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/runner.py", line 371 in <lambda>
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/runner.py", line 340 in from_call
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/runner.py", line 371 in pytest_make_collect_report
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/runner.py", line 544 in collect_one_node
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 825 in genitems
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 657 in perform_collect
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 332 in pytest_collection
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 321 in _main
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 268 in wrap_session
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/main.py", line 315 in pytest_cmdline_main
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_callers.py", line 39 in _multicall
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_manager.py", line 80 in _hookexec
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/pluggy/_hooks.py", line 265 in __call__
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/config/__init__.py", line 165 in main
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/lib/python3.9/site-packages/_pytest/config/__init__.py", line 188 in console_main
  File "/Users/thomas/opt/anaconda3/envs/qss-compiler/bin/pytest", line 8 in <module>
zsh: segmentation fault  pytest ../qss-compiler/test/python_lib

Similarily import qss_compiler segfaults.

Of note when building is ld: warning: -undefined dynamic_lookup may not work with chained fixups

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions