[SERVER-41787] heapprofile may crash Created: 17/Jun/19 Updated: 29/Oct/23 Resolved: 31/Jul/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 5.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | deyukong | Assignee: | Billy Donahue |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | servicearch-wfbf-day | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Service Arch 2021-08-09 | ||||||||
| Participants: | |||||||||
| Story Points: | 2 | ||||||||
| Description |
the sort functor here uses pointer to StackInfo, which is mutable, and may change during the sort procedure, violates strict weak ordering that is required by c++ standard lib and crashes.
The crash behavior has been witten during the product environment. |
| Comments |
| Comment by Githook User [ 30/Jul/21 ] |
|
Author: {'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}Message: |
| Comment by Billy Donahue [ 21/Jul/21 ] |
|
Code Review: This review is for the reported sort comparator issue, but also eliminating an unused BSONObj attached to each stack capture object. |