Skip to content
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

CCB: Use weak_ptr<WebsocketSession> instead of raw ptrs #3181

Closed
LitvinenkoIra opened this issue Dec 6, 2019 · 6 comments
Closed

CCB: Use weak_ptr<WebsocketSession> instead of raw ptrs #3181

LitvinenkoIra opened this issue Dec 6, 2019 · 6 comments
Assignees

Comments

@LitvinenkoIra
Copy link
Contributor

LitvinenkoIra commented Dec 6, 2019

Bug Report

Use weak_ptr instead of raw ptrs

Detailed analysis:

Its a reason for possible SIGSEGVs. It's bad practice to use raw pointers to WebsocketSession in almost all cases. For function arguments, pointers should be changed to references for preventing null pointer occurrence. For containers pointers should be changed to weak_ptr for preventing
expired references. Wrong inheritance for CMessageBrokerController should be removed.

Reproduction Steps
  1. TBD
Expected Behavior

SDL should not crash

Observed Behavior

SDL crashed

OS & Version Information

@E-SAITO-TMC
Copy link

@joeygrover -san @theresalech -san This issue is a high priority for Toyota. Could you please tell me reproduction steps? Also, Does this issue occur in the latest version?

@theresalech
Copy link
Contributor

Hi @E-SAITO-TMC, we have documented that this is priority for Toyota, and will include for Steering Committee review and vote when planning the contents for the Q4 Core release. This planning will take place in June.
@LitvinenkoIra, can you please provide reproduction steps for this issue? If you could also advise if the Luxoft team is seeing this issue in Core 6.1, that would be most helpful!

@theresalech theresalech added the Waiting for Feedback Maintainers are waiting for feedback from an author or contributor label Apr 23, 2020
@LuxoftAKutsan
Copy link
Contributor

This issue has ho reproduction steps.
It was found by the Hellgrind dynamic code analysis tool in the SYNC environment.
6.1 do not contain the fix and the issue is possible.
SYNC changes need to be ported on open sdl_core.

@theresalech
Copy link
Contributor

@LuxoftAKutsan thank you for the update. Please advise when a PR has been submitted.

@theresalech theresalech removed the Waiting for Feedback Maintainers are waiting for feedback from an author or contributor label May 20, 2020
@YarikMamykin YarikMamykin self-assigned this Sep 3, 2020
@AKalinich-Luxoft
Copy link
Contributor

@theresalech fix has been submitted and ready for Livio review

@ShobhitAd
Copy link
Contributor

Closed via #3490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants