Coverity analysis defect 155319: Data race condition

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Server Security
    • ALL
    • Server Security 2025-08-15, Server Security 2025-08-29, Server Security 2025-09-12, Server Security 2025-09-26
    • 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
      /data/mci/3b34054db808e84e865ea3adc167bb30/bazel_cache/8efb34a963653a257fe76e59a8ff65e9/execroot/_main/src/mongo/db/modules/enterprise/src/ldap/ldap_connection_options.h:79: MISSING_LOCK 155319 Accessing "<anonymous>.retryCount" without holding lock "mongo::LDAPRunnerImpl._memberAccessMutex". Elsewhere, "mongo::LDAPConnectionOptions.retryCount" is written to with "LDAPRunnerImpl._memberAccessMutex" held 1 out of 2 times (1 of these accesses strongly imply that it is necessary).

            Assignee:
            Shreyas Kalyan
            Reporter:
            Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: