*** Break *** segmentation violation, when using eta criteria

I am encountering this error every time I change my eta criteria for jet and photon vector construction in Pythia to store in root tree. I can cout and see that there are particles in the eta criteria present for pushed back into the vector. Any help would be really appreciated.

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fe1b28ea45a in __GI___wait4 (pid=16570, stat_loc=stat_loc
entry=0x7ffda7a43d58, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x00007fe1b28ea41b in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffda7a43d58, options=options
entry=0) at ./posix/waitpid.c:38
#2  0x00007fe1b2850bcb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:171
#3  0x00007fe1b39172d4 in TUnixSystem::StackTrace() () from /home/raseeb/root/lib/libCore.so.6.26
#4  0x00007fe1b39145e5 in TUnixSystem::DispatchSignals(ESignals) () from /home/raseeb/root/lib/libCore.so.6.26
#5  <signal handler called>
#6  0x000055b697675c48 in fastjet::PseudoJet::perp() const ()
#7  0x000055b697675478 in main ()
===========================================================


The lines below might hint at the cause of the crash.
You may get help by asking at the ROOT forum https://root.cern/forum
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/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  0x000055b697675c48 in fastjet::PseudoJet::perp() const ()
#7  0x000055b697675478 in main ()
===========================================================

ROOT Version: 6.26/06
Platform: Ubuntu 22.04.1
Compiler: g++


It looks like it dies in “fastjet::PseudoJet::perp”, so you need to inspect where it is called (e.g., using the “gdb” debugger).

BTW. It would help if the application were compiled with the"-g" debugging option.

Sorry for the late reply. I think the error was due to the selection criteria, the program was not saving any entries in the tree. I’m a newbie and don’t know how to use the debug option.

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