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

protect pt_ from concurrent access #1962

Merged
merged 4 commits into from Feb 13, 2018

Conversation

fronneburg
Copy link
Contributor

@fronneburg fronneburg commented Dec 18, 2017

Fixes #1961

This PR is [ready] for review.

Risk

This PR makes [no] API changes.

Summary

Protect access to the "pt_" member variable of the cache_manager class with a recursive lock

CLA

@LuxoftAKutsan
Copy link
Contributor

@fronneburg do we have issue with policy table race conditions?
cache_manager is not thread safe because PolicyManager should guarantee it's thread safety. Additional mutexes would add performance issues and they are redundant I think

@fronneburg
Copy link
Contributor Author

fronneburg commented Dec 22, 2017

@LuxoftAKutsan In our testing we hit an issue with this in the LTS branch. We found a SIGSEGV crash where the tombstone clearly showed one thread in CacheManager::ApplyUpdate, while the other thread was in CacheManager::CheckPermissions. This PR is simply attempting to move our fix for that into the "develop" branch here.

@JenkinsSDLOnCloud
Copy link

Can one of the admins verify this patch?

@Jack-Byrne Jack-Byrne changed the base branch from develop to release/4.5.0 February 13, 2018 21:02
@Jack-Byrne Jack-Byrne merged commit 055a225 into smartdevicelink:release/4.5.0 Feb 13, 2018
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

Successfully merging this pull request may close these issues.

None yet

5 participants