[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: |
|
||||
| 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: |