root [0] TFile file("image_4232_ext_1.root")
(TFile &) Name: image_4232_ext_1.root Title:
root [1] TTreeReader reader("file_info" , &file)
(TTreeReader &) Name: TTreeReader Title: A simple interface to read trees
root [2] TTreeReaderValue<double> my_branch_value(reader ,"RUNID");
root [3] reader.SetEntry(42);
root [4] std::cout << *my_branch_value << std::endl;
Error in <TTreeReaderValue::Get()>: Value reader not properly initialized, did you remember to call TTreeReader.Set(Next)Entry()?
*** Break *** segmentation violation
===========================================================
There was a crash.
This is the entire stack trace of all threads:
===========================================================
#0 0x00007fe8a2398d9a in waitpid () from /lib64/libc.so.6
#1 0x00007fe8a231646f in do_system () from /lib64/libc.so.6
#2 0x00007fe8a34e219d in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x17a07c0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/unix/src/TUnixSystem.cxx:2119
#3 TUnixSystem::StackTrace (this=0x17a07c0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/unix/src/TUnixSystem.cxx:2413
#4 0x00007fe8a34e49b4 in TUnixSystem::DispatchSignals (this=0x17a07c0, sig=kSigSegmentationViolation) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/unix/src/TUnixSystem.cxx:3644
#5 <signal handler called>
#6 0x00007fe8a3b4203e in ?? ()
#7 0x0000000001df8960 in ?? ()
#8 0x00007fe89e208978 in cling::MultiplexInterpreterCallbacks::EnteringUserCode() () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#9 0x00007ffde8479550 in ?? ()
#10 0x00007fe8a3b42000 in ?? ()
#11 0x00007fe89e20d0df in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.310] () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#12 0x00007fe89e20d4ff 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/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#13 0x00007fe89e20dc47 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#14 0x00007fe89e2c59dd in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#15 0x00007fe89e16486e in HandleInterpreterException (metaProcessor=0x1df79c0, input_line=<optimized out>, compRes=
0x7ffde8479424: cling::Interpreter::kSuccess, result=result
entry=0x7ffde8479550) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/metacling/src/TCling.cxx:2163
#16 0x00007fe89e1775ed in TCling::ProcessLine (this=0x1812cd0, line=<optimized out>, error=0x7ffde847991c) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/metacling/src/TCling.cxx:2321
#17 0x00007fe8a33964ad in TApplication::ProcessLine (this=0x17fdb20, line=<optimized out>, sync=<optimized out>, err=0x7ffde847991c) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/base/src/TApplication.cxx:1031
#18 0x00007fe8a383a7a2 in TRint::ProcessLineNr (this=this
entry=0x17fdb20, filestem=filestem
entry=0x7fe8a384c3c5 "ROOT_prompt_", line=0x3117720 "std::cout << *my_branch_value << std::endl;", error=0x7ffde847991c, error
entry=0x0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/rint/src/TRint.cxx:746
#19 0x00007fe8a383aaf4 in TRint::HandleTermInput (this=0x17fdb20) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/rint/src/TRint.cxx:607
#20 0x00007fe8a34e3ea8 in TUnixSystem::CheckDescriptors (this=this
entry=0x17a07c0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/unix/src/TUnixSystem.cxx:1322
#21 0x00007fe8a34e5678 in TUnixSystem::DispatchOneEvent (this=0x17a07c0, pendingOnly=<optimized out>) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/unix/src/TUnixSystem.cxx:1077
#22 0x00007fe8a33ff581 in TSystem::InnerLoop (this=0x17a07c0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/base/src/TSystem.cxx:412
#23 TSystem::Run (this=0x17a07c0) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/base/src/TSystem.cxx:362
#24 0x00007fe8a339456f in TApplication::Run (this=this
entry=0x17fdb20, retrn=retrn
entry=false) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/base/src/TApplication.cxx:1183
#25 0x00007fe8a383c046 in TRint::Run (this=this
entry=0x17fdb20, retrn=retrn
entry=false) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/rint/src/TRint.cxx:460
#26 0x000000000040098a in main (argc=<optimized out>, argv=0x7ffde847bd48) at /home/SJLPHI/Physics_Soft/source_packages/root6source/main/src/rmain.cxx:30
===========================================================
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.
===========================================================
#6 0x00007fe8a3b4203e in ?? ()
#7 0x0000000001df8960 in ?? ()
#8 0x00007fe89e208978 in cling::MultiplexInterpreterCallbacks::EnteringUserCode() () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#9 0x00007ffde8479550 in ?? ()
#10 0x00007fe8a3b42000 in ?? ()
#11 0x00007fe89e20d0df in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.310] () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#12 0x00007fe89e20d4ff 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/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#13 0x00007fe89e20dc47 in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**, bool) () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#14 0x00007fe89e2c59dd in cling::MetaProcessor::process(llvm::StringRef, cling::Interpreter::CompilationResult&, cling::Value*, bool) () from /home/SJLPHI/Physics_Soft/ROOT6/lib/libCling.so
#15 0x00007fe89e16486e in HandleInterpreterException (metaProcessor=0x1df79c0, input_line=<optimized out>, compRes=
0x7ffde8479424: cling::Interpreter::kSuccess, result=result
entry=0x7ffde8479550) at /home/SJLPHI/Physics_Soft/source_packages/root6source/core/metacling/src/TCling.cxx:2163
===========================================================