[SERVER-60503] Update SSLThreadInfo making mutexes a variable Created: 06/Oct/21  Updated: 29/Oct/23  Resolved: 11/Oct/21

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 5.1.0-rc0

Type: Improvement Priority: Major - P3
Reporter: Sergey Galtsev (Inactive) Assignee: Sergey Galtsev (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Sprint: Security 2021-10-18
Participants:
Linked BF Score: 135

 Description   

SSLThreadInfo class keeps mutexes inside a function-local static, which is intentionally leaked so that it never gets auto-disposed

This ticket is to keep leaking it, but make it a variable. The goal is to make it possible to examine such variable via gdb in case a deadlock occurs even when local variable is optimized



 Comments   
Comment by Githook User [ 02/Nov/21 ]

Author:

{'name': 'Sergey Galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: Revert "SERVER-60503 refactor SSLThreadInfo for easier debugging"
Branch: master
https://github.com/mongodb/mongo/commit/2eaa640caa44332a0cf63b3e69b62a88f1d9c0cd

Comment by Githook User [ 11/Oct/21 ]

Author:

{'name': 'sergey.galtsev', 'email': 'sergey.galtsev@mongodb.com', 'username': 'brushless-glitch'}

Message: SERVER-60503 refactor SSLThreadInfo for easier debugging
Branch: master
https://github.com/mongodb/mongo/commit/425083c4a584b6d321ec692eab66927ee564357c

Generated at Thu Feb 08 05:49:58 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.