Crash at filling tree

Dear all,
I am trying to fill a tree, with events (ROOT 6.18/04, linuxx8664gcc, tags/v6-18-04@v6-18-04).
My code works on all my samples, except one. I have traced the error line, and it is crashing at tree->Fill(), which is line - SkimSlim.cxx:608.
I am not able to spot the exact error, I have posted the entire crash thread below, any help is appreciated -

#0 0x00007efdcc77f46c in waitpid () from /lib64/libc.so.6
#1 0x00007efdcc6fcf62 in do_system () from /lib64/libc.so.6
#2 0x00007efdce4798f3 in TUnixSystem::StackTrace() () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libCore.so
#3 0x00007efdce47c144 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libCore.so
#4
#5 0x00007efdcd95e534 in ROOT::Detail::TCollectionProxyInfo::Type<std::vector<bool, std::allocator > >::size(void*) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libHist.so
#6 0x00007efdcd368a64 in TGenCollectionStreamer::Streamer(TBuffer&) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#7 0x00007efdcd338caf in TCollectionStreamer::Streamer(TBuffer&, void*, int, TClass*) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#8 0x00007efdcd2fc265 in TBufferFile::WriteFastArray(void*, TClass const*, int, TMemberStreamer*) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#9 0x00007efdcd544713 in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) [clone .localalias.12] () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#10 0x00007efdcd3b06bd in TStreamerInfoActions::GenericWriteAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#11 0x00007efdcd2fbce5 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) [clone .localalias.111] () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libRIO.so
#12 0x00007efdcde66304 in TBranch::FillImpl(ROOT::Internal::TBranchIMTHelper*) [clone .part.105] () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libTree.so
#13 0x00007efdcde72d2d in TBranchElement::FillImpl(ROOT::Internal::TBranchIMTHelper*) () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libTree.so
#14 0x00007efdcded699e in TTree::Fill() () from /cvmfs/atlas.cern.ch/repo/sw/software/21.2/AnalysisBaseExternals/21.2.134/InstallArea/x86_64-centos7-gcc8-opt/lib/libTree.so
#15 0x00007efdcea0b571 in SkimSlim::Loop() () at /afs/cern.ch/user/s/ssaha/ssaha/skimming_code_24072020/skimming-code/HaaSkimming/Root/SkimSlim.cxx:608
#16 0x0000000000408e17 in processOutput(TChain*, TFile*, TString, bool, bool, Config&, std::map<int, double, std::less, std::allocator<std::pair<int const, double> > >, std::map<int, TH1*, std::less, std::allocator<std::pair<int const, TH1*> > >, std::map<int, TH1*, std::less, std::allocator<std::pair<int const, TH1*> > >, bool, float, std::map<TString, TheoryWeightSyst, std::less, std::allocator<std::pair<TString const, TheoryWeightSyst> > >&) () at /afs/cern.ch/user/s/ssaha/ssaha/skimming_code_24072020/skimming-code/HaaSkimming/utils/MySkimSlim.cxx:296
#17 0x000000000040481a in main () at /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/bits/stl_tree.h:728
#18 0x00007efdcc6dc555 in __libc_start_main () from /lib64/libc.so.6
#19 0x00000000004050a0 in _start () at /cvmfs/atlas.cern.ch/repo/sw/software/21.2/sw/lcg/releases/gcc/8.3.0-cebb0/x86_64-centos7/include/c++/8.3.0/ostream:108

Thanks !
Shreya

Try running your failing example with valgrind to find what might be wrong:

valgrind --suppressions=$ROOTSYS/etc/valgrind-root.supp your_executable your_arguments

Hello @pcanal ,
Thank you very much for the command, I was able to fix the error !
Best,
Shreya

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.