[ROOT v6.06.08] Broken segmentation when calling TBrowser

Hello everyone,

I had been using ROOT for the past months with no problems (Could run most of the standard tutorial examples, link ROOT with my C++ project, TBrowser worked correctly, etc), but I recently needed to reinstall ROOT with a different ./configure option (I needed to add Pythia8 to the loop). So I went to my main ROOT directory, and did

make distclean
make clean

Then

export ROOTSYS=/home/cristian/root_source/root-6.08.08
export PYTHIA8=/home/cristian/workspace/pythia8219
export PATH=$ROOTSYS/bin:$PATH
export LD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
 ./configure --enable-minuit2 --enable-roofit --enable-pythia 8
make
. bin/thisroot.sh

For test purposes, I just did

root -l
new TBrowser

And got the following error

cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGVSplitter::TGVSplitter>: splitterv.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGHSplitter::TGHSplitter>: splitterh.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGComboBox::TGComboBox>: arrow_down.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f5886d4ba0c in __libc_waitpid (pid=18571, stat_loc=stat_loc
entry=0x7fff7b2c4d80, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1  0x00007f5886cd1232 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007f5887c45753 in TUnixSystem::StackTrace() () from /home/cristian/root_source/root-6.06.08/lib/libCore.so
#3  0x00007f5887c4815c in TUnixSystem::DispatchSignals(ESignals) () from /home/cristian/root_source/root-6.06.08/lib/libCore.so
#4  <signal handler called>
#5  0x00007f5879774393 in TGVScrollBar::SetPosition(int) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#6  0x00007f587973d336 in TGListBox::Layout() () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#7  0x00007f5879725d72 in TGFrame::Resize(unsigned int, unsigned int) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#8  0x00007f587973c037 in TGListBox::Resize(unsigned int, unsigned int) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#9  0x00007f58796f45f2 in TGComboBox::Init() () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#10 0x00007f58796f5671 in TGComboBox::TGComboBox(TGWindow const*, char const*, int, unsigned int, unsigned long) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#11 0x00007f58797014c1 in TGFileBrowser::CreateBrowser() () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#12 0x00007f5879704490 in TGFileBrowser::TGFileBrowser(TGWindow const*, TBrowser*, unsigned int, unsigned int) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#13 0x00007f588819a073 in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x0000000001ee2300 in ?? ()
#16 0x00007fff7b2c7990 in ?? ()
#17 0x0000000001ee2300 in ?? ()
#18 0x00007f588819a000 in ?? ()
#19 0x0000000000000016 in ?? ()
#20 0x00007fff7b2c7720 in ?? ()
#21 0x00007f5883dec253 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/cristian/root_source/root-6.06.08/lib/libCling.so
#22 0x00007f5883df0057 in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /home/cristian/root_source/root-6.06.08/lib/libCling.so
#23 0x00007f5883df0193 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /home/cristian/root_source/root-6.06.08/lib/libCling.so
#24 0x00007f5883e30363 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/cristian/root_source/root-6.06.08/lib/libCling.so
#25 0x00007f5883cf0d4d in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/cristian/root_source/root-6.06.08/lib/libCling.so
#26 0x00007f5887b68b30 in TApplication::ProcessLine(char const*, bool, int*) () from /home/cristian/root_source/root-6.06.08/lib/libCore.so
#27 0x00007f5887bb0ce1 in TROOT::ProcessLine(char const*, int*) () from /home/cristian/root_source/root-6.06.08/lib/libCore.so
#28 0x00007f58797c0626 in TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#29 0x00007f58797c1353 in TRootBrowser::InitPlugins(char const*) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#30 0x00007f58797c1846 in TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#31 0x00007f58797c1d58 in TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /home/cristian/root_source/root-6.06.08/lib/libGui.so
#32 0x00007f588819f0db in ?? ()
#33 0x0000000000000000 in ?? ()
===========================================================

So I looked for the libpng16.so.16 file, it’s on my Python 2.7 directory. I don’t know why it says it can not open it, though…

I also tried using “make uninstall” and erasing completely the ROOT main directory and doing everything from scratch, but I always end up with the same problems…

This came as a surprise to me, since these were the steps I followed before…

Thank you very much in advance, I appreciate any comments,
Cristian

You could try again from scratch on a clean area using cmake instead of ./configure:

cd $HOME
rm -rf root_source
unset ROOTSYS
#and any other ROOT PATH things
#Check that you have all prerequisites here: https://root.cern.ch/build-prerequisites
git clone http://root.cern.ch/git/root.git /opt/root_source
mkdir root_build
cd root_build
cmake -Droofit=true -Dminuit2=true ../root_source/
#See https://root.cern.ch/building-root
make -j4

Thank you for your suggestion, ferhue.

I tried that, but unfortunately I got the same problem.

cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGVSplitter::TGVSplitter>: splitterv.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGHSplitter::TGHSplitter>: splitterh.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGComboBox::TGComboBox>: arrow_down.xpm not found
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TInterpreter::TCling::AutoLoad>: failure loading library libASImage.so for TASImage
cling::DynamicLibraryManager::loadLibrary(): libpng16.so.16: cannot open shared object file: No such file or directory
Error in <TGVScrollBar::TGVScrollBar>: arrow_*.xpm not found

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fe7026e8a0c in __libc_waitpid (pid=5830, stat_loc=stat_loc
entry=0x7ffc4d477d40, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
#1  0x00007fe70266e232 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
#2  0x00007fe7035e27a3 in TUnixSystem::StackTrace() () from /home/cristian/root/lib/libCore.so
#3  0x00007fe7035e51ac in TUnixSystem::DispatchSignals(ESignals) () from /home/cristian/root/lib/libCore.so
#4  <signal handler called>
#5  0x00007fe6eba2b063 in TGVScrollBar::SetPosition(int) () from /home/cristian/root/lib/libGui.so
#6  0x00007fe6eb9f4006 in TGListBox::Layout() () from /home/cristian/root/lib/libGui.so
#7  0x00007fe6eb9dca12 in TGFrame::Resize(unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#8  0x00007fe6eb9f2d07 in TGListBox::Resize(unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#9  0x00007fe6eb9ab352 in TGComboBox::Init() () from /home/cristian/root/lib/libGui.so
#10 0x00007fe6eb9ac3d1 in TGComboBox::TGComboBox(TGWindow const*, char const*, int, unsigned int, unsigned long) () from /home/cristian/root/lib/libGui.so
#11 0x00007fe6eb9b8221 in TGFileBrowser::CreateBrowser() () from /home/cristian/root/lib/libGui.so
#12 0x00007fe6eb9bb160 in TGFileBrowser::TGFileBrowser(TGWindow const*, TBrowser*, unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#13 0x00007fe703b3a0bf in ?? ()
#14 0x00007fe6ff02a450 in ?? () from /home/cristian/root/lib/libCling.so
#15 0x00007fe6ff02ad30 in ?? () from /home/cristian/root/lib/libCling.so
#16 0x0000000100000000 in ?? ()
#17 0x0000000001bedaa0 in ?? ()
#18 0x00007ffc4d47a700 in ?? ()
#19 0x0000000001baecb0 in ?? ()
#20 0x0000000001adaab0 in ?? ()
#21 0x0000000001adaab0 in ?? ()
#22 0x0000000001b55710 in ?? ()
#23 0x0000000001b55710 in ?? ()
#24 0x0000000000850850 in ?? ()
#25 0x00007ffc4d47aa60 in ?? ()
#26 0x00007ffc4d47a740 in ?? ()
#27 0x00007ffc4d47aa60 in ?? ()
#28 0x00007ffc4d47aa60 in ?? ()
#29 0x00000000000002d8 in ?? ()
#30 0x00007ffc4d47a740 in ?? ()
#31 0x00007fe6ff036ec3 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/cristian/root/lib/libCling.so
#32 0x00007fe6ff037ebd in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/cristian/root/lib/libCling.so
#33 0x00007fe6ff0380bb in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /home/cristian/root/lib/libCling.so
#34 0x00007fe6ff073473 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/cristian/root/lib/libCling.so
#35 0x00007fe6fef2bea6 in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/cristian/root/lib/libCling.so
#36 0x00007fe6fef3ba63 in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /home/cristian/root/lib/libCling.so
#37 0x00007fe703505110 in TApplication::ProcessLine(char const*, bool, int*) () from /home/cristian/root/lib/libCore.so
#38 0x00007fe70354da31 in TROOT::ProcessLine(char const*, int*) () from /home/cristian/root/lib/libCore.so
#39 0x00007fe6eba77366 in TRootBrowser::ExecPlugin(char const*, char const*, char const*, int, int) () from /home/cristian/root/lib/libGui.so
#40 0x00007fe6eba78093 in TRootBrowser::InitPlugins(char const*) () from /home/cristian/root/lib/libGui.so
#41 0x00007fe6eba78586 in TRootBrowser::TRootBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*, bool) () from /home/cristian/root/lib/libGui.so
#42 0x00007fe6eba78a98 in TRootBrowser::NewBrowser(TBrowser*, char const*, unsigned int, unsigned int, char const*) () from /home/cristian/root/lib/libGui.so
#43 0x00007fe703b3f440 in ?? ()
#44 0x0000000001bee0c8 in ?? ()
#45 0x00007fe6ff02a2e0 in ?? () from /home/cristian/root/lib/libCling.so
#46 0x00007ffc4d47b600 in ?? ()
#47 0x0000000000000002 in ?? ()
#48 0x00007ffc4d47b1c0 in ?? ()
#49 0x00007fe6ff02a4b1 in std::_Function_base::_Base_manager<llvm::orc::ObjectLinkingLayer<cling::IncrementalJIT::NotifyObjectLoadedT>::ConcreteLinkedObjectSet<std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, std::unique_ptr<llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}>, std::default_delete<{lambda(std::string const&)#2}> >, std::_List_iterator<std::unique_ptr<llvm::orc::ObjectLinkingLayerBase::LinkedObjectSet, std::default_delete<std::_List_iterator> > > llvm::orc::ObjectLinkingLayer<cling::IncrementalJIT::NotifyObjectLoadedT>::addObjectSet<std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}> >(std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}>)::{lambda(std::default_delete<std::_List_iterator>, llvm::RuntimeDyld&, std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::string)::{lambda()#1}>::_M_manager(std::_Any_data&, llvm::orc::ObjectLinkingLayer<cling::IncrementalJIT::NotifyObjectLoadedT>::ConcreteLinkedObjectSet<std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, std::unique_ptr<llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}>, std::default_delete<{lambda(std::string const&)#2}> >, std::_List_iterator<std::unique_ptr<llvm::orc::ObjectLinkingLayerBase::LinkedObjectSet, std::default_delete<std::_List_iterator> > > llvm::orc::ObjectLinkingLayer<cling::IncrementalJIT::NotifyObjectLoadedT>::addObjectSet<std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}> >(std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > >, std::unique_ptr<cling::Azog, std::default_delete<cling::Azog> >, llvm::orc::LambdaResolver<cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#1}, cling::IncrementalJIT::addModules(std::vector<llvm::Module*, std::allocator<llvm::Module*> >&&)::{lambda(std::string const&)#2}>)::{lambda(std::default_delete<std::_List_iterator>, llvm::RuntimeDyld&, std::vector<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > >, std::allocator<std::unique_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile>, std::default_delete<llvm::object::OwningBinary<llvm::object::ObjectFile> > > > > const&, std::function<void ()>)#1}> const&, std::_Manager_operation) () from /home/cristian/root/lib/libCling.so
#50 0x00007fe6ff02ddfa in std::_Function_handler<unsigned long (), llvm::orc::LazyEmittingLayer<llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer> >::EmissionDeferredSet::find(llvm::StringRef, bool, llvm::orc::IRCompileLayer<cling::IncrementalJIT::RemovableObjectLinkingLayer>&)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/cristian/root/lib/libCling.so
#51 0x00007fe600000005 in ?? ()
#52 0x00007ffc4d47b350 in ?? ()
#53 0x00007ffc4d47b300 in ?? ()
#54 0x00007ffc4d47b6f9 in ?? ()
#55 0x0000000000000006 in ?? ()
#56 0x00007ffc4d47b2a8 in ?? ()
#57 0x00007ffc4d47b2d0 in ?? ()
#58 0x00007ffc4d47b2e8 in ?? ()
#59 0x00007ffc4d47b310 in ?? ()
#60 0x00007ffc4d47b320 in ?? ()
#61 0x00007ffc4d47b330 in ?? ()
#62 0x00007ffc4d47b340 in ?? ()
#63 0x00007ffc4d47b350 in ?? ()
#64 0x00007fe701464470 in vtable for llvm::raw_ostream () from /home/cristian/root/lib/libCling.so
#65 0x0000000001bb32b0 in ?? ()
#66 0x0000000001bb52b0 in ?? ()
#67 0x00007fe7029e6760 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#68 0x00007ffc4d47b310 in ?? ()
#69 0x00007ffc4d47b360 in ?? ()
#70 0x00007ffc4d47b390 in ?? ()
#71 0x0000000001a8e940 in ?? ()
#72 0x0000000001071ca0 in ?? ()
#73 0x0000000000000006 in ?? ()
#74 0x00007fe703b59034 in ?? ()
#75 0x0000000000000006 in ?? ()
#76 0x0000000000000320 in ?? ()
#77 0x00007fe70146be28 in gWrapperStore () from /home/cristian/root/lib/libCling.so
#78 0x00007fe7000001f4 in llvm::TargetLowering::LowerCallTo(llvm::TargetLowering::CallLoweringInfo&) const () from /home/cristian/root/lib/libCling.so
#79 0x0000000000000105 in ?? ()
#80 0x00007ffc4d47bba0 in ?? ()
#81 0x00007fe701464470 in vtable for llvm::raw_ostream () from /home/cristian/root/lib/libCling.so
#82 0x0000000001078620 in ?? ()
#83 0x000000000107a620 in ?? ()
#84 0x0000000001078620 in ?? ()
#85 0x0000000000000001 in ?? ()
#86 0x00007ffc4d47b840 in ?? ()
#87 0x00007fe6feb8df02 in ?? () from /home/cristian/root/lib/libCling.so
#88 0x0000000001077e90 in ?? ()
#89 0x00007fe702edbe0b in std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
#90 0x0000000000000000 in ?? ()
===========================================================


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.
===========================================================
#5  0x00007fe6eba2b063 in TGVScrollBar::SetPosition(int) () from /home/cristian/root/lib/libGui.so
#6  0x00007fe6eb9f4006 in TGListBox::Layout() () from /home/cristian/root/lib/libGui.so
#7  0x00007fe6eb9dca12 in TGFrame::Resize(unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#8  0x00007fe6eb9f2d07 in TGListBox::Resize(unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#9  0x00007fe6eb9ab352 in TGComboBox::Init() () from /home/cristian/root/lib/libGui.so
#10 0x00007fe6eb9ac3d1 in TGComboBox::TGComboBox(TGWindow const*, char const*, int, unsigned int, unsigned long) () from /home/cristian/root/lib/libGui.so
#11 0x00007fe6eb9b8221 in TGFileBrowser::CreateBrowser() () from /home/cristian/root/lib/libGui.so
#12 0x00007fe6eb9bb160 in TGFileBrowser::TGFileBrowser(TGWindow const*, TBrowser*, unsigned int, unsigned int) () from /home/cristian/root/lib/libGui.so
#13 0x00007fe703b3a0bf in ?? ()
#14 0x00007fe6ff02a450 in ?? () from /home/cristian/root/lib/libCling.so
#15 0x00007fe6ff02ad30 in ?? () from /home/cristian/root/lib/libCling.so
#16 0x0000000100000000 in ?? ()
#17 0x0000000001bedaa0 in ?? ()
#18 0x00007ffc4d47a700 in ?? ()
#19 0x0000000001baecb0 in ?? ()
#20 0x0000000001adaab0 in ?? ()
#21 0x0000000001adaab0 in ?? ()
#22 0x0000000001b55710 in ?? ()
#23 0x0000000001b55710 in ?? ()
#24 0x0000000000850850 in ?? ()
#25 0x00007ffc4d47aa60 in ?? ()
#26 0x00007ffc4d47a740 in ?? ()
#27 0x00007ffc4d47aa60 in ?? ()
#28 0x00007ffc4d47aa60 in ?? ()
#29 0x00000000000002d8 in ?? ()
#30 0x00007ffc4d47a740 in ?? ()
#31 0x00007fe6ff036ec3 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/cristian/root/lib/libCling.so
#32 0x00007fe6ff037ebd in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/cristian/root/lib/libCling.so
#33 0x00007fe6ff0380bb in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /home/cristian/root/lib/libCling.so
#34 0x00007fe6ff073473 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/cristian/root/lib/libCling.so
#35 0x00007fe6fef2bea6 in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/cristian/root/lib/libCling.so
===========================================================

I have a feeling something is wrong with the libpng library. I did grep -r libpng config.log and got this

Checking for libpng ... libraries to check for: libpng.so libpng.sl libpng.tbd libpng.dylib libpng.dll.a libpng.a libpng.lib libpng Checking in directories /usr/local/lib64 /usr/local/lib/x86_64-linux-gnu /usr/local/lib64 /usr/local/lib for libpng.so libpng.sl libpng.tbd libpng.dylib libpng.dll.a libpng.a libpng.lib libpng Checking for library libpng.so in directory /usr/local/lib Checking /usr/local/lib/libpng.so libpng.so not found in /usr/local/lib Checking for library libpng.sl in directory /usr/local/lib Checking /usr/local/lib/libpng.sl libpng.sl not found in /usr/local/lib Checking for library libpng.tbd in directory /usr/local/lib Checking /usr/local/lib/libpng.tbd libpng.tbd not found in /usr/local/lib Checking for library libpng.dylib in directory /usr/local/lib Checking /usr/local/lib/libpng.dylib libpng.dylib not found in /usr/local/lib Checking for library libpng.dll.a in directory /usr/local/lib Checking /usr/local/lib/libpng.dll.a libpng.dll.a not found in /usr/local/lib Checking for library libpng.a in directory /usr/local/lib Checking /usr/local/lib/libpng.a libpng.a not found in /usr/local/lib Checking for library libpng.lib in directory /usr/local/lib Checking /usr/local/lib/libpng.lib libpng.lib not found in /usr/local/lib Checking for library libpng in directory /usr/local/lib Checking /usr/local/lib/libpng libpng not found in /usr/local/lib Checking in directories /usr/X11/lib64 /usr/X11/lib/x86_64-linux-gnu /usr/X11/lib64 /usr/X11/lib for libpng.so libpng.sl libpng.tbd libpng.dylib libpng.dll.a libpng.a libpng.lib libpng Checking in directories /usr/lib64 /usr/lib/x86_64-linux-gnu /usr/lib64 /usr/lib for libpng.so libpng.sl libpng.tbd libpng.dylib libpng.dll.a libpng.a libpng.lib libpng Checking for library libpng.so in directory /usr/lib/x86_64-linux-gnu Checking /usr/lib/x86_64-linux-gnu/libpng.so Found file /usr/lib/x86_64-linux-gnu/libpng.so Checking if /usr/lib/x86_64-linux-gnu/libpng.so is a 64-bit library file -L /usr/lib/x86_64-linux-gnu/libpng.so | grep '64-bit'

I don’t know if this tells something useful to solve the issue… Thanks in advance.

-Cristian

Did you remove all the remnants from the configure procedure?
Did you install all prerequisites from the webpage?
Did you call source bin/thisroot.sh after building?
Maybe call also before “sudo ldconfig”?

Otherwise I can just suggest something like:

locate libpng16.so
ln -s resultofuppercommand /usr/lib/libpng16.so 
#or sth like...
cp /usr/local/lib/libpng16.so.16 /usr/lib

There are related threads:



askubuntu.com/questions/701246/l … -to-get-it
stackoverflow.com/questions/1878 … bject-file
stackoverflow.com/questions/2554 … s-libpng16
stackoverflow.com/questions/2593 … -fedora-20

Thank you very much, ferhue!

Now everything is working as it should, there’s no segmentation error and the usual examples on the tutorials directory are working. What I did was to install the libpng16 library, I moved the libpng16.so.16 file to /usr/lib/libpng16.so.16 as you mentioned and built everything with cmake as you suggested.

The remaining issue is that I still can’t run the tutorials/pythia/pythia8.C example or compile the main92 Pythia8 example.

Here’s what I did, following what someone else did for Pythia6 in the past Enabling pythia6 in cmake build

cmake PYTHIA8_LIBRARY=/home/cristian/workspace/pythia8219/lib -Dpythia8=ON
make -j4
. bin/thisroot.sh

As a note, when I installed PYTHIA8, I did ./configure --enable-share

And when I do

root-config --has-pythia8 no

Which means I’m doing something wrong when linking with Pythia8.

Thank you very much for your time and help,
Cristian

Try instead:

cmake -DPYTHIA8_LIBRARY=/home/cristian/workspace/pythia8219/libPythia8.so -Dpythia8=ON ../root_source

You can also specify -DPYTHIA8_DIR=… -DPYTHIA8_INCLUDE_DIR=… , see root.cern.ch/building-root

The output of this command should tell you if pythia8 is found. Check line “enabled support for…”. No need to remake everything.

See:

Thank you, ferhue,

Now it reads Found Pythia8: /home/cristian/workspace/pythia8219/include/Pythia8 and Enabled support for pythia8

Can I do make or should I do make clean first? (I have already built ROOT6 as I mentioned in the previous post, I don’t know if this would mess things up).

Thank you very much again for your time,
Cristian

You are welcome :wink:

I think you can do make directly without cleaning before. Just try.

Hello, ferhue,

Now it’s working, thank you very much!

Just for the record for anyone having the same problem, what I did in the end was:

cmake -DPYTHIA8_LIBRARY=/home/cristian/workspace/pythia8219/lib/libpythia8.so -DPYTHIA8_DIR=/home/cristian/workspace/pythia8219/ -DPYTHIA8_INCLUDE_DIR=/home/cristian/workspace/pythia8219/include -Dpythia8=ON ../root-6.06.08/ make -j4 . bin/thisroot.sh

You have to make sure you had configured Pythia8 beforehand with ./configure --enable-share

Make sure you have your PYTHIA8 and PYTHIA8DATA environment set as well to run the pythia8.C example.