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

Access violation when trying to join a thread

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 1.24.2
    • None
    • None
    • None

    Description

      When a new monitor thread fails to create and returns the `EAGAIN` error, we incorrectly assume it has been created. Then when attempting to shutdown the thread later on, we cause an Access Violation in the client application. Some details:

      `thread_create` doesn't check if the creation succeeds or not.

      When we attempt to stop the server monitor thread, it is assumed that it was already running. The call on `thread_join stop` will crash

      It would be nice if C driver could handle this situation gracefully to avoid crashes.

      Attachments

        Activity

          People

            kevin.albertson@mongodb.com Kevin Albertson
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: