Coverity analysis defect 172281: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Programmability
    • Fully Compatible
    • ALL
    • Programmability 2025-03-31
    • 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
      /data/bazel_cache/1de52aaeb35278243ca29a4785ce7969/execroot/_main/src/mongo/util/concurrent_shared_values_map.h:59: MISSING_LOCK 172281 Accessing "other._map" without holding lock "mongo::ConcurrentSharedValuesMap<mongo::UUID, mongo::PreImagesTruncateMarkersPerNsUUID, mongo::UUID::Hash>._mapModificationMutex". Elsewhere, "mongo::ConcurrentSharedValuesMap<mongo::UUID, mongo::PreImagesTruncateMarkersPerNsUUID, mongo::UUID::Hash>._map" is written to with "ConcurrentSharedValuesMap._mapModificationMutex" held 2 out of 2 times.

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

              Created:
              Updated:
              Resolved: