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

Access violation when trying to join a thread

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.24.2
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: