I get the crash below when I try to generate 579000 RooDataSets in a loop, even though I am deleting them properly I think. Here is the macro I am using
[code]#include
#include “RooRealVar.h”
#include “RooDataSet.h”
#include “RooExponential.h”
void cpp_version(){
RooRealVar x1(“x1”,“x1”,1,0,10);
RooRealVar c1(“c1”,“c1”,-1,-1,-1);
RooExponential rooexp1(“rooexp1”,“rooexp1”,x1,c1);
for (int i = 0; i < 1000000; i++){
if (i % 1000 == 0)
std::cout << "i = " << i << std::endl;
RooDataSet * data1=rooexp1.generate(RooArgSet(x1),1);
delete data1;
}
}[/code]
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHcub >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Error in <TFoamCell::GetHSize >: Something wrong with linked tree
Info in <TFoam::CheckAll>: Check - found total 15 errors
Error in <TRefArray::AddAtAndExpand>: The object at 0x12ed0840 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
Error in <TRefArray::AddAtAndExpand>: The object at 0x12ed08e0 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
Error in <TRefArray::AddAtAndExpand>: The object at 0x12ef7970 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
Error in <TRefArray::AddAtAndExpand>: The object at 0x12ef4db0 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
Error in <TRefArray::AddAtAndExpand>: The object at 0x12efdab0 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
Error in <TRefArray::AddAtAndExpand>: The object at 0x12efdb50 is not registered in the process the TRefArray points to (pid = ProcessID0/824ed4f6-7cce-11e4-9717-cf658a89beef)
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x0000003938099dd5 in waitpid () from /lib64/libc.so.6
#1 0x000000393803c4a1 in do_system () from /lib64/libc.so.6
#2 0x000000393ae79247 in TUnixSystem::StackTrace() ()
from /usr/lib64/root/libCore.so.5.34
#3 0x000000393ae7608a in TUnixSystem::DispatchSignals(ESignals) ()
from /usr/lib64/root/libCore.so.5.34
#4 <signal handler called>
#5 0x00002b7a292cef62 in TFoam::MakeActiveList() ()
from /usr/lib64/root/libFoam.so
#6 0x00002b7a292ce22e in TFoam::Initialize() ()
from /usr/lib64/root/libFoam.so
#7 0x00002b7a2ada59af in RooFoamGenerator::RooFoamGenerator(RooAbsReal const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal const*) ()
from /usr/lib64/root/libRooFitCore.so
#8 0x00002b7a2ada5c10 in RooFoamGenerator::clone(RooAbsReal const&, RooArgSet const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal const*) const
() from /usr/lib64/root/libRooFitCore.so
#9 0x00002b7a2ae0f7d1 in RooNumGenFactory::createSampler(RooAbsReal&, RooArgSet const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal*) ()
from /usr/lib64/root/libRooFitCore.so
#10 0x00002b7a2adafa5d in RooGenContext::RooGenContext(RooAbsPdf const&, RooArgSet const&, RooDataSet const*, RooArgSet const*, bool, RooArgSet const*) ()
from /usr/lib64/root/libRooFitCore.so
#11 0x00002b7a2ace2c2e in RooAbsPdf::genContext(RooArgSet const&, RooDataSet const*, RooArgSet const*, bool) const () from /usr/lib64/root/libRooFitCore.so
#12 0x00002b7a2ace7d30 in RooAbsPdf::autoGenContext(RooArgSet const&, RooDataSet const*, RooArgSet const*, bool, bool, char const*) const ()
from /usr/lib64/root/libRooFitCore.so
#13 0x00002b7a2ace296f in RooAbsPdf::generate(RooArgSet const&, double, bool, bool, char const*, bool, bool) const () from /usr/lib64/root/libRooFitCore.so
#14 0x00002b7a2c5e7a5b in cpp_version ()
at /home/anlevin/anlevin-8p591/pset10/./cpp_version.C:17
#15 0x00002b7a2c5e7b89 in G__cpp_version_C_ACLiC_dict__0_3850 (
result7=0x12f041a0, funcname=0x0, libp=0x0, hash=10)
at /home/anlevin/anlevin-8p591/pset10/cpp_version_C_ACLiC_dict.cxx:82
#16 0x000000393985682d in Cint::G__ExceptionWrapper(int (*)(G__value*, char const*, G__param*, int), G__value*, char*, G__param*, int) ()
from /usr/lib64/root/libCint.so.5.34
#17 0x000000393990dc60 in G__execute_call ()
from /usr/lib64/root/libCint.so.5.34
#18 0x000000393990f73b in G__call_cppfunc ()
from /usr/lib64/root/libCint.so.5.34
#19 0x00000039398eab0a in G__interpret_func ()
from /usr/lib64/root/libCint.so.5.34
#20 0x00000039398da108 in G__getfunction ()
from /usr/lib64/root/libCint.so.5.34
#21 0x00000039398ae13d in G__getitem () from /usr/lib64/root/libCint.so.5.34
#22 0x00000039398b8761 in G__getexpr () from /usr/lib64/root/libCint.so.5.34
#23 0x00000039398bfb9d in G__calc_internal ()
from /usr/lib64/root/libCint.so.5.34
#24 0x000000393994be71 in G__process_cmd ()
from /usr/lib64/root/libCint.so.5.34
#25 0x000000393ae2f7dd in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/lib64/root/libCore.so.5.34
#26 0x000000393ae2f2b3 in TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) () from /usr/lib64/root/libCore.so.5.34
#27 0x000000393ad8434e in TApplication::ExecuteFile(char const*, int*, bool) ()
from /usr/lib64/root/libCore.so.5.34
#28 0x000000393ad837c8 in TApplication::ProcessLine(char const*, bool, int*) ()
from /usr/lib64/root/libCore.so.5.34
#29 0x000000393a212811 in TRint::Run(bool) ()
from /usr/lib64/root/libRint.so.5.34
#30 0x0000000000400fdd 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.
===========================================================
#5 0x00002b7a292cef62 in TFoam::MakeActiveList() ()
from /usr/lib64/root/libFoam.so
#6 0x00002b7a292ce22e in TFoam::Initialize() ()
from /usr/lib64/root/libFoam.so
#7 0x00002b7a2ada59af in RooFoamGenerator::RooFoamGenerator(RooAbsReal const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal const*) ()
from /usr/lib64/root/libRooFitCore.so
#8 0x00002b7a2ada5c10 in RooFoamGenerator::clone(RooAbsReal const&, RooArgSet const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal const*) const
() from /usr/lib64/root/libRooFitCore.so
#9 0x00002b7a2ae0f7d1 in RooNumGenFactory::createSampler(RooAbsReal&, RooArgSet const&, RooArgSet const&, RooNumGenConfig const&, bool, RooAbsReal*) ()
from /usr/lib64/root/libRooFitCore.so
#10 0x00002b7a2adafa5d in RooGenContext::RooGenContext(RooAbsPdf const&, RooArgSet const&, RooDataSet const*, RooArgSet const*, bool, RooArgSet const*) ()
from /usr/lib64/root/libRooFitCore.so
#11 0x00002b7a2ace2c2e in RooAbsPdf::genContext(RooArgSet const&, RooDataSet const*, RooArgSet const*, bool) const () from /usr/lib64/root/libRooFitCore.so
#12 0x00002b7a2ace7d30 in RooAbsPdf::autoGenContext(RooArgSet const&, RooDataSet const*, RooArgSet const*, bool, bool, char const*) const ()
from /usr/lib64/root/libRooFitCore.so
#13 0x00002b7a2ace296f in RooAbsPdf::generate(RooArgSet const&, double, bool, bool, char const*, bool, bool) const () from /usr/lib64/root/libRooFitCore.so
#14 0x00002b7a2c5e7a5b in cpp_version ()
at /home/anlevin/anlevin-8p591/pset10/./cpp_version.C:17
===========================================================