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

C driver: pthread_create calls, result checking

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 1.5.0
    • 1.3.5
    • libmongoc
    • None

    Description

      CDriver does not check result of pthread create (see https://github.com/mongodb/mongo-c-driver/blob/1.3.5/src/mongoc/mongoc-topology.c#L863).
      When it fails to create new thread and return for example EAGAIN (memory exhausted, ulimits can cause this for example) the behaviour may be incorrect.

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            emilio.scalise@mongodb.com Emilio Scalise
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: