In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:255:4: error: static_assert failed "filter functions must return a bool" static_assert(std::is_same::value, "filter functions must return a bool"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:354:17: note: in instantiation of function template specialization 'ROOT::Internal::RDF::CheckFilter<(lambda at input_line_76:2:39)>' requested here RDFInternal::CheckFilter(f); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt>10 ^ In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:96:14: error: no viable conversion from returned value of type 'RVec' to function return type 'bool' return fFilter(std::get(fValues[slot]).Get(entry)...); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:81:27: note: in instantiation of function template specialization 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilterHelper<0>' requested here auto passed = CheckFilterHelper(slot, entry, TypeInd_t()); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:64:4: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilters' requested here RFilter(FilterF &&f, const ColumnNames_t &bl, std::shared_ptr pd, ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RMakeUnique.hxx:28:34: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::RFilter' requested here return std::unique_ptr(new T(std::forward(args)...)); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:367:33: note: in instantiation of function template specialization 'std::make_unique, (lambda at input_line_76:2:39), const std::__1::vector, std::__1::allocator > > &, std::__1::shared_ptr &, ROOT::Internal::RDF::RBookedCustomColumns &, std::__1::basic_string_view > &>' requested here jittedFilter->SetFilter(std::make_unique(std::move(f), cols, *prevNodeOnHeap, newColumns, name)); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt>10 ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RVec.hxx:290:4: note: candidate template ignored: could not match 'RVec' against 'bool' operator RVec() const ^ *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::DeclUnloader::VisitFunctionDecl(clang::FunctionDecl*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::unloadDeclarations(cling::Transaction*, cling::DeclUnloader&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::RevertTransaction(cling::Transaction*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::unload(cling::Transaction&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair, llvm::PointerIntPairInfo > >&, bool) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string, std::__1::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] TCling::Calc(char const*, TInterpreter::EErrorCode*) /opt/cern_soft/ROOT/root/core/metacling/src/TCling.cxx:3194 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::BuildJittedNodes() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:423 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::Run() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:459 [] (no debug info) [] (no debug info) [] (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] FastCall(long, void*, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:407 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] Cppyy::CallR(long, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TCppObjectRefExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:73 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallMethod (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] (anonymous namespace)::DeRefGetAttr(_object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Pythonize.cxx:116 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::im_call(_object*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TCustomPyTypes.cxx:244 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallFunctionObjArgs (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_FileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_SimpleFileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Traceback (most recent call last): File "SplitNTuples.py", line 125, in main() File "SplitNTuples.py", line 41, in main test(output, result.lepton, result.treeName) File "SplitNTuples.py", line 113, in test myHisto = myHisto.Clone("unicName") SystemError: TH1D& ROOT::RDF::RResultPtr::operator*() => problem in C++; program state has been reset Error in : Failed to compile ==== SOURCE BEGIN ==== #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-security" __attribute__((used)) extern "C" void __cf_27(void* obj, int nargs, void** args, void* ret) { ((TROOT*)obj)->EndOfProcessCleanups(); return; } #pragma clang diagnostic pop ==== SOURCE END ==== *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TVoidExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:46 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Finalize (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset Error in sys.exitfunc: Error in : Failed to compile ==== SOURCE BEGIN ==== __attribute__((used)) extern "C" void __dtor_28(void* obj, unsigned long nary, int withFree) { if (withFree) { if (!nary) { delete (ROOT::RDF::RResultPtr*) obj; } else { delete[] (ROOT::RDF::RResultPtr*) obj; } } else { typedef ROOT::RDF::RResultPtr Nm; if (!nary) { ((Nm*)obj)->~Nm(); } else { do { (((Nm*)obj)+(--nary))->~Nm(); } while (nary); } } } ==== SOURCE END ==== Error in : Called with no wrapper, not implemented! Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset macbookprodaniil:NTupleManipulation dponomar$ macbookprodaniil:NTupleManipulation dponomar$ macbookprodaniil:NTupleManipulation dponomar$ macbookprodaniil:NTupleManipulation dponomar$ macbookprodaniil:NTupleManipulation dponomar$ macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:255:4: error: static_assert failed "filter functions must return a bool" static_assert(std::is_same::value, "filter functions must return a bool"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:354:17: note: in instantiation of function template specialization 'ROOT::Internal::RDF::CheckFilter<(lambda at input_line_76:2:39)>' requested here RDFInternal::CheckFilter(f); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt[el_pt>10] ^ In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:96:14: error: no viable conversion from returned value of type 'ROOT::VecOps::RVec' to function return type 'bool' return fFilter(std::get(fValues[slot]).Get(entry)...); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:81:27: note: in instantiation of function template specialization 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilterHelper<0>' requested here auto passed = CheckFilterHelper(slot, entry, TypeInd_t()); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:64:4: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilters' requested here RFilter(FilterF &&f, const ColumnNames_t &bl, std::shared_ptr pd, ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RMakeUnique.hxx:28:34: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::RFilter' requested here return std::unique_ptr(new T(std::forward(args)...)); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:367:33: note: in instantiation of function template specialization 'std::make_unique, (lambda at input_line_76:2:39), const std::__1::vector, std::__1::allocator > > &, std::__1::shared_ptr &, ROOT::Internal::RDF::RBookedCustomColumns &, std::__1::basic_string_view > &>' requested here jittedFilter->SetFilter(std::make_unique(std::move(f), cols, *prevNodeOnHeap, newColumns, name)); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt[el_pt>10] ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RVec.hxx:290:4: note: candidate template ignored: could not match 'RVec' against 'bool' operator RVec() const ^ *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::DeclUnloader::VisitFunctionDecl(clang::FunctionDecl*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::unloadDeclarations(cling::Transaction*, cling::DeclUnloader&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::RevertTransaction(cling::Transaction*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::unload(cling::Transaction&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair, llvm::PointerIntPairInfo > >&, bool) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string, std::__1::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] TCling::Calc(char const*, TInterpreter::EErrorCode*) /opt/cern_soft/ROOT/root/core/metacling/src/TCling.cxx:3194 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::BuildJittedNodes() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:423 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::Run() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:459 [] (no debug info) [] (no debug info) [] (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] FastCall(long, void*, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:407 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] Cppyy::CallR(long, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TCppObjectRefExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:73 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallMethod (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] (anonymous namespace)::DeRefGetAttr(_object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Pythonize.cxx:116 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::im_call(_object*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TCustomPyTypes.cxx:244 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallFunctionObjArgs (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_FileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_SimpleFileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Traceback (most recent call last): File "SplitNTuples.py", line 126, in main() File "SplitNTuples.py", line 41, in main test(output, result.lepton, result.treeName) File "SplitNTuples.py", line 114, in test myHisto = myHisto.Clone("unicName") SystemError: TH1D& ROOT::RDF::RResultPtr::operator*() => problem in C++; program state has been reset Error in : Failed to compile ==== SOURCE BEGIN ==== #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-security" __attribute__((used)) extern "C" void __cf_27(void* obj, int nargs, void** args, void* ret) { ((TROOT*)obj)->EndOfProcessCleanups(); return; } #pragma clang diagnostic pop ==== SOURCE END ==== *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TVoidExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:46 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Finalize (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset Error in sys.exitfunc: Error in : Failed to compile ==== SOURCE BEGIN ==== __attribute__((used)) extern "C" void __dtor_28(void* obj, unsigned long nary, int withFree) { if (withFree) { if (!nary) { delete (ROOT::RDF::RResultPtr*) obj; } else { delete[] (ROOT::RDF::RResultPtr*) obj; } } else { typedef ROOT::RDF::RResultPtr Nm; if (!nary) { ((Nm*)obj)->~Nm(); } else { do { (((Nm*)obj)+(--nary))->~Nm(); } while (nary); } } } ==== SOURCE END ==== Error in : Called with no wrapper, not implemented! Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests input_line_68:2:28: error: no viable conversion from 'RVec' to 'bool' for (auto x : el_pt) { if (el_pt>10) return true; } return false; ^~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RVec.hxx:290:4: note: candidate template ignored: could not match 'RVec' against 'bool' operator RVec() const ^ *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseDecl(clang::Decl*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::DeclUnloader::VisitFunctionDecl(clang::FunctionDecl*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::unloadDeclarations(cling::Transaction*, cling::DeclUnloader&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::RevertTransaction(cling::Transaction*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::unload(cling::Transaction&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair, llvm::PointerIntPairInfo > >&, bool) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::declare(std::__1::basic_string, std::__1::allocator > const&, cling::Transaction**) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] TCling::LoadText(char const*) const /opt/cern_soft/ROOT/root/core/metacling/src/TCling.cxx:6865 [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] TCling::Declare(char const*) /opt/cern_soft/ROOT/root/core/metacling/src/TCling.cxx:2791 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Internal::RDF::TryToJitExpression(std::__1::basic_string, std::__1::allocator > const&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, bool) /opt/cern_soft/ROOT/root/tree/dataframe/src/RDFInterfaceUtils.cxx:483 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Internal::RDF::BookFilterJit(ROOT::Detail::RDF::RJittedFilter*, void*, std::__1::basic_string_view >, std::__1::basic_string_view >, std::__1::map, std::__1::allocator >, std::__1::basic_string, std::__1::allocator >, std::__1::less, std::__1::allocator > >, std::__1::allocator, std::__1::allocator > const, std::__1::basic_string, std::__1::allocator > > > > const&, std::__1::vector, std::__1::allocator >, std::__1::allocator, std::__1::allocator > > > const&, ROOT::Internal::RDF::RBookedCustomColumns const&, TTree*, ROOT::RDF::RDataSource*, unsigned int) /opt/cern_soft/ROOT/root/tree/dataframe/src/RDFInterfaceUtils.cxx:540 [] (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] FastCall(long, void*, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:407 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] Cppyy::CallO(long, void*, void*, long) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:504 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TCppObjectByValueExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:79 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_FileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_SimpleFileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Traceback (most recent call last): File "SplitNTuples.py", line 128, in main() File "SplitNTuples.py", line 41, in main test(output, result.lepton, result.treeName) File "SplitNTuples.py", line 108, in test filterCut = df.Filter('for (auto x : el_pt) { if (el_pt>10) return true; } return false;') SystemError: ROOT::RDF::RInterface ROOT::RDF::RInterface::Filter(basic_string_view > expression, basic_string_view > name = "") => problem in C++; program state has been reset Error in : Failed to compile ==== SOURCE BEGIN ==== #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-security" __attribute__((used)) extern "C" void __cf_22(void* obj, int nargs, void** args, void* ret) { ((TROOT*)obj)->EndOfProcessCleanups(); return; } #pragma clang diagnostic pop ==== SOURCE END ==== *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TVoidExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:46 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Finalize (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset Error in sys.exitfunc: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: 100>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests Press Enter to continue... macbookprodaniil:NTupleManipulation dponomar$ python SplitNTuples.py -d -in /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root INFO:root:Input files: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294.root Processing treeAnaWZ Output file: /Users/dponomar/SendBox/WBR/ntuples/LM_Nov18/data/13TeV/data17_13TeV.00341294_el.root Selection: el_pt>10 Running tests In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:255:4: error: static_assert failed "filter functions must return a bool" static_assert(std::is_same::value, "filter functions must return a bool"); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:354:17: note: in instantiation of function template specialization 'ROOT::Internal::RDF::CheckFilter<(lambda at input_line_76:2:39)>' requested here RDFInternal::CheckFilter(f); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt>0 ^ In file included from /opt/cern_soft/ROOT/ROOT6/input_line_12:24: In file included from /opt/cern_soft/ROOT/ROOT6/etc/dictpch/allHeaders.h:301: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RCsvDS.hxx:14: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDataFrame.hxx:19: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RInterface.hxx:18: In file included from /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:18: /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:96:14: error: no viable conversion from returned value of type 'RVec' to function return type 'bool' return fFilter(std::get(fValues[slot]).Get(entry)...); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:81:27: note: in instantiation of function template specialization 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilterHelper<0>' requested here auto passed = CheckFilterHelper(slot, entry, TypeInd_t()); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/RFilter.hxx:64:4: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::CheckFilters' requested here RFilter(FilterF &&f, const ColumnNames_t &bl, std::shared_ptr pd, ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RMakeUnique.hxx:28:34: note: in instantiation of member function 'ROOT::Detail::RDF::RFilter<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>::RFilter' requested here return std::unique_ptr(new T(std::forward(args)...)); ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RDF/InterfaceUtils.hxx:367:33: note: in instantiation of function template specialization 'std::make_unique, (lambda at input_line_76:2:39), const std::__1::vector, std::__1::allocator > > &, std::__1::shared_ptr &, ROOT::Internal::RDF::RBookedCustomColumns &, std::__1::basic_string_view > &>' requested here jittedFilter->SetFilter(std::make_unique(std::move(f), cols, *prevNodeOnHeap, newColumns, name)); ^ input_line_76:2:23: note: in instantiation of function template specialization 'ROOT::Internal::RDF::JitFilterHelper<(lambda at input_line_76:2:39), ROOT::Detail::RDF::RNodeBase>' requested here ROOT::Internal::RDF::JitFilterHelper([](ROOT::VecOps::RVec& el_pt){return el_pt>0 ^ /opt/cern_soft/ROOT/ROOT6/include/ROOT/RVec.hxx:290:4: note: candidate template ignored: could not match 'RVec' against 'bool' operator RVec() const ^ *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::dataTraverseNode(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] clang::RecursiveASTVisitor::TraverseStmt(clang::Stmt*, llvm::SmallVectorImpl, llvm::PointerIntPairInfo > > >*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::DeclUnloader::VisitFunctionDecl(clang::FunctionDecl*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::unloadDeclarations(cling::Transaction*, cling::DeclUnloader&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::TransactionUnloader::RevertTransaction(cling::Transaction*) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::unload(cling::Transaction&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::commitTransaction(llvm::PointerIntPair, llvm::PointerIntPairInfo > >&, bool) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] cling::Interpreter::EvaluateInternal(std::__1::basic_string, std::__1::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libCling.so] TCling::Calc(char const*, TInterpreter::EErrorCode*) /opt/cern_soft/ROOT/root/core/metacling/src/TCling.cxx:3194 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::BuildJittedNodes() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:423 [/opt/cern_soft/ROOT/ROOT6/lib/libROOTDataFrame.so] ROOT::Detail::RDF::RLoopManager::Run() /opt/cern_soft/ROOT/root/tree/dataframe/src/RLoopManager.cxx:459 [] (no debug info) [] (no debug info) [] (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] FastCall(long, void*, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:407 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] Cppyy::CallR(long, void*, void*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Cppyy.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TCppObjectRefExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:73 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallMethod (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] (anonymous namespace)::DeRefGetAttr(_object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Pythonize.cxx:116 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::im_call(_object*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TCustomPyTypes.cxx:244 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_CallFunctionObjArgs (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCode (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_FileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyRun_SimpleFileExFlags (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Traceback (most recent call last): File "SplitNTuples.py", line 124, in main() File "SplitNTuples.py", line 41, in main test(output, result.lepton, result.treeName) File "SplitNTuples.py", line 112, in test myHisto = myHisto.Clone("unicName") SystemError: TH1D& ROOT::RDF::RResultPtr::operator*() => problem in C++; program state has been reset Error in : Failed to compile ==== SOURCE BEGIN ==== #pragma clang diagnostic push #pragma clang diagnostic ignored "-Wformat-security" __attribute__((used)) extern "C" void __cf_27(void* obj, int nargs, void** args, void* ret) { ((TROOT*)obj)->EndOfProcessCleanups(); return; } #pragma clang diagnostic pop ==== SOURCE END ==== *** Break *** segmentation violation [/usr/lib/system/libsystem_platform.dylib] _sigtramp (no debug info) [] (no debug info) [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TVoidExecutor::Execute(long, void*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/Executors.cxx:46 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallFast(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:110 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::CallSafe(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:122 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Execute(void*, long, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:0 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::TMethodHolder::Call(PyROOT::ObjectProxy*&, _object*, _object*, PyROOT::TCallContext*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/TMethodHolder.cxx:585 [/opt/cern_soft/ROOT/ROOT6/lib/libPyROOT.so] PyROOT::(anonymous namespace)::mp_call(PyROOT::MethodProxy*, _object*, _object*) /opt/cern_soft/ROOT/root/bindings/pyroot/src/MethodProxy.cxx:598 [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalFrameEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_EvalCodeEx (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyObject_Call (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] PyEval_CallObjectWithKeywords (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Finalize (no debug info) [/System/Library/Frameworks/Python.framework/Versions/2.7/Python] Py_Main (no debug info) [/usr/lib/system/libdyld.dylib] start (no debug info) [] (no debug info) Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset Error in sys.exitfunc: Error in : Failed to compile ==== SOURCE BEGIN ==== __attribute__((used)) extern "C" void __dtor_28(void* obj, unsigned long nary, int withFree) { if (withFree) { if (!nary) { delete (ROOT::RDF::RResultPtr*) obj; } else { delete[] (ROOT::RDF::RResultPtr*) obj; } } else { typedef ROOT::RDF::RResultPtr Nm; if (!nary) { ((Nm*)obj)->~Nm(); } else { do { (((Nm*)obj)+(--nary))->~Nm(); } while (nary); } } } ==== SOURCE END ==== Error in : Called with no wrapper, not implemented! Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, **kargs) File "/opt/cern_soft/ROOT/ROOT6/lib/ROOT.py", line 816, in cleanup gROOT.EndOfProcessCleanups() SystemError: void TROOT::EndOfProcessCleanups() => problem in C++; program state has been reset