[SERVER-22838] avoid boost TLS assertion at process shutdown Created: 24/Feb/16  Updated: 17/Apr/17  Resolved: 24/Feb/16

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 3.2.11, 3.2.12, 3.3.3

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

Issue Links:
Backports
Depends
is depended on by SERVER-23736 boost 1.60.0 avoid boost TLS assertio... Closed
Related
related to SERVER-17294 Upgrade to boost 1.60 Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.2
Sprint: Repl 11 (03/11/16)
Participants:
Linked BF Score: 0

 Description   

At shutdown, boost TLS has a race between a process exit hook and the thread exit hook; if they run simultaneously, boost can throw an assert in debug mode that causes the process to exit with a bad status.
We can fix this by moving TLS usage to use C++11 thread_local storage, but we need to complete the upgrade to VS2015 first. For now, we will suppress this assertion in Boost 1.56 in order to get jstests to pass. The upgrade to VS2015 will upgrade Boost to 1.60 which will revert back to an unmodified copy of Boost – we may need to apply the same fix to Boost 1.60 until we can complete the switch to thread_local.



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

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-22838 avoid boost TLS assertion at process shutdown

(cherry picked from commit 27bd602a6e6ba29978a6468442a196731ecf14a0)
Branch: v3.2
https://github.com/mongodb/mongo/commit/5de23b5e043bc982b0fdd551db4c65abd641b4af

Comment by Githook User [ 24/Feb/16 ]

Author:

{u'username': u'milkie', u'name': u'Eric Milkie', u'email': u'milkie@10gen.com'}

Message: SERVER-22838 avoid boost TLS assertion at process shutdown
Branch: master
https://github.com/mongodb/mongo/commit/27bd602a6e6ba29978a6468442a196731ecf14a0

Generated at Thu Feb 08 04:01:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.