-
Notifications
You must be signed in to change notification settings - Fork 299
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
Data race in ADJAttributionHandler, paused property #303
Comments
Thanks for reporting this. Will be checked and most probably become part of our upcoming iOS SDK update. Will keep you posted in here. Cheers |
Did you see any particular issue like crash caused by this? Or are you just getting this reported by the tool? Also, can you give us an info how to reproduce this what you are getting? Thanks in advance. |
No crash, as the race condition is only on an Obj-C BOOL, stored as a single byte. TSAN error only. The issue is caused by |
@mindbrix Quick update on this one - we have added it to our upcoming release. Once live, will update you in here. |
Thanks for responding so quickly ;-) |
thanks for reporting this @mindbrix |
Thanks one more time for reporting this, is now became part of iOS SDK v4.12.0 (https://github.com/adjust/ios_sdk/releases/tag/v4.12.0). Cheers. 🍺 |
In summary, the
ADJAttributionHandler
paused
property is being written on one thread and written on another. The fix is to make the property atomic.@property (atomic, assign) BOOL paused;
TSAN dump attached.
The text was updated successfully, but these errors were encountered: