Skip to content

Data race in OfflineStorageHandler::GetAndReserveRecords #1221

Description

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

Activity

  1. added a commit that references this issue on Jul 2, 2026
  2. bmehta001 commented on Sep 24, 2026

    @bmehta001
    Contributor

    Hi, Tommy Meisel (@thomasameisel), Addressed in #1520 (commit 82cffa1): OfflineStorageHandler now uses atomic state for m_readFromMemory and m_lastReadCount, removing the unsynchronized accesses reported here. Closing as fixed; please reopen with a current TSan trace if it still reproduces.

  3. self-assigned this
    on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions