Operational Defect Database

BugZero found this defect 2440 days ago.

MongoDB | 397215

[SERVER-29804] Undefined behaviour in the sharding catalog unit-tests

Last update date:

10/30/2023

Affected products:

MongoDB Server

Affected releases:

3.5.9

Fixed releases:

3.5.10

Description:

Info

Almost all sharding catalog unit-tests define a static variable kReplSecondaryOkMetadata with a function initializer referencing ReadPreferenceSetting. The problem is that this initializer function can be called before ReadPreferenceSetting's static variables have been constructed, which causes the tests to crash under Windows DEBUG.

Top User Comments

xgen-internal-githook commented on Mon, 26 Jun 2017 14:43:34 +0000: Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'} Message: SERVER-29804 Remove 'undefined behaviour' in the sharding catalog unit-tests Branch: master https://github.com/mongodb/mongo/commit/95dae0d467d6798b015a5328073a5e3c9e75cdc8

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:

...