Coverity analysis defect 141862: Data race condition

XMLWordPrintableJSON

    • Server Programmability
    • ALL
    • Programmability 2025-10-13
    • None
    • 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/exit.cpp:97: MISSING_LOCK 141862 Accessing "mongo::<unnamed>::shutdownTasksInProgress" without holding lock "mongo::<unnamed>::shutdownMutex". Elsewhere, "mongo::<unnamed>::shutdownTasksInProgress" is written to with "mongo::<unnamed>::shutdownMutex" held 4 out of 4 times (2 of these accesses strongly imply that it is necessary).

            Assignee:
            Ronald Steinke
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: