SERVER-135655ClosedFixed

Shared lazily-initialized state in S2 classes allow data races

The S2 data structures {{S2EdgeIndex}} and {{S2Loop}} have {{mutable}} state that can be changed by {{const}} methods. Previously this was thought to be innocuous because it only affected integer counters. However, {{map}} and {{multimap}} data structures are also affected, which can result in a server crash when accessed concurrently. * [S2Loop::vertext_to_index_|https://github.com/10gen/mongo/blob/efd5d7c5aa7dc2dfbed81dd081165cb4b3322e45/src/third_party/s2/s2loop.h#L333] * [S2EdgeIndex::ma

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc08.3.169.0.78.0.377.0.489.1.0-rc1026
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.