Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10943

Coverity analysis defect 137581: Value not atomically updated

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • 2023-05-02 StorEng Bug Bash

      Value not atomically updated

      The result of the update will be determined by the interleaving of thread execution. Non-atomic update of a concurrently shared value
      /src/block_cache/block_chunkcache.c:298: ATOMICITY 137581 Locking "chunkcache->hashtable[bucket_id].bucket_lock.lock".
      /src/block_cache/block_chunkcache.c:299: ATOMICITY 137581 Assigning data that might be protected by the lock to "chunk".
      /src/block_cache/block_chunkcache.c:361: ATOMICITY 137581 Unlocking "chunkcache->hashtable[bucket_id].bucket_lock.lock". "chunk" might now be unreliable because other threads can now change the data that it depends on.
      /src/block_cache/block_chunkcache.c:384: ATOMICITY 137581 Locking "chunkcache->chunkcache_lru_lock.lock" again.
      /src/block_cache/block_chunkcache.c:385: ATOMICITY 137581 Using an unreliable value of "chunk" inside the second locked section. If the data that "chunk" depends on was changed by another thread, this use might be incorrect.

            Assignee:
            etienne.petrel@mongodb.com Etienne Petrel
            Reporter:
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: