-
Notifications
You must be signed in to change notification settings - Fork 479
fix(Executor): Fix segfault if callback group is deleted during rmw_wait #2683
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
Conversation
|
Not ideal, but does the job. Thanks. |
c42898b to
c58e8e7
Compare
|
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
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.
lgtm with green CI, unit test would be ideal.
| // 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 |
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.
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.
c58e8e7 to
37d214f
Compare
|
Added unit test and fixed the same problem in the StaticSingleThreadedExecutor. |
Signed-off-by: Janosch Machowinski <[email protected]>
37d214f to
86d8313
Compare
|
Pulls: #2683 |
|
https://ci.ros2.org/job/ci_windows/22936/msbuild/new/ are unrelated. |
…ait (ros2#2683) Signed-off-by: Janosch Machowinski <[email protected]> Signed-off-by: HarunTeper <[email protected]>
…ait (ros2#2683) Signed-off-by: Janosch Machowinski <[email protected]> Signed-off-by: HarunTeper <[email protected]>
…ait (ros2#2683) Signed-off-by: Janosch Machowinski <[email protected]>
Signed-off-by: Janosch Machowinski <[email protected]>
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