Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
Fully Compatible
-
ALL
-
Service Arch 2021-08-09
-
2
Description
auto sortByActiveBytes = [](StackInfo* a, StackInfo* b) -> bool {
|
return a->activeBytes > b->activeBytes;
|
};
|
std::stable_sort(stackInfos.begin(), stackInfos.end(), sortByActiveBytes);
|
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.
Attachments
Issue Links
- is related to
-
SERVER-44010 heap_profiler.cpp has a few bugs
-
- Backlog
-