-
Notifications
You must be signed in to change notification settings - Fork 682
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(autoware_pointcloud_preprocessor): fix potential double unlock in concatenate node #10082
base: main
Are you sure you want to change the base?
fix(autoware_pointcloud_preprocessor): fix potential double unlock in concatenate node #10082
Conversation
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #10082 +/- ##
==========================================
- Coverage 26.81% 26.80% -0.01%
==========================================
Files 1414 1414
Lines 108279 108291 +12
Branches 41729 41730 +1
==========================================
- Hits 29031 29026 -5
- Misses 76367 76387 +20
+ Partials 2881 2878 -3
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@vividf |
As remarked by @knzo25 offline some days ago, and as per the discussion @drwnz @vividf @manato and I just had,. it might be better to remove all locking completely as the callbacks within one node will always be in a mutually exclusive callback group by default, even when using a multithreaded executor. |
@mojomex |
Signed-off-by: vividf <[email protected]>
Signed-off-by: vividf <[email protected]>
d8c5033
to
e272e0b
Compare
Signed-off-by: vividf <[email protected]>
Description
This PR resolves a potential double unlock issue in the concatenate node. Previously, under certain conditions, the mutex could be unlocked twice, leading to undefined behavior and potential segmentation faults.
Related links
Note: This PR needs to rebase after #10074 is merged.
Parent Issue:
How was this PR tested?
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.