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

ThreadSanitizer data race #588

Closed
peboozt opened this issue Sep 6, 2021 · 0 comments · Fixed by #607
Closed

ThreadSanitizer data race #588

peboozt opened this issue Sep 6, 2021 · 0 comments · Fixed by #607
Assignees
Labels
bug Something isn't working

Comments

@peboozt
Copy link

peboozt commented Sep 6, 2021

The thing

Some of our developers are getting errors from the ThreadSanitizer. It seems ServerDateProvider.synchronize and ServerDateProvider.currentDate are calling Kronos.Clock.now and Kronos.Clock.sync from different threads (main and the com.datadoghq.rum-monitor queue), which apparently is discouraged by the Kronos developers. See this issue: MobileNativeFoundation/Kronos#85

Attached is a debug log with the errors.

debuglog.txt

Environment

XCode 12.5
Simulator with iOS 14.5
DatadogSDK 1.6.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants