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/
#1 0x00007efdcc6fcf62 in do_system () from /lib64/
#2 0x00007efdce4798f3 in TUnixSystem::StackTrace() () from /cvmfs/
#3 0x00007efdce47c144 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/
#5 0x00007efdcd95e534 in ROOT::Detail::TCollectionProxyInfo::Type<std::vector<bool, std::allocator > >::size(void*) () from /cvmfs/
#6 0x00007efdcd368a64 in TGenCollectionStreamer::Streamer(TBuffer&) () from /cvmfs/
#7 0x00007efdcd338caf in TCollectionStreamer::Streamer(TBuffer&, void*, int, TClass*) () from /cvmfs/
#8 0x00007efdcd2fc265 in TBufferFile::WriteFastArray(void*, TClass const*, int, TMemberStreamer*) () from /cvmfs/
#9 0x00007efdcd544713 in int TStreamerInfo::WriteBufferAux<char**>(TBuffer&, char** const&, TStreamerInfo::TCompInfo* const*, int, int, int, int, int) [clone .localalias.12] () from /cvmfs/
#10 0x00007efdcd3b06bd in TStreamerInfoActions::GenericWriteAction(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/
#11 0x00007efdcd2fbce5 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) [clone .localalias.111] () from /cvmfs/
#12 0x00007efdcde66304 in TBranch::FillImpl(ROOT::Internal::TBranchIMTHelper*) [clone .part.105] () from /cvmfs/
#13 0x00007efdcde72d2d in TBranchElement::FillImpl(ROOT::Internal::TBranchIMTHelper*) () from /cvmfs/
#14 0x00007efdcded699e in TTree::Fill() () from /cvmfs/
#15 0x00007efdcea0b571 in SkimSlim::Loop() () at /afs/
#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/
#17 0x000000000040481a in main () at /cvmfs/
#18 0x00007efdcc6dc555 in __libc_start_main () from /lib64/
#19 0x00000000004050a0 in _start () at /cvmfs/

Thanks !

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 !

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