-
Notifications
You must be signed in to change notification settings - Fork 868
Release change while authentication fails #5935
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
Release change while authentication fails #5935
Conversation
@Barry-Xu-2018 thanks for the investigation and the fix, leaving a regression test |
For the shake of completeness. |
Signed-off-by: Barry Xu <[email protected]>
Signed-off-by: Barry Xu <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
49773ce
to
5818698
Compare
Signed-off-by: Mario Dominguez <[email protected]>
Signed-off-by: Mario Dominguez <[email protected]>
🧪 CI InsightsHere's what we observed from your CI run for ea9c411. 🟢 All jobs passed!But CI Insights is watching 👀 |
@MiguelCompany @Mario-DL is there anything needs to be done on our side? |
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.
@Barry-Xu-2018 i think it would be better that you take a look at this? they added some changes based on your original fix.
I have seen the changes that Mario-DL helped with. He helped to add the regression test. From this CI error report (#5935 (comment)), I am unable to find detailed error information. @Mario-DL @MiguelCompany Could you please guide me on how to fix the errors in the CI report? |
The CI run expired. I triggered it again here |
@Barry-Xu-2018 The tests look good to me. I am only worried about the ASAN job. Reports here |
I checked the contents of the Report, but the failed tests listed there are not related to ASAN. I investigated the data race issues from before and found that they are all related to the following code.
Fast-DDS/src/cpp/rtps/builtin/discovery/participant/simple/PDPStatelessWriter.cpp Lines 104 to 130 in 95410fc
Fast-DDS/src/cpp/rtps/builtin/discovery/participant/simple/PDPStatelessWriter.cpp Lines 140 to 148 in 95410fc
This issue doesn't seem to have been introduced by this PR. BTW,Could you guide me on running ASAN check in a local environment? |
@Barry-Xu-2018 I was referring to ASAN, not TSAN. For the new test added, it reports the following:
|
Signed-off-by: Barry Xu <[email protected]>
Signed-off-by: Barry Xu <[email protected]>
I have identified the cause of the memory leak. |
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.
Thank you @Barry-Xu-2018 !
@Mergifyio backport 3.3.x 3.2.x 2.14.x |
✅ Backports have been created
|
* Release change while authentication fails Signed-off-by: Barry Xu <[email protected]> * Fix uncrustify error Signed-off-by: Barry Xu <[email protected]> * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Add regression test Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Apply Miguel's suggestions Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Fix windows compilation Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Uncrustify Signed-off-by: Mario Dominguez <[email protected]> * Fix a memory leak on handshake handle Signed-off-by: Barry Xu <[email protected]> * Fix an Uncrustify error Signed-off-by: Barry Xu <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit db64a12)
* Release change while authentication fails Signed-off-by: Barry Xu <[email protected]> * Fix uncrustify error Signed-off-by: Barry Xu <[email protected]> * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Add regression test Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Apply Miguel's suggestions Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Fix windows compilation Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Uncrustify Signed-off-by: Mario Dominguez <[email protected]> * Fix a memory leak on handshake handle Signed-off-by: Barry Xu <[email protected]> * Fix an Uncrustify error Signed-off-by: Barry Xu <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit db64a12)
* Release change while authentication fails Signed-off-by: Barry Xu <[email protected]> * Fix uncrustify error Signed-off-by: Barry Xu <[email protected]> * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Add regression test Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Apply Miguel's suggestions Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Fix windows compilation Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Uncrustify Signed-off-by: Mario Dominguez <[email protected]> * Fix a memory leak on handshake handle Signed-off-by: Barry Xu <[email protected]> * Fix an Uncrustify error Signed-off-by: Barry Xu <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit db64a12)
* Release change while authentication fails Signed-off-by: Barry Xu <[email protected]> * Fix uncrustify error Signed-off-by: Barry Xu <[email protected]> * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Add regression test Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Apply Miguel's suggestions Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Fix windows compilation Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Uncrustify Signed-off-by: Mario Dominguez <[email protected]> * Fix a memory leak on handshake handle Signed-off-by: Barry Xu <[email protected]> * Fix an Uncrustify error Signed-off-by: Barry Xu <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit db64a12)
* Release change while authentication fails Signed-off-by: Barry Xu <[email protected]> * Fix uncrustify error Signed-off-by: Barry Xu <[email protected]> * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Add regression test Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Apply Miguel's suggestions Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Fix windows compilation Signed-off-by: Mario Dominguez <[email protected]> * Refs #23431: Uncrustify Signed-off-by: Mario Dominguez <[email protected]> * Fix a memory leak on handshake handle Signed-off-by: Barry Xu <[email protected]> * Fix an Uncrustify error Signed-off-by: Barry Xu <[email protected]> --------- Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Mario Dominguez <[email protected]> (cherry picked from commit db64a12)
* Release change while authentication fails * Fix uncrustify error * Refs #23431: Refactor PubSubReader/Writer (un)authorized() methods * Refs #23431: Add regression test * Refs #23431: Apply Miguel's suggestions * Refs #23431: Fix windows compilation * Refs #23431: Uncrustify * Fix a memory leak on handshake handle * Fix an Uncrustify error --------- (cherry picked from commit db64a12) Signed-off-by: Barry Xu <[email protected]> Signed-off-by: Mario Dominguez <[email protected]> Co-authored-by: Barry Xu <[email protected]> Co-authored-by: Mario Dominguez <[email protected]>
Description
Address #5934
particiapant_stateless_message_writer_history
should be properly freed when authentication fails.@Mergifyio backport 3.3.x 3.2.x 2.14.x
Contributor Checklist
versions.md
file (if applicable).Reviewer Checklist