Segfault when running 2023 MC with Allen via Moore
While running reconstruction in Allen for 2023 MC via AnalysisProduction, we encountered one segfault in just one of the MC file, See logs here: https://gitlab.cern.ch/lhcb-datapkg/AnalysisProductions/-/snippets/2787
We prepared a reproducible script in the attachment, which can be run with:
lb-run --siteroot=/cvmfs/lhcb.cern.ch/lib/ -c x86_64_v2-centos7-gcc12+detdesc-opt Moore/v54r19 gaudirun.py test.py
It seems related to the velo_three_hit_tracks_filter
algorithm:
#11 0x???????????????? in std::terminate() () from /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos7/lib64/libstdc++.so.6
#12 0x???????????????? in three_hit_tracks_filter_impl(Velo::TrackletHits const*, unsigned int, gsl::span<Velo::TrackletHits, 18446744073709551615ul>, unsigned int*, bool const*, Velo::Clusters_t<char const> const&, float) () from /cvmfs/lhcb.cern.ch/lib/lhcb/ALLEN/ALLEN_v3r17/InstallArea/x86_64_v2-centos7-gcc12+detdesc-opt/lib/libAllenLib.so
#13 0x???????????????? in velo_three_hit_tracks_filter::velo_three_hit_tracks_filter(velo_three_hit_tracks_filter::Parameters) () from /cvmfs/lhcb.cern.ch/lib/lhcb/ALLEN/ALLEN_v3r17/InstallArea/x86_64_v2-centos7-gcc12+detdesc-opt/lib/libAllenLib.so
#14 0x???????????????? in velo_three_hit_tracks_filter::velo_three_hit_tracks_filter_t::operator()(Allen::Store::StoreRef<std::tuple<velo_three_hit_tracks_filter::Parameters::host_number_of_events_t, velo_three_hit_tracks_filter::Parameters::host_total_number_of_velo_clusters_t, velo_three_hit_tracks_filter::Parameters::dev_event_list_t, velo_three_hit_tracks_filter::Parameters::dev_sorted_velo_cluster_container_t, velo_three_hit_tracks_filter::Parameters::dev_offsets_estimated_input_size_t, velo_three_hit_tracks_filter::Parameters::dev_three_hit_tracks_input_t, velo_three_hit_tracks_filter::Parameters::dev_atomics_velo_t, velo_three_hit_tracks_filter::Parameters::dev_hit_used_t, velo_three_hit_tracks_filter::Parameters::dev_number_of_events_t, velo_three_hit_tracks_filter::Parameters::dev_three_hit_tracks_output_t, velo_three_hit_tracks_filter::Parameters::dev_number_of_three_hit_tracks_output_t, velo_three_hit_tracks_filter::Parameters::max_chi2_t, velo_three_hit_tracks_filter::Parameters::max_weak_tracks_t, velo_three_hit_tracks_f[test.py](/uploads/d5e4b5ae9b56c44542d9520d943f0ac6/test.py)ilter::Parameters::block_dim_t>, std::tuple<velo_three_hit_tracks_filter::Parameters::host_number_of_events_t, velo_three_hit_tracks_filter::Parameters::host_total_number_of_velo_clusters_t, velo_three_hit_tracks_filter::Parameters::dev_event_list_t, velo_three_hit_tracks_filter::Parameters::dev_sorted_velo_cluster_container_t, velo_three_hit_tracks_filter::Parameters::dev_offsets_estimated_input_size_t, velo_three_hit_tracks_filter::Parameters::dev_three_hit_tracks_input_t, velo_three_hit_tracks_filter::Parameters::dev_atomics_velo_t, velo_three_hit_tracks_filter::Parameters::dev_hit_used_t, velo_three_hit_tracks_filter::Parameters::dev_number_of_events_t, velo_three_hit_tracks_filter::Parameters::dev_three_hit_tracks_output_t, velo_three_hit_tracks_filter::Parameters::dev_number_of_three_hit_tracks_output_t>, velo_three_hit_tracks_filter::Parameters, std::tuple<> > const&, RuntimeOptions const&, Constants const&, Allen::Context const&) const () from /cvmfs/lhcb.cern.ch/lib/lhcb/ALLEN/ALLEN_v3r17/InstallArea/x86_64_v2-centos7-gcc12+detdesc-opt/lib/libAllenLib.so
#15 0x???????????????? in velo_three_hit_tracks_filter_t::operator()(EventContext const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<mask_t, std::allocator<mask_t> > const&, std::vector<char, std::allocator<char> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<Velo::TrackletHits, std::allocator<Velo::TrackletHits> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<char, std::allocator<char> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, RuntimeOptions const&, Constants const* const&) const () from /cvmfs/lhcb.cern.ch/lib/lhcb/ALLEN/ALLEN_v3r17/InstallArea/x86_64_v2-centos7-gcc12+detdesc-opt/lib/libAllenAlgorithms.so
#16 0x???????????????? in Gaudi::Functional::details::MultiTransformer<std::tuple<std::vector<Velo::TrackletHits, std::allocator<Velo::TrackletHits> >, std::vector<unsigned int, std::allocator<unsigned int> > > (EventContext const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<mask_t, std::allocator<mask_t> > const&, std::vector<char, std::allocator<char> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<Velo::TrackletHits, std::allocator<Velo::TrackletHits> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, std::vector<char, std::allocator<char> > const&, std::vector<unsigned int, std::allocator<unsigned int> > const&, RuntimeOptions const&, Constants const* const&), Gaudi::Functional::Traits::use_<Gaudi::Functional::Traits::BaseClass_t<Gaudi::Algorithm> >, false>::execute(EventContext const&) const () from /cvmfs/lhcb.cern.ch/lib/lhcb/ALLEN/ALLEN_v3r17/InstallArea/x86_64_v2-centos7-gcc12+detdesc-opt/lib/libAllenAlgorithms.so
#17 0x???????????????? in AlgWrapper::execute(EventContext&, gsl::span<LHCb::Interfaces::ISchedulerConfiguration::State::AlgState,
Edited by Peilian Li