[CXX-1040] Segmentation fault in instance_management Created: 16/Sep/16  Updated: 19/Sep/16  Resolved: 19/Sep/16

Status: Closed
Project: C++ Driver
Component/s: Implementation
Affects Version/s: None
Fix Version/s: 3.0.2

Type: Bug Priority: Major - P3
Reporter: J Rassi Assignee: Andrew Morrow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to CXX-1030 Require C driver 1.5 for C++11 driver... Closed

 Description   

instance_management crashes with a segmentation fault on the 3.1-dev branch. Introduced by 6683c05a.

Ubuntu 14.04 release build failure: https://evergreen.mongodb.com/build/mongodb_cpp_driver_dev_ubuntu1404_release_7a8b68951f5ea6f947b8a029ec942e0187c7c3e5_16_09_15_01_03_31
Ubuntu 14.04 debug build failure: https://evergreen.mongodb.com/build/mongodb_cpp_driver_dev_ubuntu1404_debug_7a8b68951f5ea6f947b8a029ec942e0187c7c3e5_16_09_15_01_03_31



 Comments   
Comment by Andrew Morrow (Inactive) [ 19/Sep/16 ]

This actually was not introduced by 6683c05a. Instead, it was a latent defect introduced by the fix for CXX-890.

I had overlooked that this ticket existed, and pushed the fix here without a ticket reference:

https://github.com/mongodb/mongo-cxx-driver/commit/7a7f3259c05868d8c169c542b9a4b18470ade719

The defect fixed in that commit would have made the actual emergence of this bug more or less random, as it depended on what order of operations the compiler chose for sequencing the construction of the instance and the pool.

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