Hi,
I recently try to switch to CentOS7 and ROOT 6.18.04 from current setup of SL6 with 6.14.04. When I try CentOS7 with 6.14.08 it works as well. But when I tried to run my code (which runs succesfully in old setup) with recommended 6.18.04 setup I am getting a Break Segmentation Violation for the line where I initiate a TMVA::ROCCalc object:
====================================
TH1D* MVA_BDT_odd_Train_S = (TH1D*)outputFile->Get(base_path+"MVA_BDT_odd_Train_S");
TH1D* MVA_BDT_odd_Train_B = (TH1D*)outputFile->Get(base_path+"MVA_BDT_odd_Train_B");
cout << "TEST A" << endl;
TMVA::ROCCalc *roc_odd_train = new TMVA::ROCCalc(MVA_BDT_odd_Train_S,MVA_BDT_odd_Train_B);
cout << "TEST b" << endl;
====================================
The error stack is as follows:
TEST A
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00002b61aabbf41c in waitpid () from /lib64/libc.so.6
#1 0x00002b61aab3cf12 in do_system () from /lib64/libc.so.6
#2 0x00002b61a5a11533 in TUnixSystem::StackTrace() () from /cvmfs/sft.cern.ch/lcg/releases/LCG_96b/ROOT/6.18.04/x86_64-centos7-gcc8-opt/lib/libCore.so
#3 0x00002b61a5a13d84 in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/sft.cern.ch/lcg/releases/LCG_96b/ROOT/6.18.04/x86_64-centos7-gcc8-opt/lib/libCore.so
#4 <signal handler called>
#5 0x00002b61a9c560c8 in TMVA::ROCCalc::ROCCalc(TH1*, TH1*) () from /cvmfs/sft.cern.ch/lcg/releases/LCG_96b/ROOT/6.18.04/x86_64-centos7-gcc8-opt/lib/libTMVA.so
#6 0x000000000040f4f9 in BDT::training(int, int, int, int, int, int, int) ()
#7 0x000000000040a57a in BDTTraining(int&, int&, int&, int&, int&, int&, int&) ()
#8 0x000000000040a296 in main ()
===========================================================
===========================================================
#5 0x00002b61a9c560c8 in TMVA::ROCCalc::ROCCalc(TH1*, TH1*) () from /cvmfs/sft.cern.ch/lcg/releases/LCG_96b/ROOT/6.18.04/x86_64-centos7-gcc8-opt/lib/libTMVA.so
#6 0x000000000040f4f9 in BDT::training(int, int, int, int, int, int, int) ()
#7 0x000000000040a57a in BDTTraining(int&, int&, int&, int&, int&, int&, int&) ()
#8 0x000000000040a296 in main ()
===========================================================
When switching between setups I do make clean and make sure I am using the correct lsetup commands. I am running on the local cluster with interactive condor jobs. Does anyone have any idea what the problem might be?
Thanks in advance!
Ogul