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

Coverity analysis defect 98532: Data race condition

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • WiredTiger
    • Fully Compatible
    • ALL

    Description

      Thread shared data is accessed without holding an appropriate lock, possibly causing a race condition

      Defect 98532 (STATIC_C)
      Checker MISSING_LOCK (subcategory none)
      File: /src/third_party/wiredtiger/src/conn/conn_handle.c
      Function __wt_connection_init
      /src/third_party/wiredtiger/src/conn/conn_handle.c, line: 31
      Accessing "conn->fhqh.tqh_last" without holding lock "_wt_spinlock.lock". Elsewhere, "wt_fh_qh.tqh_last" is accessed with "_wt_spinlock.lock" held 4 out of 5 times.

          	TAILQ_INIT(&conn->fhqh);		/* File list */

      Attachments

        Activity

          People

            keith.bostic@mongodb.com Keith Bostic (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: