ROOT_Running


_ROOT Version:_6.30/02
Platform: Linux
Compiler: gcc


I am getting this type of error while running a program. Please help me.

root [0] 
Processing particle_production.C...
16155
total no. of baryons  and protons in : [1] 	 event is :0	0

 *** Break *** floating point exception



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007f08440ea3ea in __GI___wait4 (pid=19962, stat_loc=stat_loc
entry=0x7ffe4ec1ddd8, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x00007f08440ea3ab in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffe4ec1ddd8, options=options
entry=0) at ./posix/waitpid.c:38
#2  0x00007f0844050bdb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:171
#3  0x00007f0844b157b4 in TUnixSystem::StackTrace() () from /home/roht/root/root-6.30.02-install/lib/libCore.so
#4  0x00007f0844b12ae5 in TUnixSystem::DispatchSignals(ESignals) () from /home/roht/root/root-6.30.02-install/lib/libCore.so
#5  <signal handler called>
#6  0x00007f0844d0b53a in ?? ()
#7  0x000055f8d9682fb0 in ?? ()
#8  0x000000000000000c in ?? ()
#9  0x0000000000000000 in ?? ()
===========================================================


The lines below might hint at the cause of the crash. If you see question
marks as part of the stack trace, try to recompile with debugging information
enabled and export CLING_DEBUG=1 environment variable before running.
You may get help by asking at the ROOT forum https://root.cern/forum
preferably using the command (.forum bug) in the ROOT prompt.
Only if you are really convinced it is a bug in ROOT then please submit a
report at https://root.cern/bugs or (preferably) using the command (.gh bug) in
the ROOT prompt. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.
===========================================================
#6  0x00007f0844d0b53a in ?? ()
#7  0x000055f8d9682fb0 in ?? ()
#8  0x000000000000000c in ?? ()
#9  0x0000000000000000 in ?? ()
===========================================================

Your code already tells you that it found 0 particles, so the error is probably a division by zero somewhere. If you should not have those zero event cases, check that you are correctly reading the events (trees?), and add protections in your code so that you don’t divide by zero or similar in case zeros can indeed be expected.

Thanks a lot sir.

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