[CDRIVER-1477] C driver: pthread_create calls, result checking Created: 12/Aug/16  Updated: 02/Nov/16  Resolved: 02/Nov/16

Status: Closed
Project: C Driver
Component/s: libmongoc
Affects Version/s: 1.3.5
Fix Version/s: 1.5.0

Type: Bug Priority: Major - P3
Reporter: Emilio Scalise Assignee: A. Jesse Jiryu Davis
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related

 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.



 Comments   
Comment by Githook User [ 02/Nov/16 ]

Author:

{u'username': u'ajdavis', u'name': u'A. Jesse Jiryu Davis', u'email': u'jesse@mongodb.com'}

Message: CDRIVER-1477 log and abort if scanner thread fails
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/71a50491f2acd319f47cd0264bdcc48b17af8bfc

Generated at Wed Feb 07 21:12:40 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.