Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Executor): Fix segfault if callback group is deleted during rmw_wait #2683

Open
wants to merge 1 commit into
base: rolling
Choose a base branch
from

Conversation

jmachowinski
Copy link
Contributor

Fix for #2664 in rolling

Note, this is not my preferred fix for this. But I would like to merge this now,
to get a fix into jazzy ASAP.

@alsora @mjcarroll fyi

@mjcarroll
Copy link
Member

Not ideal, but does the job. Thanks.

@wjwwood
Copy link
Member

wjwwood commented Nov 22, 2024

We talked about a potentially better fix for this in rolling (versus Jazzy) at the client library working group, but I would be ok with a temporary fix in rolling as well.

I also mentioned on the jazzy fix that it would be nice to have a regression test of some sort, but that's more important for rolling than jazzy imo.

Copy link
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.

lgtm with green CI, unit test would be ideal.

Comment on lines +732 to +734
// we need to make sure that callback groups don't get out of scope
// during the wait. As in jazzy, they are not covered by the DynamicStorage,
// we explicitly hold them here as a bugfix
Copy link
Collaborator

Choose a reason for hiding this comment

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

i would add TODO if we already have a plan to proper fix in the future not to miss, this does not block the PR.

@jmachowinski
Copy link
Contributor Author

Added unit test and fixed the same problem in the StaticSingleThreadedExecutor.

@ahcorde
Copy link
Contributor

ahcorde commented Nov 27, 2024

Pulls: #2683
Gist: https://gist.githubusercontent.com/ahcorde/fbbd8e165d63b1398346b46e40e02a57/raw/1e348604284103bcceb6dc009bd30720eb3e7ecc/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp --packages-above rclcpp
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14874

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

@jmachowinski
Copy link
Contributor Author

@ahcorde @alsora can we merge ?

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.

7 participants