factory.GetROCCurve loader is crashing

When trying to generate the ROC Curves to visualize the performance of the C++ Classification algorithms, the loader crashes with the message Break segmentation violation.

This is the stack trace that was returned:
#0  0x00007f007c208687 in __GI___waitpid (pid=22621, stat_loc=stat_loc
entry=0x7ffdf67b4028, options=options
entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
#1  0x00007f007c173067 in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
#2  0x00007f007ce15e03 in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x55d347ac8b80) at /home/prishita/root/core/unix/src/TUnixSystem.cxx:2106
#3  TUnixSystem::StackTrace (this=0x55d347ac8b80) at /home/prishita/root/core/unix/src/TUnixSystem.cxx:2400
#4  0x00007f007ce187f4 in TUnixSystem::DispatchSignals (this=0x55d347ac8b80, sig=kSigSegmentationViolation) at /home/prishita/root/core/unix/src/TUnixSystem.cxx:3631
#5  <signal handler called>
#6  std::_Bit_reference::operator bool (this=<optimized out>) at /usr/include/c++/7/bits/stl_bvector.h:81
#7  std::_Bit_const_iterator::operator* (this=<optimized out>, this=<optimized out>) at /usr/include/c++/7/bits/stl_bvector.h:321
#8  std::vector<bool, std::allocator<bool> >::operator[] (this=0x55d349a7d4f0, __n=<optimized out>) at /usr/include/c++/7/bits/stl_bvector.h:866
#9  TMVA::ROCCurve::ROCCurve (this=0x55d349f0cf70, mvaValues=std::vector of length 10000, capacity 10000 = {...}, mvaTargets=std::vector<bool> of length 0, capacity 0, mvaWeights=std::vector of length 10000, capacity 10000 = {...}) at /home/prishita/root/tmva/tmva/src/ROCCurve.cxx:64
#10 0x00007f006f4e19f2 in TMVA::Factory::GetROC (this=this
entry=0x7f007d5a4020, datasetname=..., theMethodName=..., iClass=iClass
entry=0, type=type
entry=TMVA::Types::kTesting) at /home/prishita/root/tmva/tmva/src/Factory.cxx:803
#11 0x00007f006f4e4c12 in TMVA::Factory::GetROCCurve (this=this
entry=0x7f007d5a4020, datasetname=..., theMethodName=..., setTitles=setTitles
entry=false, iClass=iClass
entry=0) at /home/prishita/root/tmva/tmva/src/Factory.cxx:940
#12 0x00007f006f4e5160 in TMVA::Factory::GetROCCurveAsMultiGraph (this=this
entry=0x7f007d5a4020, datasetname=..., iClass=iClass
entry=0) at /home/prishita/root/tmva/tmva/src/Factory.cxx:1010
#13 0x00007f006f4e55a7 in TMVA::Factory::GetROCCurve (this=this
entry=0x7f007d5a4020, datasetname=..., iClass=iClass
entry=0) at /home/prishita/root/tmva/tmva/src/Factory.cxx:1067
#14 0x00007f006f4e5837 in TMVA::Factory::GetROCCurve (this=0x7f007d5a4020, loader=<optimized out>, iClass=0) at /home/prishita/root/tmva/tmva/src/Factory.cxx:1042
#15 0x00007f007d4a0026 in ?? ()
#16 0x00007ffdf67b6f40 in ?? ()
#17 0x00007f007d4a0050 in ?? ()
#18 0x000055d349cd5668 in ?? ()
#19 0x00007f0077453734 in cling::IncrementalExecutor::runStaticInitializersOnce(cling::Transaction const&) const () from /home/prishita/build/lib/libCling.so
#20 0x00007f00773ea2db in cling::Interpreter::executeTransaction(cling::Transaction&) () from /home/prishita/build/lib/libCling.so
#21 0x00007f0077465c53 in cling::IncrementalParser::commitTransaction(llvm::PointerIntPair<cling::Transaction*, 2u, cling::IncrementalParser::EParseResult, llvm::PointerLikeTypeTraits<cling::Transaction*>, llvm::PointerIntPairInfo<cling::Transaction*, 2u, llvm::PointerLikeTypeTraits<cling::Transaction*> > >&, bool) () from /home/prishita/build/lib/libCling.so
#22 0x00007f0077465d18 in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /home/prishita/build/lib/libCling.so
#23 0x00007f00773e851e in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /home/prishita/build/lib/libCling.so
#24 0x00007f00773e8917 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /home/prishita/build/lib/libCling.so
#25 0x00007f00774ab8bd in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/prishita/build/lib/libCling.so
#26 0x00007f007736781e in HandleInterpreterException (metaProcessor=0x55d34813c0a0, input_line=<optimized out>, compRes=
0x7ffdf67b746c: cling::Interpreter::kSuccess, result=result
entry=0x7ffdf67b7480) at /home/prishita/root/core/metacling/src/TCling.cxx:2152
#27 0x00007f007737c11d in TCling::ProcessLine (this=0x55d347b2a500, line=<optimized out>, error=0x7ffdf67b796c) at /home/prishita/root/core/metacling/src/TCling.cxx:2310
#28 0x00007f007ccc3282 in TApplication::ProcessLine (this=0x55d347b15740, line=<optimized out>, sync=<optimized out>, err=0x7ffdf67b796c) at /home/prishita/root/core/base/src/TApplication.cxx:1026
#29 0x00007f007d168962 in TRint::ProcessLineNr (this=this
entry=0x55d347b15740, filestem=filestem
entry=0x7f007d17a9c5 "ROOT_prompt_", line=0x55d349b3ac30 "auto c1=factory.GetROCCurve(&loader);", error=0x7ffdf67b796c, error
entry=0x0) at /home/prishita/root/core/rint/src/TRint.cxx:746
#30 0x00007f007d168cd4 in TRint::HandleTermInput (this=0x55d347b15740) at /home/prishita/root/core/rint/src/TRint.cxx:607
#31 0x00007f007ce17be0 in TUnixSystem::CheckDescriptors (this=this
entry=0x55d347ac8b80) at /home/prishita/root/core/unix/src/TUnixSystem.cxx:1309
#32 0x00007f007ce19578 in TUnixSystem::DispatchOneEvent (this=0x55d347ac8b80, pendingOnly=<optimized out>) at /home/prishita/root/core/unix/src/TUnixSystem.cxx:1064
#33 0x00007f007cd2e361 in TSystem::InnerLoop (this=0x55d347ac8b80) at /home/prishita/root/core/base/src/TSystem.cxx:412
#34 TSystem::Run (this=0x55d347ac8b80) at /home/prishita/root/core/base/src/TSystem.cxx:362
#35 0x00007f007ccc125f in TApplication::Run (this=this
entry=0x55d347b15740, retrn=retrn
entry=false) at /home/prishita/root/core/base/src/TApplication.cxx:1178
#36 0x00007f007d16a2d1 in TRint::Run (this=0x55d347b15740, retrn=<optimized out>) at /home/prishita/root/core/rint/src/TRint.cxx:460
#37 0x000055d3461dba0c in main (argc=<optimized out>, argv=0x7ffdf67b9db8) at /home/prishita/root/main/src/rmain.cxx:30

Hi,

Sorry for the late reply. If the error remains, could you post the code that produced this error?

Cheers,
Kim