microsoft / cpp_client_telemetry

1DS C++ SDK
Apache License 2.0
85 stars 48 forks source link

Data race in OfflineStorageHandler::GetAndReserveRecords #1221

Open thomasameisel opened 7 months ago

thomasameisel commented 7 months ago

Describe your environment.

SDK version: 3.7.62.1 OS version: iOS 17.0 Xcode version: 15.0 clang version: Apple clang version 15.0.0 (clang-1500.0.40.1) Target: arm64-apple-darwin22.6.0 Thread model: posix

Steps to reproduce.

  1. Enable Thread Sanitizer
  2. Open Outlook iOS
  3. Open a message (triggers sending a telemetry event)

What is the expected behavior? No data race

What is the actual behavior? Data race

Additional context. Full tsan logs here - tsanlogs.txt