When I ran my code, there was a “segmentation violation” as below. I don’t know what I should check first.
*** Break *** segmentation violation \=========================================================== There was a crash. This is the entire stack trace of all threads: \=========================================================== #0 0x00007fc29324541c in waitpid () from /lib64/libc.so.6 #1 0x00007fc2931c2f12 in do_system () from /lib64/libc.so.6 #2 0x00007fc298838414 in Exec (shellcmd=<optimized out>, this=<optimized out>) at /home/wu/root/core/unix/src/TUnixSystem.cxx:2172 #3 TUnixSystem::StackTrace (this=0x280f7b0) at /home/wu/root/core/unix/src/TUnixSystem.cxx:2419 #4 0x00007fc29883a53c in TUnixSystem::DispatchSignals (this=0x280f7b0, sig=kSigSegmentationViolation) at /home/wu/root/core/unix/src/TUnixSystem.cxx:1294 #5 <signal handler called> #6 0x0000000000415dbf in pho::getHe4He4He4Angle() () #7 0x000000000041585b in pho::Loop(long long) () #8 0x0000000000413a8f in main () \=========================================================== The lines below might hint at the cause of the crash. If they do not help you then please submit a bug 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 0x0000000000415dbf in pho::getHe4He4He4Angle() () #7 0x000000000041585b in pho::Loop(long long) () #8 0x0000000000413a8f in main () \=========================================================== Segmentation fault (core dumped)
I would be really appreciated if you could give me any suggestion.