[SERVER-37393] Fix destructor race in `ReplicaSetMonitorManager` Created: 28/Sep/18 Updated: 29/Oct/23 Resolved: 01/Oct/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.4.18, 3.6.9, 4.0.4, 4.1.4 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | ADAM Martin (Inactive) | Assignee: | ADAM Martin (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Backport Requested: |
v4.0, v3.6, v3.4, v3.2
|
||||||||
| Sprint: | Service Arch 2018-10-08 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 12 | ||||||||
| Description |
|
The `_taskExecutor` pointer is destroyed before the `_monitors` members which refer to it, causing them to trip over uses of destroyed memory in some cases. Simply reversing the order of these members should be sufficient to effect a fix. |
| Comments |
| Comment by Githook User [ 05/Oct/18 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: The members that have been reversed have an ownership-awareness (cherry picked from commit f53b6852add200b7431a77a41e0d10c003706925) |
| Comment by Githook User [ 05/Oct/18 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: The members that have been reversed have an ownership-awareness (cherry picked from commit f53b6852add200b7431a77a41e0d10c003706925) |
| Comment by Githook User [ 05/Oct/18 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: The members that have been reversed have an ownership-awareness (cherry picked from commit f53b6852add200b7431a77a41e0d10c003706925) |
| Comment by Githook User [ 01/Oct/18 ] |
|
Author: {'name': 'ADAM David Alan Martin', 'email': 'adam.martin@10gen.com', 'username': 'adamlsd'}Message: The members that have been reversed have an ownership-awareness |