[CDRIVER-555] Segfault during OpenSSL cleanup routines Created: 03/Mar/15  Updated: 11/Apr/18  Resolved: 11/Mar/15

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.2

Type: Bug Priority: Major - P3
Reporter: Hannes Magnusson Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CDRIVER-2605 OpenSSL thread and id callbacks shoul... Closed
related to PHPC-1158 Segfault during OpenSSL cleanup routines Closed
is related to PHPC-167 PHP crashes with phongo just being lo... Closed

 Description   

When more then one libraries are using OpenSSL, mongoc will cause OpenSSL destruction routines to segfault due to not resetting the callback retrieving the thread id.

Furthermore, we need to check if there has been callback registered already before trying to register ours - and during cleanup, we should make sure its our callback we are cleaning.



 Comments   
Comment by Githook User [ 09/Mar/15 ]

Author:

{u'username': u'bjori', u'name': u'Hannes Magnusson', u'email': u'bjori@mongodb.com'}

Message: CDRIVER-555: Segfault during OpenSSL cleanup routines
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/746d2509a24e0e3e708dd944ab6e75927f3cc8de

Comment by Jeremy Mikola [ 09/Mar/15 ]

https://github.com/mongodb/mongo-c-driver/pull/184

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