-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Fully Compatible
-
ALL
-
Service Arch 2021-08-09
-
2
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.
- is related to
-
SERVER-44010 heap_profiler.cpp has a few bugs
- Backlog