Segmentation fault while loading delphes library

Hello,

I’ve been trying to run Example1.C from the delphes QuickTour (here) with a sample delphes output. However, when I start root and then execute gSystem->Load(“libDelphes”), I get a segmentation fault.

Here are all the threads:

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  _dl_relocate_object (scope=0x25c1b28, reloc_mode=<optimized out>, consider_profiling=0) at dl-reloc.c:232
#7  0x00007fc62883b861 in dl_open_worker (a=a
entry=0x7ffd02074d60) at dl-open.c:435
#8  0x00007fc628836574 in _dl_catch_error (objname=0x7ffd02074d50, errstring=0x7ffd02074d58, mallocedp=0x7ffd02074d4f, operate=0x7fc62883b4e0 <dl_open_worker>, args=0x7ffd02074d60) at dl-error.c:187
#9  0x00007fc62883adb9 in _dl_open (file=0x27025d0 "/home/jack/Software/MG5_aMC_v2_6_5/Delphes-3.4.1/libDelphes.so", mode=-2147483391, caller_dlopen=0x7fc6230e58b4 <cling::utils::platform::DLOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*)+20>, nsid=-2, argc=<optimized out>, argv=<optimized out>, env=0x1f934d0) at dl-open.c:660
#10 0x00007fc6271a7f09 in dlopen_doit (a=a
entry=0x7ffd02074f90) at dlopen.c:66
#11 0x00007fc628836574 in _dl_catch_error (objname=0x1e20410, errstring=0x1e20418, mallocedp=0x1e20408, operate=0x7fc6271a7eb0 <dlopen_doit>, args=0x7ffd02074f90) at dl-error.c:187
#12 0x00007fc6271a8571 in _dlerror_run (operate=operate
entry=0x7fc6271a7eb0 <dlopen_doit>, args=args
entry=0x7ffd02074f90) at dlerror.c:163
#13 0x00007fc6271a7fa1 in __dlopen (file=<optimized out>, mode=<optimized out>) at dlopen.c:87
#14 0x00007fc6230e58b4 in cling::utils::platform::DLOpen(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#15 0x00007fc623022887 in cling::DynamicLibraryManager::loadLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, bool) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#16 0x00007fc62302a0f8 in cling::Interpreter::loadLibrary(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#17 0x00007fc62302a8eb in cling::Interpreter::loadFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool, cling::Transaction**) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#18 0x00007fc6230c9af4 in cling::MetaSema::actOnLCommand(llvm::StringRef, cling::Transaction**) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#19 0x00007fc6230d7f91 in cling::MetaParser::isLCommand(cling::MetaSema::ActionResult&) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#20 0x00007fc6230d9c96 in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#21 0x00007fc6230c3509 in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#22 0x00007fc622f93efa in HandleInterpreterException (metaProcessor=0x230e390, input_line=0x7fc628a22fe7 ".L /home/jack/Software/MG5_aMC_v2_6_5/Delphes-3.4.1/libDelphes.so", compRes=
0x7ffd0207537c: cling::Interpreter::kSuccess, result=result
entry=0x0) at /home/jack/root-6.16.00/core/metacling/src/TCling.cxx:2163
#23 0x00007fc622f9e689 in TCling::Load (this=0x1e8adb0, filename=0x26e5ad0 "/home/jack/Software/MG5_aMC_v2_6_5/Delphes-3.4.1/libDelphes.so", system=<optimized out>) at /home/jack/root-6.16.00/core/metacling/src/TCling.cxx:3122
#24 0x00007fc6281a863c in TSystem::Load (this=0x1e19570, module=0x7fc628a45068 "libDelphes", entry=0x7fc628a45073 "", system=false) at /home/jack/root-6.16.00/core/base/src/TSystem.cxx:1936
#25 0x00007fc628a46111 in ?? ()
#26 0x0000000001e8bb30 in ?? ()
#27 0x0000000001e8bb30 in ?? ()
#28 0x00000000026c5038 in ?? ()
#29 0x00007fc623023250 in ?? () from /home/jack/root-6.16.00/obj/lib/libCling.so
#30 0x0000000001e19570 in ?? ()
#31 0x00007fc628a45000 in ?? ()
#32 0x00007ffd020755b0 in ?? ()
#33 0x00007fc628a46070 in ?? ()
#34 0x0000000101e8ed58 in ?? ()
#35 0x0000000001ede370 in ?? ()
#36 0x00007fc6230949b0 in ?? () from /home/jack/root-6.16.00/obj/lib/libCling.so
#37 0x00007ffd02075bc0 in ?? ()
#38 0x00007ffd02075630 in ?? ()
#39 0x00007fc62302437f in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.297] [clone .constprop.453] () from /home/jack/root-6.16.00/obj/lib/libCling.so
#40 0x00007fc623028ec3 in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#41 0x00007fc623029d31 in cling::Interpreter::echo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#42 0x00007fc6230ca20a in cling::MetaSema::actOnxCommand(llvm::StringRef, llvm::StringRef, cling::Value*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#43 0x00007fc6230d89c1 in cling::MetaParser::isXCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#44 0x00007fc6230d9cce in cling::MetaParser::isCommand(cling::MetaSema::ActionResult&, cling::Value*) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#45 0x00007fc6230c3509 in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/jack/root-6.16.00/obj/lib/libCling.so
#46 0x00007fc622f93efa in HandleInterpreterException (metaProcessor=0x230e390, input_line=0x26cd980 ".X  /home/jack/Software/MG5_aMC_v2_6_5/Delphes-3.4.1/./examples/debug.C("tag_1_delphes_events.root")", compRes=
0x7ffd02075bac: cling::Interpreter::kSuccess, result=result
entry=0x7ffd02075bc0) at /home/jack/root-6.16.00/core/metacling/src/TCling.cxx:2163
===========================================================

Any help will be greatly appreciated! :slight_smile:


_ROOT Version: 6.16.00
_Platform: Linux Mint 18.02
Compiler: Not Provided


Hi,

Can you check there is no issue with the library itself? Can you link it to some executable and use its functionality? Can you dlopen it?

Also, can you try to load some other library with ROOT to check if it is a problem with the ROOT installation itself?

Hello,

It was probably an issue with the library itself, since the segmentation fault disappeared after I reinstalled Delphes.

Thank you for the response