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

Race condition occur in NSMutableDictionary (store) #1996

Closed
FrankElias77 opened this issue May 24, 2021 · 0 comments
Closed

Race condition occur in NSMutableDictionary (store) #1996

FrankElias77 opened this issue May 24, 2021 · 0 comments
Assignees
Labels
bug A defect in the library transport-tcp Relating to the primary TCP transport

Comments

@FrankElias77
Copy link
Contributor

FrankElias77 commented May 24, 2021

Bug Report

Race condition found in NSMutableDictionary+Store when one thread sets a value to the dictionary and the other thread is reading. This race only occurred with TCP connection not on SYNC.

The first thread started in func - (void)stream:(NSStream *)aStream handleEvent:(NSStreamEvent)eventCode of SDLTCPTransport and another Read-only thread started when handler gets called in - (void)sdl_runHandlersForResponse:(SDLRPCResponseNotification *)notification func of SDLResponseDispatcher and the request is SDLRegisterAppInterface *regRequest = [[SDLRegisterAppInterface alloc] initWithLifecycleConfiguration:self.configuration.lifecycleConfig]; sent in didEnterStateConnected func of SDLLifeCycleManager

Reproduction Steps
  1. Connect app
  2. Launch app on the hmi
OS & Version Information
  • iOS Version: Xcode 12.5 simulator
  • SDL iOS Version: Branch develop
  • Testing Against: Manticore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the library transport-tcp Relating to the primary TCP transport
Projects
None yet
Development

No branches or pull requests

2 participants