SelReportsMaker - Undefined Behaviour Error
Sanitiser is giving an error report for SelReportsMaker for one of the Moore tests (pp_track_mva)
/cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/stl_iterator.h:841:2: runtime error: pointer index expression with base 0x000000000000 overflowed to 0xfffffffffffffff8
#0 0x7fbfa1b5eef7 in __gnu_cxx::__normal_iterator<LHCb::HltObjectSummary* const*, std::vector<LHCb::HltObjectSummary*, std::allocator<LHCb::HltObjectSummary*> > >::operator--() /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/stl_iterator.h:841
#1 0x7fbfa1b5eef7 in SelReportsMaker::store_(LHCb::Event::v1::Track const&, ObjectVector<LHCb::HltObjectSummary>&, unsigned int, bool) const ../Phys/SelReports/src/SelReportsMaker.cpp:312
#2 0x7fbfa1b6ca01 in LHCb::HltObjectSummary const* SelReportsMaker::store<LHCb::Event::v1::Track>(ContainedObject const*, ObjectVector<LHCb::HltObjectSummary>&, unsigned int, bool) const ../Phys/SelReports/src/SelReportsMaker.h:110
#3 0x7fbfa1b6ca01 in operator()<SelReportsMaker::selectionInfo, std::vector<LHCb::Event::v1::Track> > ../Phys/SelReports/src/SelReportsMaker.cpp:231
#4 0x7fbfa1b86494 in SelReportsMaker::operator()(Gaudi::Functional::details::vector_of_const_<DataObject*> const&) const ../Phys/SelReports/src/SelReportsMaker.cpp:247
#5 0x7fbfa1df313c in _ZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb13HltSelReportsE12ObjectVectorINS3_16HltObjectSummaryEEEERKNS0_7details16vector_of_const_IP10DataObjectEEENS0_6Traits11BaseClass_tINS_9AlgorithmEEEE7executeERK12EventContextENKUlDpRT_E_clIJK21DataObjectWriteHandleIS4_EKSU_IS7_EEEEDaSR_ /usera/jonesc/LHCbCMake/Feature/Gaudi/InstallArea/x86_64-centos7-gcc9-dbg+ubsan/include/GaudiAlg/MergingTransformer.h:181
#6 0x7fbfa1df313c in _ZSt13__invoke_implIvZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb13HltSelReportsE12ObjectVectorINS4_16HltObjectSummaryEEEERKNS1_7details16vector_of_const_IP10DataObjectEEENS1_6Traits11BaseClass_tINS0_9AlgorithmEEEE7executeERK12EventContextEUlDpRT_E_JRK21DataObjectWriteHandleIS5_ERKSU_IS8_EEET_St14__invoke_otherOT0_DpOT1_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/invoke.h:60
#7 0x7fbfa1df313c in _ZSt8__invokeIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb13HltSelReportsE12ObjectVectorINS4_16HltObjectSummaryEEEERKNS1_7details16vector_of_const_IP10DataObjectEEENS1_6Traits11BaseClass_tINS0_9AlgorithmEEEE7executeERK12EventContextEUlDpRT_E_JRK21DataObjectWriteHandleIS5_ERKSU_IS8_EEENSt15__invoke_resultIT_JDpT0_EE4typeEOS12_DpOS13_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/invoke.h:95
#8 0x7fbfa1df313c in _ZSt12__apply_implIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb13HltSelReportsE12ObjectVectorINS4_16HltObjectSummaryEEEERKNS1_7details16vector_of_const_IP10DataObjectEEENS1_6Traits11BaseClass_tINS0_9AlgorithmEEEE7executeERK12EventContextEUlDpRT_E_RKS3_IJ21DataObjectWriteHandleIS5_ESU_IS8_EEEJLm0ELm1EEEDcOT_OT0_St16integer_sequenceImJXspT1_EEE /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/tuple:1684
#9 0x7fbfa1df313c in _ZSt5applyIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb13HltSelReportsE12ObjectVectorINS4_16HltObjectSummaryEEEERKNS1_7details16vector_of_const_IP10DataObjectEEENS1_6Traits11BaseClass_tINS0_9AlgorithmEEEE7executeERK12EventContextEUlDpRT_E_RKS3_IJ21DataObjectWriteHandleIS5_ESU_IS8_EEEEDcOT_OT0_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/tuple:1694
#10 0x7fbfa1df313c in Gaudi::Functional::MergingMultiTransformer<std::tuple<LHCb::HltSelReports, ObjectVector<LHCb::HltObjectSummary> > (Gaudi::Functional::details::vector_of_const_<DataObject*> const&), Gaudi::Functional::Traits::BaseClass_t<Gaudi::Algorithm> >::execute(EventContext const&) const /usera/jonesc/LHCbCMake/Feature/Gaudi/InstallArea/x86_64-centos7-gcc9-dbg+ubsan/include/GaudiAlg/MergingTransformer.h:178
#11 0x7fbfe150fa45 in AlgWrapper::execute(EventContext&, gsl::span<AlgState, -1l>) const ../Hlt/HLTScheduler/src/ControlFlowNode.h:75
#12 0x7fbfe151096e in BasicNode::execute(gsl::span<NodeState, -1l>, gsl::span<AlgState, -1l>, std::vector<Gaudi::Accumulators::AveragingCounter<unsigned long, (Gaudi::Accumulators::atomicity)1>, std::allocator<Gaudi::Accumulators::AveragingCounter<unsigned long, (Gaudi::Accumulators::atomicity)1> > >&, EventContext&, IAlgExecStateSvc*, SmartIF<IProperty>&) const ../Hlt/HLTScheduler/src/ControlFlowNode.h:139
#13 0x7fbfe13e25c0 in operator() ../Hlt/HLTScheduler/src/HLTControlFlowMgr.cpp:426
#14 0x7fbfe13e25c0 in __invoke_impl<void, overload<HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(BasicNode&)>, HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(...)> >, BasicNode&> /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/invoke.h:60
#15 0x7fbfe13e25c0 in __invoke<overload<HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(BasicNode&)>, HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(...)> >, BasicNode&> /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/bits/invoke.h:95
#16 0x7fbfe13e25c0 in __visit_invoke_impl /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/variant:972
#17 0x7fbfe13e25c0 in __do_visit_invoke /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/variant:980
#18 0x7fbfe13e25c0 in __visit_invoke /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/variant:996
#19 0x7fbfe144760b in __do_visit<> /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/variant:1643
#20 0x7fbfe144760b in visit<overload<HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(BasicNode&)>, HLTControlFlowMgr::push(EventContext&&)::<lambda(EventContext&)>::<lambda(...)> >, std::variant<BasicNode, CompositeNode<(nodeType)0>, CompositeNode<(nodeType)1>, CompositeNode<(nodeType)2>, CompositeNode<(nodeType)3>, CompositeNode<(nodeType)4> >&> /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/9.2.0-afc57/x86_64-centos7/include/c++/9.2.0/variant:1654
#21 0x7fbfe144760b in operator() ../Hlt/HLTScheduler/src/HLTControlFlowMgr.cpp:423
#22 0x7fbfe144a7ec in operator() ../Hlt/HLTScheduler/src/HLTControlFlowMgr.cpp:49
#23 0x7fbfe144a7ec in execute /cvmfs/lhcb.cern.ch/lib/lcg/releases/tbb/2019_U7-ba3eb/x86_64-centos7-gcc9-dbg/include/tbb/task.h:980
#24 0x7fbffc9d8ab4 in tbb::internal::custom_scheduler<tbb::internal::IntelSchedulerTraits>::local_wait_for_all(tbb::task&, tbb::task*) ../../src/tbb/custom_scheduler.h:517
#25 0x7fbffc9d2545 in tbb::internal::arena::process(tbb::internal::generic_scheduler&) ../../src/tbb/arena.cpp:156
#26 0x7fbffc9d0fbf in tbb::internal::market::process(rml::job&) ../../src/tbb/market.cpp:702
#27 0x7fbffc9cd95b in tbb::internal::rml::private_worker::run() ../../src/tbb/private_server.cpp:266
#28 0x7fbffc9cdb58 in tbb::internal::rml::private_worker::thread_routine(void*) ../../src/tbb/private_server.cpp:219
#29 0x7fc00f528ea4 in start_thread (/lib64/libpthread.so.0+0x7ea4)
#30 0x7fc00eb488dc in __clone (/lib64/libc.so.6+0xfe8dc)