Skip to content

fix(timer): Delete node, after executor thread terminated (backport #2737)#2738

Merged
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2737
Feb 11, 2025
Merged

fix(timer): Delete node, after executor thread terminated (backport #2737)#2738
ahcorde merged 1 commit intojazzyfrom
mergify/bp/jazzy/pr-2737

Conversation

@mergify
Copy link
Copy Markdown
Contributor

@mergify mergify bot commented Feb 11, 2025

This fixes a potential race leading to a segfault. The segfault would happen, if the tear down of the test would occur before the timer thread stopped the spinning of the executor.

Also simplifies the test code, as the cancel of the executor is now in the TearDown().


This is an automatic backport of pull request #2737 done by Mergify.

This fixes a potential race leading to a segfault. The segfault would
happen, if the tear down of the test would occur before the timer thread
stopped the spinning of the executor.

Also simplifies the test code, as the cancel of the executor is now in
the TearDown().

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Co-authored-by: Janosch Machowinski <J.Machowinski@cellumation.com>
(cherry picked from commit f6b80ab)
Copy link
Copy Markdown
Collaborator

@fujitatomoya fujitatomoya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jmachowinski can you take a look just in case?

@fujitatomoya
Copy link
Copy Markdown
Collaborator

Pulls: #2738
Gist: https://gist.githubusercontent.com/fujitatomoya/7b7f10aeb7a9c4c465b5828619e8f6e7/raw/42c3df435b3082783808181c027029151fae5437/ros2.repos
BUILD args: --packages-up-to rclcpp
TEST args: --packages-select rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/15161

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Linux-rhel Build Status
  • Windows Build Status

@ahcorde ahcorde merged commit 2eaa2eb into jazzy Feb 11, 2025
2 checks passed
@MichaelOrlov MichaelOrlov deleted the mergify/bp/jazzy/pr-2737 branch July 29, 2025 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants