FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(Executor): Fix segfault if callback group is deleted during rmw_wait by jmachowinski · Pull Request #2683 · ros2/rclcpp · GitHub

/ rclcpp Public

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

Merged
fujitatomoya merged 1 commit into
ros2:rollingfrom
cellumation:seg_fault_rolling
Nov 30, 2024
Merged

fix(Executor): Fix segfault if callback group is deleted during rmw_wait#2683
fujitatomoya merged 1 commit into
ros2:rollingfrom
cellumation:seg_fault_rolling

Conversation

Copy link
Copy Markdown
Collaborator

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

Copy link
Copy Markdown
Member

Not ideal, but does the job. Thanks.

Comment thread rclcpp/src/rclcpp/executor.cpp Outdated

wjwwood commented Nov 22, 2024

Copy link
Copy Markdown
Member

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.

fujitatomoya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

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.

Copy link
Copy Markdown
Collaborator Author

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

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>

ahcorde commented Nov 27, 2024
edited by christophebedard
Loading

Copy link
Copy Markdown
Contributor

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
  • Linux-aarch64
  • Linux-rhel
  • Windows

Copy link
Copy Markdown
Collaborator Author

@ahcorde @alsora can we merge ?

Copy link
Copy Markdown
Collaborator

fujitatomoya merged commit e9b1004 into ros2:rolling Nov 30, 2024
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
…ait (ros2#2683)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Signed-off-by: HarunTeper <harun.teper@tu-dortmund.de>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
…ait (ros2#2683)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
Signed-off-by: HarunTeper <harun.teper@tu-dortmund.de>
HarunTeper pushed a commit to HarunTeper/rclcpp that referenced this pull request Dec 9, 2024
…ait (ros2#2683)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
ahcorde pushed a commit that referenced this pull request Feb 19, 2025
Signed-off-by: Janosch Machowinski <j.machowinski@cellumation.com>
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
…ait (ros2#2683)

Signed-off-by: Janosch Machowinski <J.Machowinski@cellumation.com>
bartalor pushed a commit to bartalor/rclcpp that referenced this pull request Jul 15, 2026
Signed-off-by: Janosch Machowinski <j.machowinski@cellumation.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL