Segmentation violation upon running the executable

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fe6a95e2687 in __GI___waitpid (pid=32020, stat_loc=stat_loc
entry=0x7ffc4e5b3628, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007fe6a954d067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007fe6aa1f5c73 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x5639655617c0) at /home/hardev/dev/install/root/core/unix/src/TUnixSystem.cxx:2119
#3  TUnixSystem::StackTrace (this=0x5639655617c0) at /home/hardev/dev/install/root/core/unix/src/TUnixSystem.cxx:2413
#4  0x00007fe6aa1f8664 in TUnixSystem::DispatchSignals (this=0x5639655617c0, sig=kSigSegmentationViolation) at /home/hardev/dev/install/root/core/unix/src/TUnixSystem.cxx:3644
#5  <signal handler called>
#6  0x00007fe69bdc6553 in CChart::getIndex (this=this
entry=0x7fe69bfe08c0 <CNuclide::mass+32>, iZ=70, iA=160) at Chart.cpp:115
#7  0x00007fe69bdc47fd in CMass::getCalMass (this=this
entry=0x7fe69bfe08a0 <CNuclide::mass>, iZ=<optimized out>, iA=<optimized out>) at Mass.cpp:62
#8  0x00007fe69bdcc0e0 in CNuclide::init (this=this
entry=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nuclide.cpp:42
#9  0x00007fe69bdcc978 in CNuclide::CNuclide (this=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nuclide.cpp:26
#10 0x00007fe69bdba0ce in CNucleus::CNucleus (this=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nucleus.cpp:46
#11 0x00007fe6aa9660cc in ?? ()
#12 0x00005639662931d0 in ?? ()
#13 0x00005639662931c0 in ?? ()
#14 0x00005639662931d0 in ?? ()
#15 0x0000563966293210 in ?? ()
#16 0x00005639662d1740 in ?? ()
#17 0x00007fe6a4fcb8e6 in std::_Rb_tree<llvm::object::SectionRef, std::pair<llvm::object::SectionRef const, unsigned int>, std::_Select1st<std::pair<llvm::object::SectionRef const, unsigned int> >, std::less<llvm::object::SectionRef>, std::allocator<std::pair<llvm::object::SectionRef const, unsigned int> > >::_M_erase(std::_Rb_tree_node<std::pair<llvm::object::SectionRef const, unsigned int> >*) () from /home/hardev/dev/install/build/lib/libCling.so
#18 0x00007ffc4e5b6360 in ?? ()
#19 0x00007ffc4e5b65f0 in ?? ()
#20 0x000056396635c600 in ?? ()
#21 0x000056396639f630 in ?? ()
#22 0x0000000000000015 in ?? ()
#23 0x00005639662d1740 in ?? ()
#24 0x00007fe6a4834e15 in std::_Function_handler<llvm::Expected<unsigned long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/hardev/dev/install/build/lib/libCling.so
#25 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.
===========================================================
#6  0x00007fe69bdc6553 in CChart::getIndex (this=this
entry=0x7fe69bfe08c0 <CNuclide::mass+32>, iZ=70, iA=160) at Chart.cpp:115
#7  0x00007fe69bdc47fd in CMass::getCalMass (this=this
entry=0x7fe69bfe08a0 <CNuclide::mass>, iZ=<optimized out>, iA=<optimized out>) at Mass.cpp:62
#8  0x00007fe69bdcc0e0 in CNuclide::init (this=this
entry=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nuclide.cpp:42
#9  0x00007fe69bdcc978 in CNuclide::CNuclide (this=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nuclide.cpp:26
#10 0x00007fe69bdba0ce in CNucleus::CNucleus (this=0x7ffc4e5b6418, iZ0=<optimized out>, iA0=<optimized out>) at Nucleus.cpp:46
#11 0x00007fe6aa9660cc in ?? ()
#12 0x00005639662931d0 in ?? ()
#13 0x00005639662931c0 in ?? ()
#14 0x00005639662931d0 in ?? ()
#15 0x0000563966293210 in ?? ()
#16 0x00005639662d1740 in ?? ()
#17 0x00007fe6a4fcb8e6 in std::_Rb_tree<llvm::object::SectionRef, std::pair<llvm::object::SectionRef const, unsigned int>, std::_Select1st<std::pair<llvm::object::SectionRef const, unsigned int> >, std::less<llvm::object::SectionRef>, std::allocator<std::pair<llvm::object::SectionRef const, unsigned int> > >::_M_erase(std::_Rb_tree_node<std::pair<llvm::object::SectionRef const, unsigned int> >*) () from /home/hardev/dev/install/build/lib/libCling.so
#18 0x00007ffc4e5b6360 in ?? ()
#19 0x00007ffc4e5b65f0 in ?? ()
#20 0x000056396635c600 in ?? ()
#21 0x000056396639f630 in ?? ()
#22 0x0000000000000015 in ?? ()
#23 0x00005639662d1740 in ?? ()
#24 0x00007fe6a4834e15 in std::_Function_handler<llvm::Expected<unsigned long> (), llvm::orc::RTDyldObjectLinkingLayer::ConcreteLinkedObject<std::shared_ptr<llvm::RuntimeDyld::MemoryManager>, std::shared_ptr<llvm::JITSymbolResolver>, llvm::orc::RTDyldObjectLinkingLayer::addObject(std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> >, std::shared_ptr<llvm::JITSymbolResolver>)::{lambda(std::_List_iterator<std::unique_ptr<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject, std::default_delete<llvm::orc::RTDyldObjectLinkingLayerBase::LinkedObject> > >, llvm::RuntimeDyld&, std::shared_ptr<llvm::object::OwningBinary<llvm::object::ObjectFile> > const&, std::function<void ()>)#1}>::getSymbolMaterializer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >)::{lambda()#1}>::_M_invoke(std::_Any_data const&) () from /home/hardev/dev/install/build/lib/libCling.so
#25 0x0000000000000000 in ?? ()

ROOT Version: 6.16
Platform Ubuntu 18.04

It looks like the error is in you code:

The code worked fine with the older version of root though I used it like 6-7 years back.

Well, maybe, but with the information you gave, the only thing I can tell is that the error seems to come from CChart::getIndex, which is not a ROOT class (AFAIK)

Definitely not a ROOT class. Will look into the program to figure it out.
Thanks for your help.

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