Skip to content

πŸ‘©β€πŸŒΎ test_create_while_spinning flaky on macOSΒ #666

@chapulina

Description

@chapulina

Bug report

Required Info:

  • Operating System:
    • macOS
  • Installation type:
    • source
  • Version or commit hash:
    • master/ros2.repos
  • DDS implementation:
    • default
  • Client library (if applicable):
    • rclpy

Steps to reproduce issue

test_create_while_spinning has been flaky on macOS since January 12th 2021, failing 4 / 9 latest builds. It used to pass consistently before that.

See the test history.

Expected behavior

Test passes 100% of the time.

Actual behavior

Flaky

Additional information

../../src/ros2/rclpy/rclpy/test/test_create_while_spinning.py .Fatal Python error: Segmentation fault

Full failure output

-- run_test.py: extra environment variables to append:
 - AMENT_PREFIX_PATH+=/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/ament_cmake_index
 - PYTHONPATH+=/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy
-- run_test.py: invoking following command in '/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy':
 - /Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/bin/python3 -u -m pytest /Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/test/test_create_while_spinning.py -o cache_dir=/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/ament_cmake_pytest/test_create_while_spinning/.cache --junit-xml=/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/test_results/rclpy/test_create_while_spinning.xunit.xml --junit-prefix=rclpy -We
============================= test session starts ==============================
platform darwin -- Python 3.8.2, pytest-6.2.1, py-1.10.0, pluggy-0.13.1
cachedir: /Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/ament_cmake_pytest/test_create_while_spinning/.cache
rootdir: /Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy, configfile: pytest.ini
plugins: ament-xmllint-0.10.0, ament-copyright-0.10.0, ament-pep257-0.10.0, ament-flake8-0.10.0, ament-lint-0.10.0, cov-2.11.0, rerunfailures-9.1.1, colcon-core-0.6.1, repeat-0.9.1, mock-3.5.1
collected 5 items

../../src/ros2/rclpy/rclpy/test/test_create_while_spinning.py .Fatal Python error: Segmentation fault

Current thread 0x000070001086f000 (most recent call first):
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/rclpy/executors.py", line 586 in _wait_for_ready_callbacks
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/rclpy/executors.py", line 689 in wait_for_ready_callbacks
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/rclpy/executors.py", line 703 in spin_once
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/rclpy/executors.py", line 290 in spin
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 870 in run
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 932 in _bootstrap_inner
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 890 in _bootstrap

Thread 0x0000000109ddf5c0 (most recent call first):
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 1027 in _wait_for_tstate_lock
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/threading.py", line 1011 in join
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/src/ros2/rclpy/rclpy/test/test_create_while_spinning.py", line 53 in tearDown
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/unittest/case.py", line 636 in _callTearDown
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/unittest/case.py", line 679 in run
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/unittest/case.py", line 736 in __call__
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/unittest.py", line 321 in runtest
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 162 in pytest_runtest_call
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 255 in <lambda>
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 311 in from_call
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 254 in call_runtest_hook
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 215 in call_and_report
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 126 in runtestprotocol
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/runner.py", line 109 in pytest_runtest_protocol
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/main.py", line 348 in pytest_runtestloop
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/main.py", line 323 in _main
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/main.py", line 269 in wrap_session
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/main.py", line 316 in pytest_cmdline_main
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/callers.py", line 187 in _multicall
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 84 in <lambda>
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/manager.py", line 93 in _hookexec
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pluggy/hooks.py", line 286 in __call__
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 162 in main
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/_pytest/config/__init__.py", line 185 in console_main
  File "/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/venv/lib/python3.8/site-packages/pytest/__main__.py", line 5 in <module>
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 86 in _run_code
  File "/usr/local/Cellar/python@3.8/3.8.2/Frameworks/Python.framework/Versions/3.8/lib/python3.8/runpy.py", line 193 in _run_module_as_main
-- run_test.py: return code -11
-- run_test.py: generate result file '/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/test_results/rclpy/test_create_while_spinning.xunit.xml' with failed test
-- run_test.py: verify result file '/Users/osrf/jenkins-agent/workspace/nightly_osx_repeated/ws/build/rclpy/test_results/rclpy/test_create_while_spinning.xunit.xml'


https://github.com/osrf/buildfarmer/issues/145

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions