[SERVER-49337] Synchronize shared resources in ServiceExecutor tests Created: 07/Jul/20  Updated: 29/Oct/23  Resolved: 08/Jul/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 4.7.0

Type: Bug Priority: Major - P3
Reporter: Amirsaman Memaripour Assignee: Amirsaman Memaripour
Resolution: Fixed Votes: 0
Labels: thread-sanitizer
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service arch 2020-07-13
Participants:
Linked BF Score: 0

 Description   

Multiple threads have shared access to resources (i.e., condition_variable and mutex) in ServiceExecutor unit-tests. The main thread has exclusive ownership of these resources, while the executor threads are provided with their references. This may cause read-after-delete accesses to these resources (e.g., those defined here). A possible fix is to provide executor threads with shared pointers to these resources.



 Comments   
Comment by Githook User [ 08/Jul/20 ]

Author:

{'name': 'Amirsaman Memaripour', 'email': 'amirsaman.memaripour@mongodb.com', 'username': 'samanca'}

Message: SERVER-49337 Synchronize shared resources in ServiceExecutor tests
Branch: master
https://github.com/mongodb/mongo/commit/367d58bef3d6eeb41338c407264203fe9d397446

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