Segmentation violation while using Delphes

Hi,
I have installed root 6.08 on my laptop (ubuntu). It is working fine with pythia . Then I installed delphes software to get .root output from .hepmc file. But when I run delphes command (./DelphesSTDHEP cards/delphes_card_CMS.tcl output.root input.hep)
I got segmentation violation after following warning messages
This is entire terminal message:

Warning in <TClassTable::Add>: class DelphesModule already in TClassTable
Warning in <TClassTable::Add>: class DelphesFactory already in TClassTable
Warning in <TClassTable::Add>: class SortableObject already in TClassTable
Warning in <TClassTable::Add>: class Event already in TClassTable
Warning in <TClassTable::Add>: class LHCOEvent already in TClassTable
Warning in <TClassTable::Add>: class LHEFEvent already in TClassTable
Warning in <TClassTable::Add>: class LHEFWeight already in TClassTable
Warning in <TClassTable::Add>: class HepMCEvent already in TClassTable
Warning in <TClassTable::Add>: class GenParticle already in TClassTable
Warning in <TClassTable::Add>: class Vertex already in TClassTable
Warning in <TClassTable::Add>: class MissingET already in TClassTable
Warning in <TClassTable::Add>: class ScalarHT already in TClassTable
Warning in <TClassTable::Add>: class Rho already in TClassTable
Warning in <TClassTable::Add>: class Weight already in TClassTable
Warning in <TClassTable::Add>: class Photon already in TClassTable
Warning in <TClassTable::Add>: class Electron already in TClassTable
Warning in <TClassTable::Add>: class Muon already in TClassTable
Warning in <TClassTable::Add>: class Jet already in TClassTable
Warning in <TClassTable::Add>: class Track already in TClassTable
Warning in <TClassTable::Add>: class Tower already in TClassTable
Warning in <TClassTable::Add>: class HectorHit already in TClassTable
Warning in <TClassTable::Add>: class Candidate already in TClassTable
Warning in <TClassTable::Add>: class ExRootTreeReader already in TClassTable
Warning in <TClassTable::Add>: class ExRootTreeWriter already in TClassTable
Warning in <TClassTable::Add>: class ExRootTreeBranch already in TClassTable
Warning in <TClassTable::Add>: class ExRootResult already in TClassTable
Warning in <TClassTable::Add>: class ExRootClassifier already in TClassTable
Warning in <TClassTable::Add>: class ExRootFilter already in TClassTable
Warning in <TClassTable::Add>: class ExRootProgressBar already in TClassTable
Warning in <TClassTable::Add>: class ExRootConfParam already in TClassTable
Warning in <TClassTable::Add>: class ExRootConfReader already in TClassTable
Warning in <TClassTable::Add>: class ExRootTask already in TClassTable
Warning in <TClassTable::Add>: class Delphes already in TClassTable
Warning in <TClassTable::Add>: class AngularSmearing already in TClassTable
Warning in <TClassTable::Add>: class PhotonConversions already in TClassTable
Warning in <TClassTable::Add>: class ParticlePropagator already in TClassTable
Warning in <TClassTable::Add>: class Efficiency already in TClassTable
Warning in <TClassTable::Add>: class IdentificationMap already in TClassTable
Warning in <TClassTable::Add>: class EnergySmearing already in TClassTable
Warning in <TClassTable::Add>: class MomentumSmearing already in TClassTable
Warning in <TClassTable::Add>: class TrackSmearing already in TClassTable
Warning in <TClassTable::Add>: class ImpactParameterSmearing already in TClassTable

*** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fb40fa5f687 in __GI___waitpid (pid=10294, stat_loc=stat_loc
entry=0x7ffd11e7c9e8, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007fb40f9ca067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007fb412b66c1d in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x55b084748740) at /home/aayushi/aayushi/root-6.08.00/core/unix/src/TUnixSystem.cxx:2116
#3  TUnixSystem::StackTrace (this=0x55b084748740) at /home/aayushi/aayushi/root-6.08.00/core/unix/src/TUnixSystem.cxx:2403
#4  0x00007fb412b695dc in TUnixSystem::DispatchSignals (this=0x55b084748740, sig=kSigSegmentationViolation) at /home/aayushi/aayushi/root-6.08.00/core/unix/src/TUnixSystem.cxx:3661
#5  <signal handler called>
#6  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:93
#7  0x00007fb40ba63c79 in std::char_traits<char>::length (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>) at /usr/include/c++/7/bits/char_traits.h:320
#8  std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, this=0x7ffd11e7f420) at /usr/include/c++/7/bits/basic_string.h:1247
#9  std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+= (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, this=0x7ffd11e7f420) at /usr/include/c++/7/bits/basic_string.h:1159
#10 ExecAutoParse (what=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, header=header
entry=false, interpreter=0x55b0847d5b90) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5324
#11 0x00007fb40ba68904 in TCling::AutoParseImplRecurse (this=this
entry=0x55b0847d0030, cls=<optimized out>, cls
entry=0x7ffd11e7f740 "LHEFEvent", topLevel=topLevel
entry=true) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5445
#12 0x00007fb40ba68db3 in TCling::AutoParse (this=0x55b0847d0030, cls=0x7ffd11e7f740 "LHEFEvent") at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5523
#13 0x00007fb40baae50f in TClingCallbacks::LookupObject (this=<optimized out>, Tag=0x55b085515958) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClingCallbacks.cxx:345
#14 0x00007fb40bafcaa0 in cling::MultiplexInterpreterCallbacks::LookupObject(clang::TagDecl*) () from /home/aayushi/aayushi/root/lib/libCling.so
#15 0x00007fb40c573a54 in clang::MultiplexExternalSemaSource::CompleteType(clang::TagDecl*) () from /home/aayushi/aayushi/root/lib/libCling.so
#16 0x00007fb40c53edb1 in clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser*) () from /home/aayushi/aayushi/root/lib/libCling.so
#17 0x00007fb40c53f125 in clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) () from /home/aayushi/aayushi/root/lib/libCling.so
#18 0x00007fb40c134f7a in clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) [clone .part.212] () from /home/aayushi/aayushi/root/lib/libCling.so
#19 0x00007fb40bb06e51 in cling::getCompleteContext(clang::Decl const*, clang::ASTContext&, clang::Sema&) () from /home/aayushi/aayushi/root/lib/libCling.so
#20 0x00007fb40bb06f39 in cling::RequireCompleteDeclContext(clang::Sema&, clang::Preprocessor&, clang::TagDecl const*, cling::LookupHelper::DiagSetting) () from /home/aayushi/aayushi/root/lib/libCling.so
#21 0x00007fb40bb09f04 in cling::LookupHelper::findScope(llvm::StringRef, cling::LookupHelper::DiagSetting, clang::Type const**, bool) const () from /home/aayushi/aayushi/root/lib/libCling.so
#22 0x00007fb40bab0f61 in TClingClassInfo::TClingClassInfo (this=0x55b084b47d60, interp=<optimized out>, name=0x7ffd11e7fe40 "LHEFEvent") at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClingClassInfo.cxx:111
#23 0x00007fb40ba63627 in TCling::SetClassInfo (this=0x55b0847d0030, cl=0x55b085818360, reload=<optimized out>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:3307
#24 0x00007fb412b1c518 in TClass::Init (this=this
entry=0x55b085818360, name=name
entry=0x55b083f618ab "LHEFEvent", cversion=cversion
entry=2, typeinfo=typeinfo
entry=0x55b0841d2cb8 <typeinfo for LHEFEvent>, isa=isa
entry=0x55b0847c3020, dfil=dfil
entry=0x55b083f61888 "classes/DelphesClasses.h", ifil=<optimized out>, dl=<optimized out>, il=<optimized out>, givenInfo=<optimized out>, silent=<optimized out>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:1430
#25 0x00007fb412b25733 in TClass::TClass (this=0x55b085818360, name=0x55b083f618ab "LHEFEvent", cversion=<optimized out>, info=..., isa=0x55b0847c3020, dfil=0x55b083f61888 "classes/DelphesClasses.h", ifil=0x0, dl=70, il=0, silent=false) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:1279
#26 0x00007fb412b25d1a in ROOT::CreateClass (cname=0x55b083f618ab "LHEFEvent", id=id
entry=2, info=..., isa=isa
entry=0x55b0847c3020, dfil=dfil
entry=0x55b083f61888 "classes/DelphesClasses.h", ifil=ifil
entry=0x0, dl=70, il=0) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:5510
#27 0x00007fb412b31f79 in ROOT::Internal::TDefaultInitBehavior::CreateClass (il=0, dl=70, ifil=0x0, dfil=0x55b083f61888 "classes/DelphesClasses.h", isa=0x55b0847c3020, info=..., id=2, cname=<optimized out>, this=0x7fb412e77560 <ROOT::Internal::DefineBehavior(void*, void*)::theDefault>) at /home/aayushi/aayushi/root/include/Rtypes.h:218
#28 ROOT::TGenericClassInfo::GetClass (this=0x55b0841ec640 <ROOT::GenerateInitInstanceLocal(LHEFEvent const*)::instance>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TGenericClassInfo.cxx:207
#29 0x000055b083d770c3 in LHEFEvent::Class() ()
#30 0x000055b083d6f14e in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum http://root.cern.ch/forum.
Only if you are really convinced it is a bug in ROOT then please submit a
report at http://root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  __strlen_avx2 () at ../sysdeps/x86_64/multiarch/strlen-avx2.S:93
#7  0x00007fb40ba63c79 in std::char_traits<char>::length (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>) at /usr/include/c++/7/bits/char_traits.h:320
#8  std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::append (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, this=0x7ffd11e7f420) at /usr/include/c++/7/bits/basic_string.h:1247
#9  std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator+= (__s=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, this=0x7ffd11e7f420) at /usr/include/c++/7/bits/basic_string.h:1159
#10 ExecAutoParse (what=0x7fb403f529e8 <error: Cannot access memory at address 0x7fb403f529e8>, header=header
entry=false, interpreter=0x55b0847d5b90) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5324
#11 0x00007fb40ba68904 in TCling::AutoParseImplRecurse (this=this
entry=0x55b0847d0030, cls=<optimized out>, cls
entry=0x7ffd11e7f740 "LHEFEvent", topLevel=topLevel
entry=true) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5445
#12 0x00007fb40ba68db3 in TCling::AutoParse (this=0x55b0847d0030, cls=0x7ffd11e7f740 "LHEFEvent") at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:5523
#13 0x00007fb40baae50f in TClingCallbacks::LookupObject (this=<optimized out>, Tag=0x55b085515958) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClingCallbacks.cxx:345
#14 0x00007fb40bafcaa0 in cling::MultiplexInterpreterCallbacks::LookupObject(clang::TagDecl*) () from /home/aayushi/aayushi/root/lib/libCling.so
#15 0x00007fb40c573a54 in clang::MultiplexExternalSemaSource::CompleteType(clang::TagDecl*) () from /home/aayushi/aayushi/root/lib/libCling.so
#16 0x00007fb40c53edb1 in clang::Sema::RequireCompleteTypeImpl(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser*) () from /home/aayushi/aayushi/root/lib/libCling.so
#17 0x00007fb40c53f125 in clang::Sema::RequireCompleteType(clang::SourceLocation, clang::QualType, clang::Sema::TypeDiagnoser&) () from /home/aayushi/aayushi/root/lib/libCling.so
#18 0x00007fb40c134f7a in clang::Sema::RequireCompleteDeclContext(clang::CXXScopeSpec&, clang::DeclContext*) [clone .part.212] () from /home/aayushi/aayushi/root/lib/libCling.so
#19 0x00007fb40bb06e51 in cling::getCompleteContext(clang::Decl const*, clang::ASTContext&, clang::Sema&) () from /home/aayushi/aayushi/root/lib/libCling.so
#20 0x00007fb40bb06f39 in cling::RequireCompleteDeclContext(clang::Sema&, clang::Preprocessor&, clang::TagDecl const*, cling::LookupHelper::DiagSetting) () from /home/aayushi/aayushi/root/lib/libCling.so
#21 0x00007fb40bb09f04 in cling::LookupHelper::findScope(llvm::StringRef, cling::LookupHelper::DiagSetting, clang::Type const**, bool) const () from /home/aayushi/aayushi/root/lib/libCling.so
#22 0x00007fb40bab0f61 in TClingClassInfo::TClingClassInfo (this=0x55b084b47d60, interp=<optimized out>, name=0x7ffd11e7fe40 "LHEFEvent") at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClingClassInfo.cxx:111
#23 0x00007fb40ba63627 in TCling::SetClassInfo (this=0x55b0847d0030, cl=0x55b085818360, reload=<optimized out>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TCling.cxx:3307
#24 0x00007fb412b1c518 in TClass::Init (this=this
entry=0x55b085818360, name=name
entry=0x55b083f618ab "LHEFEvent", cversion=cversion
entry=2, typeinfo=typeinfo
entry=0x55b0841d2cb8 <typeinfo for LHEFEvent>, isa=isa
entry=0x55b0847c3020, dfil=dfil
entry=0x55b083f61888 "classes/DelphesClasses.h", ifil=<optimized out>, dl=<optimized out>, il=<optimized out>, givenInfo=<optimized out>, silent=<optimized out>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:1430
#25 0x00007fb412b25733 in TClass::TClass (this=0x55b085818360, name=0x55b083f618ab "LHEFEvent", cversion=<optimized out>, info=..., isa=0x55b0847c3020, dfil=0x55b083f61888 "classes/DelphesClasses.h", ifil=0x0, dl=70, il=0, silent=false) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:1279
#26 0x00007fb412b25d1a in ROOT::CreateClass (cname=0x55b083f618ab "LHEFEvent", id=id
entry=2, info=..., isa=isa
entry=0x55b0847c3020, dfil=dfil
entry=0x55b083f61888 "classes/DelphesClasses.h", ifil=ifil
entry=0x0, dl=70, il=0) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TClass.cxx:5510
#27 0x00007fb412b31f79 in ROOT::Internal::TDefaultInitBehavior::CreateClass (il=0, dl=70, ifil=0x0, dfil=0x55b083f61888 "classes/DelphesClasses.h", isa=0x55b0847c3020, info=..., id=2, cname=<optimized out>, this=0x7fb412e77560 <ROOT::Internal::DefineBehavior(void*, void*)::theDefault>) at /home/aayushi/aayushi/root/include/Rtypes.h:218
#28 ROOT::TGenericClassInfo::GetClass (this=0x55b0841ec640 <ROOT::GenerateInitInstanceLocal(LHEFEvent const*)::instance>) at /home/aayushi/aayushi/root-6.08.00/core/meta/src/TGenericClassInfo.cxx:207
#29 0x000055b083d770c3 in LHEFEvent::Class() ()
#30 0x000055b083d6f14e in main ()
===========================================================

Help me to proceed further.

Thanks
Aayushi

Hi Aayushi,

did you build Delphes yourself against your ROOT installation?

Cheers,
D

Hi,
I first instalIed root on my laptop and then used these commands to install Delphes:
wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.4.1.tar.gz
tar -zxf Delphes-3.4.1.tar.gz
cd Delphes-3.4.1
make

Is there any path to be needed to add in bashrc except these:
source /home/aayushi/aayushi/root/bin/thisroot.sh
export ROOTSYS=/home/aayushi/aayushi/root
export PATH=$PATH:$ROOTSYS/bin
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ROOTSYS/lib

Thanks
Aayushi

Hi Aayushi,

yes, LD_LIBRARY_PATH should point to the library directory of delphes.

Cheers,
D

Hi dpiparo
Did you mean

export DELPHESLOCATION=/home/aayushi/aayushi/DelphesTutorial/delphes
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$DELPHESLOCATION/lib

But when I open delphes install location, I didn’t found any library directory.

Thanks
Aayushi