Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-2929

Coverity analysis defect 105073: Thread deadlock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • tests
    • None

    Description

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

      Defect 105073 (STATIC_C)
      Checker ORDER_REVERSAL (subcategory none)
      File: /src/libmongoc/tests/mock_server/mock-server.c
      Function main_thread
      /src/libmongoc/tests/mock_server/mock-server.c, line: 1577
      Calling "pthread_mutex_lock" acquires lock "_mock_server_t.mutex".

                   bson_mutex_lock (&server->mutex);

      Attachments

        Activity

          People

            Unassigned Unassigned
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: