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 #2682

Merged
merged 1 commit into from
Dec 1, 2024

Conversation

jmachowinski
Copy link
Contributor

Fixes #2664

@alsora @mjcarroll A review please

@msplr Can you confirm that this fixes the issue ?

Copy link
Member

@wjwwood wjwwood 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 style fixups

@wjwwood
Copy link
Member

wjwwood commented Nov 22, 2024

I think we should push to get this fix in, but it would be nice to have a regression test for this case if we can manage it. I know it's hard with races like this, but still it would be good.

@wjwwood
Copy link
Member

wjwwood commented Nov 22, 2024

CI:

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

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.

@jmachowinski @wjwwood

maybe we can work on #2683 1st and then backport the fix to jazzy including unit tests? it's been there already for a while, i think we can go along with normal procedure?

@wjwwood
Copy link
Member

wjwwood commented Nov 22, 2024

That's also fine with me, I'm not sure about the urgency.

@jmachowinski
Copy link
Contributor Author

That's also fine with me, I'm not sure about the urgency.

I was not aware of this bug until yesterday. To me, this is is worst bug from a user perspective. You do an allowed operation,
and your framework just segfaults on you. Therefore I want to get a fix merged ASAP. Sadly, we just missed the jazzy sync for the binaries by 2 days...

@msplr
Copy link

msplr commented Nov 23, 2024

@msplr Can you confirm that this fixes the issue ?

I confirm that it fixes the segfault in my sample code, thanks!

@fujitatomoya
Copy link
Collaborator

@jmachowinski that is true, and we just missed it... so probably what we do here is,

@msplr thanks!

@jmachowinski
Copy link
Contributor Author

Added a test, fixed the same bug in the StaticSingleThreadedExecutor....

@jmachowinski
Copy link
Contributor Author

* and backport [fix(Executor): Fix segfault if callback group is deleted during rmw_wait #2683](https://github.com/ros2/rclcpp/pull/2683) to jazzy.

This PR is the backport of #2683 to Jazzy...

@jmachowinski
Copy link
Contributor Author

@alsora @ahcorde Can one of you start a build pipeline ?

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. i will start the CI.

@fujitatomoya
Copy link
Collaborator

Pulls: #2682
Gist: https://gist.githubusercontent.com/fujitatomoya/112f5fd7e91ce9c0c5644e5924f504f7/raw/b34c4a7a4636e6fe3225e7dba4a05536efcccac9/ros2.repos
BUILD args: --packages-above-and-dependencies rclcpp
TEST args: --packages-above rclcpp
ROS Distro: jazzy
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/14876

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

@fujitatomoya fujitatomoya merged commit df09c6e into ros2:jazzy Dec 1, 2024
3 checks passed
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.

6 participants