Reference binding to null pointer in HltPackedBufferWriter
@sesen @graven when running HLT2 with the sanitizer build we get the following error from HltPackedBufferWriter
. Could you please investigate if this is real?
The used stack is slightly behind master: https://gitlab.cern.ch/lhcb-core/lhcbstacks/-/blob/master/data/stacks/RTA/2023.05.yml
2023-05-23 03:09:40 hlt20101 SYSTEM NodeLogger /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/stl_vector.h:1124:34: runtime error: reference binding to null pointer of type 'value_type'
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #0 0x7f56f68bd60d in std::vector<std::byte, std::allocator<std::byte> >::operator[](unsigned long) /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/stl_vector.h:1124
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #1 0x7f56f68bd60d in LHCb::Hlt::PackedData::ByteBuffer::compress(LHCb::Hlt::PackedData::Compression, int, std::vector<std::byte, std::allocator<std::byte> >&) const ../Event/EventPacker/src/lib/PackedDataBuffer.cpp:27
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #2 0x7f56fae08ce6 in LHCb::Hlt::PackedData::PackedDataOutBuffer::compress(LHCb::Hlt::PackedData::Compression, int, std::vector<std::byte, std::allocator<std::byte> >&) const ../Event/EventPacker/include/Event/PackedDataBuffer.h:289
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #3 0x7f56fae08ce6 in LHCb::Hlt::DAQ::HltPackedBufferWriter::operator()(Gaudi::Functional::details::vector_of_const_<LHCb::Hlt::PackedData::PackedDataOutBuffer*> const&) const ../Hlt/HltDAQ/src/component/HltPackedBufferWriter.cpp:74
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #4 0x7f56fae1608d in _ZZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS3_7RawBankELm18446744073709551615EEEEERKNS0_7details16vector_of_const_IPNS3_3Hlt10PackedData19PackedDataOutBufferEEEENS0_6Traits4use_IJNSN_12writeViewForIS4_NS3_9Algorithm6Traits7details10OpaqueViewEEENSN_11BaseClass_tI10FixTESPathINS_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleIST_S4_EKS1A_ISB_SB_EEEEDaS17_ENKUlDpOS15_E0_clIJRSJ_EEEDaS1G_ Gaudi/InstallArea/x86_64_v2-el9-gcc12-dbg+alubsan/include/GaudiAlg/MergingTransformer.h:316
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #5 0x7f56fae1608d in _ZSt13__invoke_implISt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS1_7RawBankELm18446744073709551615EEEEEZZNK5Gaudi10Functional23MergingMultiTransformerIFSA_RKNSC_7details16vector_of_const_IPNS1_3Hlt10PackedData19PackedDataOutBufferEEEENSC_6Traits4use_IJNSO_12writeViewForIS2_NS1_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINSB_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleISU_S2_EKS1B_IS9_S9_EEEEDaS18_EUlDpOS16_E0_JRSK_EET_St14__invoke_otherOT0_DpOT1_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/invoke.h:61
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #6 0x7f56fae1608d in _ZSt8__invokeIZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleISU_S5_EKS1B_ISC_SC_EEEEDaS18_EUlDpOS16_E0_JRSK_EENSt15__invoke_resultIT_JDpT0_EE4typeEOS1L_DpOS1M_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/invoke.h:97
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #7 0x7f56fae1608d in _ZSt12__apply_implIZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleISU_S5_EKS1B_ISC_SC_EEEEDaS18_EUlDpOS16_E0_RS3_IJSK_EEJLm0EEEDcOT_OT0_St16integer_sequenceImJXspT1_EEE /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/tuple:1853
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #8 0x7f56fae1608d in _ZSt5applyIZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleISU_S5_EKS1B_ISC_SC_EEEEDaS18_EUlDpOS16_E0_RS3_IJSK_EEEDcOT_OT0_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/tuple:1865
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #9 0x7f56fae1608d in _ZZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS3_7RawBankELm18446744073709551615EEEEERKNS0_7details16vector_of_const_IPNS3_3Hlt10PackedData19PackedDataOutBufferEEEENS0_6Traits4use_IJNSN_12writeViewForIS4_NS3_9Algorithm6Traits7details10OpaqueViewEEENSN_11BaseClass_tI10FixTESPathINS_9AlgorithmEEEEEEEE7executeERK12EventContextENKUlDpRT_E0_clIJK21DataObjectWriteHandleIST_S4_EKS1A_ISB_SB_EEEEDaS17_ Gaudi/InstallArea/x86_64_v2-el9-gcc12-dbg+alubsan/include/GaudiAlg/MergingTransformer.h:312
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #10 0x7f56fae20b2e in _ZSt13__invoke_implIvZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextEUlDpRT_E0_JRK21DataObjectWriteHandleISU_S5_ERKS1A_ISC_SC_EEET_St14__invoke_otherOT0_DpOT1_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/invoke.h:61
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #11 0x7f56fae20b2e in _ZSt8__invokeIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextEUlDpRT_E0_JRK21DataObjectWriteHandleISU_S5_ERKS1A_ISC_SC_EEENSt15__invoke_resultIT_JDpT0_EE4typeEOS1I_DpOS1J_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/bits/invoke.h:96
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #12 0x7f56fae20b2e in _ZSt12__apply_implIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextEUlDpRT_E0_RKS3_IJ21DataObjectWriteHandleISU_S5_ES1A_ISC_SC_EEEJLm0ELm1EEEDcOT_OT0_St16integer_sequenceImJXspT1_EEE /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/tuple:1852
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #13 0x7f56fae20b2e in _ZSt5applyIZNK5Gaudi10Functional23MergingMultiTransformerIFSt5tupleIJN4LHCb8RawEventEN3gsl4spanIKPKNS4_7RawBankELm18446744073709551615EEEEERKNS1_7details16vector_of_const_IPNS4_3Hlt10PackedData19PackedDataOutBufferEEEENS1_6Traits4use_IJNSO_12writeViewForIS5_NS4_9Algorithm6Traits7details10OpaqueViewEEENSO_11BaseClass_tI10FixTESPathINS0_9AlgorithmEEEEEEEE7executeERK12EventContextEUlDpRT_E0_RKS3_IJ21DataObjectWriteHandleISU_S5_ES1A_ISC_SC_EEEEDcOT_OT0_ /cvmfs/lhcb.cern.ch/lib/lcg/releases/gcc/12.1.0-57c96/x86_64-centos9/include/c++/12.1.0/tuple:1863
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #14 0x7f56fae20b2e in Gaudi::Functional::MergingMultiTransformer<std::tuple<LHCb::RawEvent, gsl::span<LHCb::RawBank const* const, 18446744073709551615ul> > (Gaudi::Functional::details::vector_of_const_<LHCb::Hlt::PackedData::PackedDataOutBuffer*> const&), Gaudi::Functional::Traits::use_<Gaudi::Functional::Traits::writeViewFor<LHCb::RawEvent, LHCb::Algorithm::Traits::details::OpaqueView>, Gaudi::Functional::Traits::BaseClass_t<FixTESPath<Gaudi::Algorithm> > > >::execute(EventContext const&) const Gaudi/InstallArea/x86_64_v2-el9-gcc12-dbg+alubsan/include/GaudiAlg/MergingTransformer.h:309
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #15 0x7f5717c699e5 in Online::AlgWrapper::execute(EventContext&, gsl::span<LHCb::Interfaces::ISchedulerConfiguration::State::AlgState, 18446744073709551615ul>) const (/group/hlt/hlt2_2305/Online/InstallArea/x86_64_v2-el9-gcc12-dbg+alubsan/lib/libAlgflowManagerComp.so+0x81b9e5)
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #16 0x7f5717c7b802 in Online::BasicNode::execute(gsl::span<LHCb::Interfaces::ISchedulerConfiguration::State::NodeState, 18446744073709551615ul>, gsl::span<LHCb::Interfaces::ISchedulerConfiguration::State::AlgState, 18446744073709551615ul>, EventContext&, IAlgExecStateSvc*, SmartIF<IProperty>&) const (/group/hlt/hlt2_2305/Online/InstallArea/x86_64_v2-el9-gcc12-dbg+alubsan/lib/libAlgflowManagerComp.so+0x82d802)
2023-05-23 03:09:41 hlt20101 SYSTEM NodeLogger #17 0x7f5717c1a234 in Online::AlgFlowManager::processEvent(EventContext&) ../Online/AlgFlowManager/components/AlgFlowManager.cpp:249
20
Edited by Rosen Matev