root [7] root [7] for (int i = 1; i <= globalPos_ZX->GetNbinsX(); i++) { root (cont'ed, cancel with .@) [8] for (int j = 1; j <= globalPos_ZX->GetNbinsY(); j++) { root (cont'ed, cancel with .@) [9] std::cout << "x = " << globalPos_ZX->GetXaxis()->GetBinCenter(i) << " , " root (cont'ed, cancel with .@) [10] << "y = " << globalPos_ZX->GetYaxis()->GetBinCenter(j) << " , " root (cont'ed, cancel with .@) [11] << "content = " << globalPos_ZX->GetBinContent(i, j) root (cont'ed, cancel with .@) [12] << " +- " << globalPos_ZX->GetBinError(i, j) << "\n"; root (cont'ed, cancel with .@) [13] } root (cont'ed, cancel with .@) [14]} *** Break *** segmentation violation =========================================================== There was a crash. This is the entire stack trace of all threads: =========================================================== #0 0x00007fd7307cc337 in __GI___waitpid (pid=2616, stat_loc=stat_loc entry=0x7ffe824b9be8, options=options entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30 #1 0x00007fd730737047 in do_system (line=) at ../sysdeps/posix/system.c:149 #2 0x00007fd7313c5a8b in TUnixSystem::StackTrace() () from /usr/share/cern/root-install/lib/libCore.so #3 0x00007fd7313c8474 in TUnixSystem::DispatchSignals(ESignals) () from /usr/share/cern/root-install/lib/libCore.so #4 #5 0x00007fd72c18f0f3 in (anonymous namespace)::ScalarExprEmitter::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation, bool) () from /usr/share/cern/root-install/lib/libCling.so #6 0x00007fd72c190be4 in clang::CodeGen::CodeGenFunction::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation) () from /usr/share/cern/root-install/lib/libCling.so #7 0x00007fd72c158442 in clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*) () from /usr/share/cern/root-install/lib/libCling.so #8 0x00007fd72bfdade3 in clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&, llvm::ArrayRef) () from /usr/share/cern/root-install/lib/libCling.so #9 0x00007fd72bfd9325 in clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) () from /usr/share/cern/root-install/lib/libCling.so #10 0x00007fd72bfd944f in clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) () from /usr/share/cern/root-install/lib/libCling.so #11 0x00007fd72c014d22 in clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) () from /usr/share/cern/root-install/lib/libCling.so #12 0x00007fd72c032388 in clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/share/cern/root-install/lib/libCling.so #13 0x00007fd72c054ce8 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/share/cern/root-install/lib/libCling.so #14 0x00007fd72c055fc5 in clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) () from /usr/share/cern/root-install/lib/libCling.so #15 0x00007fd72c05692f in clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) () from /usr/share/cern/root-install/lib/libCling.so #16 0x00007fd72bf98e6d in clang::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) () from /usr/share/cern/root-install/lib/libCling.so #17 0x00007fd72bf6586f in cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) () from /usr/share/cern/root-install/lib/libCling.so #18 0x00007fd72bf33b2c in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /usr/share/cern/root-install/lib/libCling.so #19 0x00007fd72bf3525c in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/share/cern/root-install/lib/libCling.so #20 0x00007fd72bec098e in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/share/cern/root-install/lib/libCling.so #21 0x00007fd72bec12c7 in cling::Interpreter::process(std::__cxx11::basic_string, std::allocator > const&, cling::Value*, cling::Transaction**, bool) () from /usr/share/cern/root-install/lib/libCling.so #22 0x00007fd72bf7199d in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /usr/share/cern/root-install/lib/libCling.so #23 0x00007fd72be15b1e in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/share/cern/root-install/lib/libCling.so #24 0x00007fd72be2b4cd in TCling::ProcessLine(char const*, TInterpreter::EErrorCode*) () from /usr/share/cern/root-install/lib/libCling.so #25 0x00007fd731273959 in TApplication::ProcessLine(char const*, bool, int*) () from /usr/share/cern/root-install/lib/libCore.so #26 0x00007fd7317547a2 in TRint::ProcessLineNr(char const*, char const*, int*) () from /usr/share/cern/root-install/lib/libRint.so #27 0x00007fd731754b14 in TRint::HandleTermInput() () from /usr/share/cern/root-install/lib/libRint.so #28 0x00007fd7313c7860 in TUnixSystem::CheckDescriptors() () from /usr/share/cern/root-install/lib/libCore.so #29 0x00007fd7313c91f8 in TUnixSystem::DispatchOneEvent(bool) () from /usr/share/cern/root-install/lib/libCore.so #30 0x00007fd7312decc1 in TSystem::Run() () from /usr/share/cern/root-install/lib/libCore.so #31 0x00007fd73127198f in TApplication::Run(bool) () from /usr/share/cern/root-install/lib/libCore.so #32 0x00007fd7317561f3 in TRint::Run(bool) () from /usr/share/cern/root-install/lib/libRint.so #33 0x000055c49e523a6c in main () =========================================================== 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. =========================================================== #5 0x00007fd72c18f0f3 in (anonymous namespace)::ScalarExprEmitter::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation, bool) () from /usr/share/cern/root-install/lib/libCling.so #6 0x00007fd72c190be4 in clang::CodeGen::CodeGenFunction::EmitScalarConversion(llvm::Value*, clang::QualType, clang::QualType, clang::SourceLocation) () from /usr/share/cern/root-install/lib/libCling.so #7 0x00007fd72c158442 in clang::CodeGen::CodeGenFunction::EvaluateExprAsBool(clang::Expr const*) () from /usr/share/cern/root-install/lib/libCling.so #8 0x00007fd72bfdade3 in clang::CodeGen::CodeGenFunction::EmitForStmt(clang::ForStmt const&, llvm::ArrayRef) () from /usr/share/cern/root-install/lib/libCling.so #9 0x00007fd72bfd9325 in clang::CodeGen::CodeGenFunction::EmitStmt(clang::Stmt const*) () from /usr/share/cern/root-install/lib/libCling.so #10 0x00007fd72bfd944f in clang::CodeGen::CodeGenFunction::EmitCompoundStmtWithoutScope(clang::CompoundStmt const&, bool, clang::CodeGen::AggValueSlot) () from /usr/share/cern/root-install/lib/libCling.so #11 0x00007fd72c014d22 in clang::CodeGen::CodeGenFunction::GenerateCode(clang::GlobalDecl, llvm::Function*, clang::CodeGen::CGFunctionInfo const&) () from /usr/share/cern/root-install/lib/libCling.so #12 0x00007fd72c032388 in clang::CodeGen::CodeGenModule::EmitGlobalFunctionDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/share/cern/root-install/lib/libCling.so #13 0x00007fd72c054ce8 in clang::CodeGen::CodeGenModule::EmitGlobalDefinition(clang::GlobalDecl, llvm::GlobalValue*) () from /usr/share/cern/root-install/lib/libCling.so #14 0x00007fd72c055fc5 in clang::CodeGen::CodeGenModule::EmitGlobal(clang::GlobalDecl) () from /usr/share/cern/root-install/lib/libCling.so #15 0x00007fd72c05692f in clang::CodeGen::CodeGenModule::EmitTopLevelDecl(clang::Decl*) () from /usr/share/cern/root-install/lib/libCling.so #16 0x00007fd72bf98e6d in clang::CodeGeneratorImpl::HandleTopLevelDecl(clang::DeclGroupRef) () from /usr/share/cern/root-install/lib/libCling.so #17 0x00007fd72bf6586f in cling::DeclCollector::HandleTopLevelDecl(clang::DeclGroupRef) () from /usr/share/cern/root-install/lib/libCling.so #18 0x00007fd72bf33b2c in cling::IncrementalParser::ParseInternal(llvm::StringRef) () from /usr/share/cern/root-install/lib/libCling.so #19 0x00007fd72bf3525c in cling::IncrementalParser::Compile(llvm::StringRef, cling::CompilationOptions const&) () from /usr/share/cern/root-install/lib/libCling.so #20 0x00007fd72bec098e in cling::Interpreter::EvaluateInternal(std::__cxx11::basic_string, std::allocator > const&, cling::CompilationOptions, cling::Value*, cling::Transaction**, unsigned long) () from /usr/share/cern/root-install/lib/libCling.so #21 0x00007fd72bec12c7 in cling::Interpreter::process(std::__cxx11::basic_string, std::allocator > const&, cling::Value*, cling::Transaction**, bool) () from /usr/share/cern/root-install/lib/libCling.so #22 0x00007fd72bf7199d in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /usr/share/cern/root-install/lib/libCling.so #23 0x00007fd72be15b1e in HandleInterpreterException(cling::MetaProcessor*, char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /usr/share/cern/root-install/lib/libCling.so