Operational Defect Database

BugZero found this defect 2416 days ago.

MongoDB | 403588

[SERVER-30124] Move static function-level variables in populateDocumentWithQueryFields to an anonymous namespace

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

3.2.17

Description:

Info

We suspect that a VS2013 issue with static function-level variable initialization resulted in a crash. This change only applies to v3.2, because newer versions build with VS2015.

Top User Comments

xgen-internal-githook commented on Tue, 8 Aug 2017 20:18:38 +0000: Author: {'username': 'jseyster', 'email': 'justin.seyster@mongodb.com', 'name': 'Justin Seyster'} Message: SERVER-30124 Move statics from populateDocumentWithQueryFields. We're seeing a test failure that could be explained by non-thread safe initialization of function-level static variables in the version of the C++11 spec used by the VS2013 compiler. https://blogs.msdn.microsoft.com/oldnewthing/20040308-00/?p=40363 Moving those variables into file scope should ensure that they get initialized safely. Branch: v3.2 https://github.com/mongodb/mongo/commit/1583062723785c550874943007e6cdc1b7903e99

Additional Resources / Links

Share:

BugZero Risk Score

Coming soon

Status

Closed

Have you been affected by this bug?

cost-cta-background

Do you know how much operational outages are costing you?

Understand the cost to your business and how BugZero can help you reduce those costs.

Discussion

Login to read and write comments.

Have you ever...

had your data corrupted from a

VMware

bug?

Search:

...