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

Coverity analysis defect 100778: Thread deadlock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Replication
    • Fully Compatible
    • ALL
    • Repl 2017-07-31

    Description

      Threads may try to acquire two locks in different orders, potentially causing deadlock

      Defect 100778 (STATIC_C)
      Checker ORDER_REVERSAL (subcategory none)
      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      File: /src/mongo/db/repl/database_cloner.cpp
      Function mongo::repl::DatabaseCloner::_listCollectionsCallback(const mongo::StatusWith<mongo::Fetcher::QueryResponse> &, mongo::Fetcher::NextAction *, mongo::BSONObjBuilder *)

      Attachments

        Activity

          People

            william.schultz@mongodb.com William Schultz (Inactive)
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: