Fix seg fault with attached objects during motion execution#3466
Merged
MarqRazz merged 6 commits intomoveit:mainfrom May 12, 2025
Merged
Fix seg fault with attached objects during motion execution#3466MarqRazz merged 6 commits intomoveit:mainfrom
MarqRazz merged 6 commits intomoveit:mainfrom
Conversation
forrest-rm
approved these changes
May 6, 2025
Contributor
forrest-rm
left a comment
There was a problem hiding this comment.
Thanks for fixing the segfault
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3466 +/- ##
==========================================
- Coverage 46.23% 45.84% -0.39%
==========================================
Files 718 718
Lines 62677 62662 -15
Branches 7583 7587 +4
==========================================
- Hits 28975 28720 -255
- Misses 33535 33775 +240
Partials 167 167 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
bmagyar
approved these changes
May 6, 2025
Contributor
Author
|
Unfortunately this was still seg faulting here. Initializing current_attached_objects (which has raw pointers to the |
AndyZe
approved these changes
May 11, 2025
AndyZe
approved these changes
May 12, 2025
mergify bot
pushed a commit
that referenced
this pull request
May 12, 2025
(cherry picked from commit c81ac91) # Conflicts: # moveit_core/robot_state/src/robot_state.cpp # moveit_ros/planning/plan_execution/src/plan_execution.cpp
mergify bot
pushed a commit
that referenced
this pull request
May 12, 2025
(cherry picked from commit c81ac91)
MarqRazz
pushed a commit
that referenced
this pull request
May 13, 2025
Markus-Simonsen
pushed a commit
to Markus-Simonsen/moveit2
that referenced
this pull request
Aug 12, 2025
helen9975
pushed a commit
to personalrobotics/moveit2
that referenced
this pull request
Feb 17, 2026
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
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
#3327 introduced a bug where motion execution can segfault by attempting to indexing into arrays of zero length.
I assume this is because MTC sends execution requests where only the planing scene in modified, so trajectory lengths are zero. I also added some guards in robot_state to make sure we are not adding null objects to the
attached_bodieslist/map.