Operational Defect Database

BugZero found this defect 117 days ago.

MongoDB | 2554709

Ensure that the client is removed from _clientByOperationId map before destruction

Last update date:

3/14/2024

Affected products:

MongoDB Server

Affected releases:

No affected releases provided.

Fixed releases:

8.0.0-rc0

7.3.0-rc2

Description:

Info

See the writeup in BF-31478 for more details-- right now, we remove the client from the _clientByOperationId map in the destructor of the ClientState decoration. However, if somebody tries to access the client in the small window between client destruction and the destruction of the ClientState object, they will encounter a segfault.

Top User Comments

xgen-internal-githook commented on Thu, 14 Mar 2024 22:28:11 +0000: Author: {'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'} Message: SERVER-85628: Ensure that the client is removed from _clientByOperationId map before destruction (#18301) (cherry picked from commit d2bf10e048dea8691b29cc7ecb4e52ab8fc46790) GitOrigin-RevId: 053e0ce80d351bc198f439e7ab6692f721aacc7d Branch: v7.4test https://github.com/mongodb/mongo/commit/08b37647dafb4aca4e42eccba3153126d5bb8a08 xgen-internal-githook commented on Thu, 25 Jan 2024 21:05:13 +0000: Author: {'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'} Message: SERVER-85628: Ensure that the client is removed from _clientByOperationId map before destruction (#18301) (cherry picked from commit d2bf10e048dea8691b29cc7ecb4e52ab8fc46790) GitOrigin-RevId: 053e0ce80d351bc198f439e7ab6692f721aacc7d Branch: v7.3 https://github.com/mongodb/mongo/commit/7b7f3f53a0dbd6ed7fc0cfb11ee1d12823560f7a xgen-internal-githook commented on Thu, 25 Jan 2024 01:33:18 +0000: Author: {'name': 'Erin McNulty', 'email': 'erin.mcnulty@mongodb.com', 'username': 'erin2722'} Message: SERVER-85628: Ensure that the client is removed from _clientByOperationId map before destruction (#18301) GitOrigin-RevId: d2bf10e048dea8691b29cc7ecb4e52ab8fc46790 Branch: master https://github.com/mongodb/mongo/commit/8bff8776fd77f3b5412238b4ede0c0a4580fe798

Steps to Reproduce


Additional Resources / Links

Share:

BugZero® Risk Score

What's this?

Coming soon

Status

Closed

Learn More

Search:

...