-
Notifications
You must be signed in to change notification settings - Fork 334
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 Segfault in GripperActionController #527
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch!
Thanks a lot for the elegant fix
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #527 +/- ##
==========================================
- Coverage 35.78% 32.48% -3.31%
==========================================
Files 189 7 -182
Lines 17570 665 -16905
Branches 11592 357 -11235
==========================================
- Hits 6287 216 -6071
+ Misses 994 157 -837
+ Partials 10289 292 -9997
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Could you please run |
@Mergifyio backport to humble |
❌ No backport have been created
GitHub error:
|
* Use RT buffer for gripper action controller's goal handle * fix format --------- Co-authored-by: Bence Magyar <bence.magyar.robotics@gmail.com> (cherry picked from commit 520036d)
@Mergifyio backport to humble |
❌ No backport have been created
GitHub error:
|
@Mergifyio backport humble |
❌ No backport have been created
|
* Use RT buffer for gripper action controller's goal handle * fix format --------- Co-authored-by: Bence Magyar <bence.magyar.robotics@gmail.com>
We have occasionally observed segfaults in the GripperActionController, particularly when pre-empting an executing goal. As far as I can tell the source is the shared goal handle pointer being reset while the action monitor loop is running.
This change wraps the raw
shared_ptr
for theRealtimeGoalHandlePtr
in aRealtimeBuffer
, and provides thread-safe access to the executing goal (if present) through the buffer. This is inline with other controller implementations, like the JointTrajectoryController.Sample backtrace: