UB in brunel-upgrade-bigevents and brunel-upgrade-bigevents2 tests
The brunel-upgrade-bigevents and brunel-upgrade-bigevents2 tests fail when running them with the undefined behaviour sanitizer. The stack trace for the former test is
/cvmfs/lhcb.cern.ch/lib/lcg/releases/vdt/0.4.3-992df/x86_64-centos7-gcc10-dbg/include/vdt/exp.h:144:38: runtime error: left shift of 516 by 23 places cannot be represented in type 'int'
#0 0x7f9144500a6d in vdt::fast_expf(float) (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x523ea6d)
#1 0x7f91445023fb in Data::ReadGhostNN::(anonymous namespace)::OutputActivationFnc::{lambda(float)#1}::operator()(float) const (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x52403fb)
#2 0x7f91445034f8 in TMV::Utils::Layer<1, 12ul, Data::ReadGhostNN::(anonymous namespace)::OutputActivationFnc::{lambda(float)#1}, float>::operator()(gsl::span<float const, 11ul>) const (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x52414f8)
#3 0x7f914450369a in auto TMV::Utils::operator|<std::array<float, 11ul> >(std::array<float, 11ul>&&, TMV::Utils::Layer<1, 12ul, Data::ReadGhostNN::(anonymous namespace)::OutputActivationFnc::{lambda(float)#1}, float> const&) (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x524169a)
#4 0x7f9144503c7c in _ZZNK3TMV5Utils3MVAINS0_9ValidatorIPKcJS4_S4_S4_S4_S4_S4_S4_S4_S4_EEENS0_11TransformerILi1ELm9EfEEJNS0_5LayerILm13ELm10EN4Data11ReadGhostNN12_GLOBAL__N_1L13ActivationFncMUlfE_EfEENS8_ILm11ELm14ESC_fEENS8_ILi1ELm12ENSB_L19OutputActivationFncMUlfE_EfEEEEclIfEEDaN3gsl4spanIKT_Lm9EEEENKUlDpOT_E_clIJRKSD_RKSE_RKSG_EEEDaSQ_ (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x5241c7c)
#5 0x7f91445253ff in _ZSt13__invoke_implIfZNK3TMV5Utils3MVAINS1_9ValidatorIPKcJS5_S5_S5_S5_S5_S5_S5_S5_S5_EEENS1_11TransformerILi1ELm9EfEEJNS1_5LayerILm13ELm10EN4Data11ReadGhostNN12_GLOBAL__N_1L13ActivationFncMUlfE_EfEENS9_ILm11ELm14ESD_fEENS9_ILi1ELm12ENSC_L19OutputActivationFncMUlfE_EfEEEEclIfEEDaN3gsl4spanIKT_Lm9EEEEUlDpOT_E_JRKSE_RKSF_RKSH_EESM_St14__invoke_otherOT0_DpOT1_ (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x52633ff)
#6 0x7f914451487f in __invoke<TMV::Utils::MVA<Validator, Transformation, Layers>::operator()<float>::<lambda(auto:171&& ...)>, const TMV::Utils::Layer<13, 10, Data::ReadGhostNN::(anonymous namespace)::<lambda(float)>, float>&, const TMV::Utils::Layer<11, 14, Data::ReadGhostNN::(anonymous namespace)::<lambda(float)>, float>&, const TMV::Utils::Layer<1, 12, Data::ReadGhostNN::(anonymous namespace)::<lambda(float)>, float>&> /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/10.1.0/x86_64-centos7/include/c++/10.1.0/bits/invoke.h:95
#7 0x7f9144503e4c in _ZSt12__apply_implIZNK3TMV5Utils3MVAINS1_9ValidatorIPKcJS5_S5_S5_S5_S5_S5_S5_S5_S5_EEENS1_11TransformerILi1ELm9EfEEJNS1_5LayerILm13ELm10EN4Data11ReadGhostNN12_GLOBAL__N_1L13ActivationFncMUlfE_EfEENS9_ILm11ELm14ESD_fEENS9_ILi1ELm12ENSC_L19OutputActivationFncMUlfE_EfEEEEclIfEEDaN3gsl4spanIKT_Lm9EEEEUlDpOT_E_RKSt5tupleIJSE_SF_SH_EEJLm0ELm1ELm2EEEDcOSM_OT0_St16integer_sequenceImJXspT1_EEE (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x5241e4c)
#8 0x7f9144503eca in _ZSt5applyIZNK3TMV5Utils3MVAINS1_9ValidatorIPKcJS5_S5_S5_S5_S5_S5_S5_S5_S5_EEENS1_11TransformerILi1ELm9EfEEJNS1_5LayerILm13ELm10EN4Data11ReadGhostNN12_GLOBAL__N_1L13ActivationFncMUlfE_EfEENS9_ILm11ELm14ESD_fEENS9_ILi1ELm12ENSC_L19OutputActivationFncMUlfE_EfEEEEclIfEEDaN3gsl4spanIKT_Lm9EEEEUlDpOT_E_RKSt5tupleIJSE_SF_SH_EEEDcOSM_OT0_ (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x5241eca)
#9 0x7f91445040c6 in auto TMV::Utils::MVA<TMV::Utils::Validator<char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*, char const*>, TMV::Utils::Transformer<1, 9ul, float>, TMV::Utils::Layer<13ul, 10ul, Data::ReadGhostNN::(anonymous namespace)::ActivationFnc::{lambda(float)#1}, float>, TMV::Utils::Layer<11ul, 14ul, Data::ReadGhostNN::(anonymous namespace)::ActivationFnc, float>, TMV::Utils::Layer<1, 12ul, Data::ReadGhostNN::(anonymous namespace)::OutputActivationFnc::{lambda(float)#1}, float> >::operator()<float>(gsl::span<float const, 9ul>) const (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x52420c6)
#10 0x7f91445041aa in ReadGhostNN::GetMvaValue(gsl::span<float const, 9ul>) (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x52421aa)
#11 0x7f914449d88e in operator() ../Pr/PrAlgorithms/src/PrForwardTracking.cpp:2216
#12 0x7f91444a172c in selectFullCandidates<false, std::vector<LHCb::Pr::Forward::PrForwardTrack>, LHCb::Pr::Forward::ModSciFiHits::ModPrSciFiHitsAOS<32>, LHCb::Pr::Forward::VeloSeedExtended<FTZoneCache::ZoneCache, std::array<float, 4> > > ../Pr/PrAlgorithms/src/PrForwardTracking.cpp:2219
#13 0x7f91445b7a12 in LHCb::Pr::Forward::PrForwardTracking<LHCb::Pr::Velo::Tracks>::forwardTracks(LHCb::Pr::Velo::Tracks const&, LHCb::Pr::FT::PrSciFiHits const&, FTZoneCache::ZoneCache const&) const ../Pr/PrAlgorithms/src/PrForwardTracking.cpp:2019
#14 0x7f91445c224e in LHCb::Pr::Forward::PrForwardTracking<LHCb::Pr::Velo::Tracks>::operator()(LHCb::Pr::FT::PrSciFiHits const&, LHCb::Pr::Velo::Tracks const&, FTZoneCache::ZoneCache const&) const ../Pr/PrAlgorithms/src/PrForwardTracking.cpp:1920
#15 0x7f91445ab536 in _ZZN5Gaudi10Functional7details19filter_evtcontext_tIJN4LHCb2Pr2FT11PrSciFiHitsENS4_4Velo6TracksEN11FTZoneCache9ZoneCacheEEE5applyINS1_11TransformerIFNS4_4Long6TracksERKS6_RKS8_RKSA_ENS0_6Traits4use_IJNS3_7DetDesc21useConditionHandleForIJSA_EEENSN_11BaseClass_tINSP_23ConditionAccessorHolderI10FixTESPathINS_9AlgorithmEEEEEEEEELb0EEEKSt5tupleIJ20DataObjectReadHandleIS6_ES12_IS8_ENSP_17ConditionAccessorISA_EEEEEEDaRKT_RK12EventContextRT0_ENKUlDpRKT_E_clIJS13_S14_S16_EEEDaS1K_ /home/rmatev/stackx/Gaudi/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/include/GaudiAlg/FunctionalDetails.h:419
#16 0x7f91445f2ce5 in _ZSt13__invoke_implIN4LHCb2Pr4Long6TracksEZN5Gaudi10Functional7details19filter_evtcontext_tIJNS1_2FT11PrSciFiHitsENS1_4Velo6TracksEN11FTZoneCache9ZoneCacheEEE5applyINS6_11TransformerIFS3_RKS9_RKSB_RKSD_ENS5_6Traits4use_IJNS0_7DetDesc21useConditionHandleForIJSD_EEENSO_11BaseClass_tINSQ_23ConditionAccessorHolderI10FixTESPathINS4_9AlgorithmEEEEEEEEELb0EEEKSt5tupleIJ20DataObjectReadHandleIS9_ES13_ISB_ENSQ_17ConditionAccessorISD_EEEEEEDaRKT_RK12EventContextRT0_EUlDpRKT_E_JRKS14_RKS15_RKS17_EES1A_St14__invoke_otherOS1G_DpOT1_ (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x5330ce5)
#17 0x7f91445ded17 in _ZSt8__invokeIZN5Gaudi10Functional7details19filter_evtcontext_tIJN4LHCb2Pr2FT11PrSciFiHitsENS5_4Velo6TracksEN11FTZoneCache9ZoneCacheEEE5applyINS2_11TransformerIFNS5_4Long6TracksERKS7_RKS9_RKSB_ENS1_6Traits4use_IJNS4_7DetDesc21useConditionHandleForIJSB_EEENSO_11BaseClass_tINSQ_23ConditionAccessorHolderI10FixTESPathINS0_9AlgorithmEEEEEEEEELb0EEEKSt5tupleIJ20DataObjectReadHandleIS7_ES13_IS9_ENSQ_17ConditionAccessorISB_EEEEEEDaRKT_RK12EventContextRT0_EUlDpRKT_E_JRKS14_RKS15_RKS17_EENSt15__invoke_resultIS1A_JDpT0_EE4typeEOS1A_DpOS1U_ (/home/rmatev/stackx/Rec/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/lib/libPrAlgorithms.so+0x531cd17)
#18 0x7f91445ab77c in _ZSt12__apply_implIZN5Gaudi10Functional7details19filter_evtcontext_tIJN4LHCb2Pr2FT11PrSciFiHitsENS5_4Velo6TracksEN11FTZoneCache9ZoneCacheEEE5applyINS2_11TransformerIFNS5_4Long6TracksERKS7_RKS9_RKSB_ENS1_6Traits4use_IJNS4_7DetDesc21useConditionHandleForIJSB_EEENSO_11BaseClass_tINSQ_23ConditionAccessorHolderI10FixTESPathINS0_9AlgorithmEEEEEEEEELb0EEEKSt5tupleIJ20DataObjectReadHandleIS7_ES13_IS9_ENSQ_17ConditionAccessorISB_EEEEEEDaRKT_RK12EventContextRT0_EUlDpRKT_E_RS19_JLm0ELm1ELm2EEEDcOS1A_OS1G_St16integer_sequenceImJXspT1_EEE /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/10.1.0/x86_64-centos7/include/c++/10.1.0/tuple:1724
#19 0x7f91445ab892 in _ZSt5applyIZN5Gaudi10Functional7details19filter_evtcontext_tIJN4LHCb2Pr2FT11PrSciFiHitsENS5_4Velo6TracksEN11FTZoneCache9ZoneCacheEEE5applyINS2_11TransformerIFNS5_4Long6TracksERKS7_RKS9_RKSB_ENS1_6Traits4use_IJNS4_7DetDesc21useConditionHandleForIJSB_EEENSO_11BaseClass_tINSQ_23ConditionAccessorHolderI10FixTESPathINS0_9AlgorithmEEEEEEEEELb0EEEKSt5tupleIJ20DataObjectReadHandleIS7_ES13_IS9_ENSQ_17ConditionAccessorISB_EEEEEEDaRKT_RK12EventContextRT0_EUlDpRKT_E_RS19_EDcOS1A_OS1G_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/10.1.0/x86_64-centos7/include/c++/10.1.0/tuple:1736
#20 0x7f91445aba32 in auto Gaudi::Functional::details::filter_evtcontext_t<LHCb::Pr::FT::PrSciFiHits, LHCb::Pr::Velo::Tracks, FTZoneCache::ZoneCache>::apply<Gaudi::Functional::details::Transformer<LHCb::Pr::Long::Tracks (LHCb::Pr::FT::PrSciFiHits const&, LHCb::Pr::Velo::Tracks const&, FTZoneCache::ZoneCache const&), Gaudi::Functional::Traits::use_<LHCb::DetDesc::useConditionHandleFor<FTZoneCache::ZoneCache>, Gaudi::Functional::Traits::BaseClass_t<LHCb::DetDesc::ConditionAccessorHolder<FixTESPath<Gaudi::Algorithm> > > >, false>, std::tuple<DataObjectReadHandle<LHCb::Pr::FT::PrSciFiHits>, DataObjectReadHandle<LHCb::Pr::Velo::Tracks>, LHCb::DetDesc::ConditionAccessor<FTZoneCache::ZoneCache> > const>(Gaudi::Functional::details::Transformer<LHCb::Pr::Long::Tracks (LHCb::Pr::FT::PrSciFiHits const&, LHCb::Pr::Velo::Tracks const&, FTZoneCache::ZoneCache const&), Gaudi::Functional::Traits::use_<LHCb::DetDesc::useConditionHandleFor<FTZoneCache::ZoneCache>, Gaudi::Functional::Traits::BaseClass_t<LHCb::DetDesc::ConditionAccessorHolder<FixTESPath<Gaudi::Algorithm> > > >, false> const&, EventContext const&, std::tuple<DataObjectReadHandle<LHCb::Pr::FT::PrSciFiHits>, DataObjectReadHandle<LHCb::Pr::Velo::Tracks>, LHCb::DetDesc::ConditionAccessor<FTZoneCache::ZoneCache> > const&) /home/rmatev/stackx/Gaudi/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/include/GaudiAlg/FunctionalDetails.h:419
#21 0x7f91445abdb1 in Gaudi::Functional::details::Transformer<LHCb::Pr::Long::Tracks (LHCb::Pr::FT::PrSciFiHits const&, LHCb::Pr::Velo::Tracks const&, FTZoneCache::ZoneCache const&), Gaudi::Functional::Traits::use_<LHCb::DetDesc::useConditionHandleFor<FTZoneCache::ZoneCache>, Gaudi::Functional::Traits::BaseClass_t<LHCb::DetDesc::ConditionAccessorHolder<FixTESPath<Gaudi::Algorithm> > > >, false>::execute(EventContext const&) const /home/rmatev/stackx/Gaudi/InstallArea/x86_64_v2-centos7-gcc10-dbg+alubsan/include/GaudiAlg/Transformer.h:74
#22 0x7f919a10e04a in Gaudi::Algorithm::sysExecute(EventContext const&) ../GaudiKernel/src/Lib/Algorithm.cpp:366
The stack trace for the latter test is identical except that the message is different (528 vs 516)
/cvmfs/lhcb.cern.ch/lib/lcg/releases/vdt/0.4.3-992df/x86_64-centos7-gcc10-dbg/include/vdt/exp.h:144:38: runtime error: left shift of 528 by 23 places cannot be represented in type 'int'