Coverity analysis defect 115026: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Works as Designed
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Internal Code
    • Service Arch
    • ALL
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      Data race condition

      The value of the shared data will be determined by the interleaving of thread execution. Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition
      /src/mongo/util/clock_source.cpp:66: MISSING_LOCK 115026 Accessing "alarmInfo->cv" without holding lock "mongo::ClockSource::waitForConditionUntil(mongo::stdx::condition_variable &, mongo::BasicLockableAdapter, mongo::Date_t, mongo::Waitable *)::AlarmInfo.mutex". Elsewhere, "_ZZN5mongo11ClockSource21waitForConditionUntilERNS_4stdx18condition_variableENS_20BasicLockableAdapterENS_6Date_tEPNS_8WaitableEE9AlarmInfo.cv" is accessed with "mongo::ClockSource::waitForConditionUntil(mongo::stdx::condition_variable &, mongo::BasicLockableAdapter, mongo::Date_t, mongo::Waitable *)::AlarmInfo.mutex" held 1 out of 2 times (1 of these accesses strongly imply that it is necessary).

            Assignee:
            [DO NOT USE] Backlog - Service Architecture
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: