Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-51183

Coverity analysis defect 115026: Data race condition

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Internal Code
    • Service Arch
    • ALL

    Description

      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).

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: