https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77493
--- Comment #12 from David Abdurachmanov <david.abdurachmanov at gmail dot com> --- Looks to be std::vector<std::shared_ptr<TrackingRecHit const>> (aka ConstRecHitContainer). Here is the class and typedef for the containers: https://github.com/cms-sw/cmssw/blob/CMSSW_8_1_X/DataFormats/TrackingRecHit/interface/TrackingRecHit.h#L35 Here we call sort which is a member function (at the end of the file): https://github.com/cms-sw/cmssw/blob/CMSSW_8_1_X/RecoMuon/TrackingTools/src/MuonTrajectoryUpdator.cc#L119 That member function calls stable_sort. stable_sort is called here: https://github.com/cms-sw/cmssw/blob/CMSSW_8_1_X/RecoMuon/TrackingTools/src/MuonTrajectoryUpdator.cc#L260 This is the comparison function used: https://github.com/cms-sw/cmssw/blob/CMSSW_8_1_X/RecoMuon/TrackingTools/interface/MuonTrajectoryUpdator.h#L98 Will try to check where dtor is happening.