pytest icon indicating copy to clipboard operation
pytest copied to clipboard

pytest flaky segfaults after running tests, with macOS and Python 3.12

Open mwestphal opened this issue 2 years ago • 9 comments

  • [x] a detailed description of the bug or problem you are having

pytest flaky segfauls after running tests on my library when run with python 3.12 on macOS. The exit code is -11 and faulthandler does not report anything at all:

   + /bin/sh -c 'pytest -s /Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing'
  ============================= test session starts ==============================
  platform darwin -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0
  rootdir: /Users/runner/work/f3d-superbuild/f3d-superbuild/f3d
  configfile: pyproject.toml
  collected 36 items
  
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py ....x..
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py ......
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py .....
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image_compare.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_loader.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py ....Option hello does not exist
  x....Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  .....
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_plugins.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_utils.py .
  
  ==================================== PASSES ====================================
  =========================== short test summary info ============================
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_properties
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_get_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_set_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_default_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_moves
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_resets
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Camera
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_CompareWithFile
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_ImageData
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Options
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Plugins
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Utils
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_render_rgb
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_render_rgba
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_set_data
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_set_wrong_data
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_save
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image_compare.py::test_compare_with_file
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_loader.py::test_load_memory
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_closest_option
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_setitem
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_getitem
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_get_non_existent_key
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_len
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_iter
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_contains
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_set_options
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_to_dict
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_update_from_dict
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_update_from_kv_pairs
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_is_same
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_is_copy
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_plugins.py::test_plugins_list
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_utils.py::test_text_distance
  XFAIL ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_state_compare - CameraState equality not implemented
  XFAIL ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_set_non_existent_key - f3d::options::set does not throw, should it?
  ======================== 34 passed, 2 xfailed in 2.34s =========================
                                                              ✕ 8.32s
Error: Command ['/bin/sh', '-c', 'pytest -s /Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing'] failed with code -11. None

Error: Process completed with exit code 1.

https://github.com/f3d-app/f3d-superbuild/actions/runs/6958747584/job/18973662675

It is not specific to my library as this bug is visible in other projects:

https://github.com/daquexian/onnx-simplifier/actions/runs/3852139468

I have not yet been able to reproduce locally, I only see this in CI. I have no access to a macOS machine sadly.

  • [x] output of pip list from the virtual environment you are using

Reproduce in cibuildwheel with pytest installed by cibuildwheel.

  • [x] pytest and operating system versions

pytest-7.4.3 macOS 12

  • [x] minimal example if possible

Not reproduced locally yet.

I know this is not really fixable with the information I'm providing. At least it is somewhere people searching for such an issue will find and report in so more information can be gathered.

Feel free to close if not adequate.

mwestphal avatar Nov 28 '23 07:11 mwestphal

It seems like the segfault Happens after pytest shuts down

I recommend starting python -X ... -m pytest to ensure the fault handler is globally enabled

Please look up the exact option in the docs

RonnyPfannschmidt avatar Nov 28 '23 08:11 RonnyPfannschmidt

Thanks, I definitely will!

mwestphal avatar Nov 28 '23 08:11 mwestphal

So I had the issue with python -X faulthandler -X dev -m pytest -s ... and it doesnt show any more information:

  Trying pytest a maximum of 2 times
  ============================= test session starts ==============================
  platform darwin -- Python 3.12.0, pytest-7.4.3, pluggy-1.3.0
  rootdir: /Users/runner/work/f3d-superbuild/f3d-superbuild/f3d
  configfile: pyproject.toml
  collected 36 items
  
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py ....x..
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py ......
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py .....
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image_compare.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_loader.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py ....Option hello does not exist
  x....Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  Option render.background.hdri is deprecated
  .....
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_plugins.py .
  ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_utils.py .
  
  ==================================== PASSES ====================================
  =========================== short test summary info ============================
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_properties
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_get_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_set_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_default_state
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_moves
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_resets
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Camera
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_CompareWithFile
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_ImageData
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Options
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Plugins
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_deprecated.py::test_legacy_Utils
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_render_rgb
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_render_rgba
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_set_data
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_set_wrong_data
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image.py::test_save
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_image_compare.py::test_compare_with_file
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_loader.py::test_load_memory
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_closest_option
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_setitem
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_getitem
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_get_non_existent_key
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_len
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_iter
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_contains
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_set_options
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_to_dict
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_update_from_dict
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_update_from_kv_pairs
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_is_same
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_is_copy
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_plugins.py::test_plugins_list
  PASSED ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_utils.py::test_text_distance
  XFAIL ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_camera.py::test_state_compare - CameraState equality not implemented
  XFAIL ../../../../../../../../../Users/runner/work/f3d-superbuild/f3d-superbuild/f3d/python/testing/test_options.py::test_set_non_existent_key - f3d::options::set does not throw, should it?
  ======================== 34 passed, 2 xfailed in 4.57s =========================
  /Users/runner/work/f3d-superbuild/f3d-superbuild/source/.github/actions/wheels/test_with_pytest_retry.sh: line 38:  4714 Segmentation fault: 11  python -X faulthandler -X dev -m pytest -s "$1/python/testing"
  Not retrying

mwestphal avatar Nov 29 '23 07:11 mwestphal

At first glance this hints that the issue after the python Interpreter shutdown, in that case attaching a debugger is required

RonnyPfannschmidt avatar Nov 29 '23 09:11 RonnyPfannschmidt

Also in case the issue is local to a specific machine, I recommend verifying your binaries and running memtest data corruption is very rare and unlikely, but when it hits, it's most puzzling

RonnyPfannschmidt avatar Nov 29 '23 09:11 RonnyPfannschmidt

in that case attaching a debugger is required Also in case the issue is local to a specific machine

This is in github CI using cibuildwheel, I'm afraid I wont be able to provide more information unless I'm able to reproduce locally.

mwestphal avatar Nov 29 '23 09:11 mwestphal

Observed same problem with linux and python 3.12. It is also a github ci action, so not sure if I can reproduce locally. The seg fault error happened after all tests were ran and passed.

Error:

2023-12-12T06:12:59.4803206Z [W socket.cpp:697] [c10d] The client socket has failed to connect to [localhost]:48899 (errno: 99 - Cannot assign requested address).
2023-12-12T06:12:59.4804180Z Compute Kernel is dense, caching params will be ignored
2023-12-12T06:12:59.4804766Z Compute Kernel is dense, caching params will be ignored
2023-12-12T06:12:59.4805343Z Compute Kernel is dense, caching params will be ignored
2023-12-12T06:12:59.4805546Z Compute Kernel is dense, caching params will be ignored
2023-12-12T06:12:59.4805691Z Fatal Python error: Segmentation fault
2023-12-12T06:12:59.4805700Z 
2023-12-12T06:12:59.4805938Z Current thread 0x00007ff18ef55740 (most recent call first):
2023-12-12T06:12:59.4806868Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 113 in _call_store
2023-12-12T06:12:59.4807766Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 64 in __init__
2023-12-12T06:12:59.4808717Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/c10d_rendezvous_backend.py", line 253 in create_backend
2023-12-12T06:12:59.4809594Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/registry.py", line 36 in _create_c10d_handler
2023-12-12T06:12:59.4810412Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/api.py", line 258 in create_handler
2023-12-12T06:12:59.4811305Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/elastic/rendezvous/registry.py", line 66 in get_rendezvous_handler
2023-12-12T06:12:59.4812028Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/launcher/api.py", line 238 in launch_agent
2023-12-12T06:12:59.4812735Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/torch/distributed/launcher/api.py", line 135 in __call__
2023-12-12T06:12:59.4813242Z   File "/pytorch/torchrec/torchrec/metrics/test_utils/__init__.py", line 384 in rec_metric_value_test_launcher
2023-12-12T06:12:59.4813715Z   File "/pytorch/torchrec/torchrec/metrics/tests/test_accuracy.py", line 66 in test_fused_accuracy
2023-12-12T06:12:59.4814149Z   File "/opt/conda/envs/build_binary/lib/python3.12/unittest/case.py", line 589 in _callTestMethod
2023-12-12T06:12:59.4814513Z   File "/opt/conda/envs/build_binary/lib/python3.12/unittest/case.py", line 634 in run
2023-12-12T06:12:59.4815011Z   File "/opt/conda/envs/build_binary/lib/python3.12/unittest/case.py", line 690 in __call__
2023-12-12T06:12:59.4815591Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/unittest.py", line 333 in runtest
2023-12-12T06:12:59.4816246Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 169 in pytest_runtest_call
2023-12-12T06:12:59.4816901Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
2023-12-12T06:12:59.4817476Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
2023-12-12T06:12:59.4818051Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
2023-12-12T06:12:59.4818617Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 262 in <lambda>
2023-12-12T06:12:59.4819195Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 341 in from_call
2023-12-12T06:12:59.4819832Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 261 in call_runtest_hook
2023-12-12T06:12:59.4820451Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 222 in call_and_report
2023-12-12T06:12:59.4821086Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 133 in runtestprotocol
2023-12-12T06:12:59.4821752Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/runner.py", line 114 in pytest_runtest_protocol
2023-12-12T06:12:59.4822344Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
2023-12-12T06:12:59.4822934Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
2023-12-12T06:12:59.4823504Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
2023-12-12T06:12:59.4824140Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/main.py", line 349 in pytest_runtestloop
2023-12-12T06:12:59.4824729Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
2023-12-12T06:12:59.4825305Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
2023-12-12T06:12:59.4825880Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
2023-12-12T06:12:59.4826419Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/main.py", line 324 in _main
2023-12-12T06:12:59.4827000Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/main.py", line 270 in wrap_session
2023-12-12T06:12:59.4827639Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/main.py", line 317 in pytest_cmdline_main
2023-12-12T06:12:59.4828227Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_callers.py", line 39 in _multicall
2023-12-12T06:12:59.4828820Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_manager.py", line 80 in _hookexec
2023-12-12T06:12:59.4829438Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pluggy/_hooks.py", line 265 in __call__
2023-12-12T06:12:59.4830044Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/config/__init__.py", line 166 in main
2023-12-12T06:12:59.4830703Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/_pytest/config/__init__.py", line 189 in console_main
2023-12-12T06:12:59.4831258Z   File "/opt/conda/envs/build_binary/lib/python3.12/site-packages/pytest/__main__.py", line 5 in <module>
2023-12-12T06:12:59.4831427Z   File "<frozen runpy>", line 88 in _run_code
2023-12-12T06:12:59.4831625Z   File "<frozen runpy>", line 198 in _run_module_as_main

henrylhtsang avatar Dec 12 '23 16:12 henrylhtsang

@henrylhtsang Your segfault seems to happen inside the "torch" library. Generally pytest is pure python code so if there's a segfault the problem is always someplace else.

bluetech avatar Dec 16 '23 15:12 bluetech

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] avatar Dec 31 '23 01:12 github-actions[bot]

Stale for a long time and no-follow up, just helping the bot here a bit and closing manually.

obestwalter avatar Jun 17 '24 13:06 obestwalter