Home | News | Documentation | Download

S_plot : *** Break *** segmentation violation

Hey!

I’m trying to implement s_weight technique in my analysis where is signal weight is added to the dataset according to the fit model and fit result. But after processing some events it is giving me " *** Break *** segmentation violation" error and I’m not able to figure out how to fix this. I’m attaching the script along with the error info from the terminal.

splot.C (7.3 KB)

Error-
--- ... Processing event: 94000
--- ... Processing event: 95000
--- ... Processing event: 96000
--- ... Processing event: 97000
--- ... Processing event: 98000
--- ... Processing event: 99000
--- ... Processing event: 100000
--- ... Processing event: 101000
--- ... Processing event: 102000
--- ... Processing event: 103000
--- ... Processing event: 104000
--- ... Processing event: 105000
--- ... Processing event: 106000
--- ... Processing event: 107000
--- ... Processing event: 108000
--- ... Processing event: 109000

 *** Break *** segmentation violation



===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0  0x00007fa954feddba in __GI___wait4 (pid=23009, stat_loc=stat_loc
entry=0x7ffc3703f7e8, options=options
entry=0, usage=usage
entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:27
#1  0x00007fa954fedd7b in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc
entry=0x7ffc3703f7e8, options=options
entry=0) at waitpid.c:38
#2  0x00007fa954f5d0e7 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:172
#3  0x00007fa95561ef9e in TUnixSystem::StackTrace() () from /opt/root/6.22.02-install/lib/libCore.so
#4  0x00007fa95561be15 in TUnixSystem::DispatchSignals(ESignals) () from /opt/root/6.22.02-install/lib/libCore.so
#5  <signal handler called>
#6  0x00007fa9425c1ab3 in RooAbsCollection::RooAbsCollection(RooAbsCollection const&, char const*) () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#7  0x00007fa942645e2d in RooArgSet::RooArgSet(RooArgSet const&, char const*) () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#8  0x00007fa9411320c4 in RooStats::SPlot::GetSWeight(int, char const*) const () from /opt/root/6.22.02-install/lib/libRooStats.so
#9  0x00007fa9553005e2 in ?? ()
#10 0x00007ffc37042a18 in ?? ()
#11 0x00007fa900000001 in ?? ()
#12 0x00007fa900000000 in ?? ()
#13 0x00007fa955301500 in ?? ()
#14 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#15 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#16 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#17 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#18 0x00007ffc37042620 in ?? ()
#19 0x00007ffc37042620 in ?? ()
#20 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  0x00007fa9425c1ab3 in RooAbsCollection::RooAbsCollection(RooAbsCollection const&, char const*) () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#7  0x00007fa942645e2d in RooArgSet::RooArgSet(RooArgSet const&, char const*) () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#8  0x00007fa9411320c4 in RooStats::SPlot::GetSWeight(int, char const*) const () from /opt/root/6.22.02-install/lib/libRooStats.so
#9  0x00007fa9553005e2 in ?? ()
#10 0x00007ffc37042a18 in ?? ()
#11 0x00007fa900000001 in ?? ()
#12 0x00007fa900000000 in ?? ()
#13 0x00007fa955301500 in ?? ()
#14 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#15 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#16 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#17 0x00007fa9429d82c0 in ?? () from /opt/root/6.22.02-install/lib/libRooFitCore.so
#18 0x00007ffc37042620 in ?? ()
#19 0x00007ffc37042620 in ?? ()
#20 0x0000000000000000 in ?? ()
===========================================================

@moneta please have a look when you are back, thanks!