Uploaded image for project: 'ROOT'
  1. ROOT
  2. ROOT-7707

typing "TList g" on command line kills ROOT!

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.06/00
    • Fix Version/s: 6.06/00
    • Component/s: Cling, Core Libraries
    • Labels:
      None
    • Environment:

      ROOT compiled from git master.
      Linux ganp115 3.19.0-30-generic #34-Ubuntu SMP Fri Oct 2 22:08:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
      gcc version 4.9.2 (Ubuntu 4.9.2-10ubuntu13)

    • Development:

      Description

      Hi,
      I've just discovered a weird bug:

      ganp115:~/work/ROOT% root
      ----------------------------------------------------------------

      Welcome to ROOT 6.05/03 http://root.cern.ch
      (c) 1995-2014, The ROOT Team
      Built for linuxx8664gcc
      From heads/master@v6-05-02-212-gff56c46, Sep 25 2015, 17:10:00
      Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'

      ----------------------------------------------------------------

      root [0] TList y
      In file included from input_line_12:18:
      In file included from /home/john/software/sources/root/build-master/etc/dictpch/allHeaders.h:252:
      /home/john/software/sources/root/build-master/etc/cling/Interpreter/RuntimePrintValue.h:151:27: error:
      cannot take the address of an rvalue of type 'TObject *'
      str += printValue(&(*iter));
      ^ ~~~~~
      /home/john/software/sources/root/build-master/etc/cling/Interpreter/RuntimePrintValue.h:95:39: note:
      in instantiation of function template specialization
      'cling::collectionPrinterInternal::printValue_impl<TList>' requested here
      return collectionPrinterInternal::printValue_impl(obj, (short)0); // short -> in...
      ^
      input_line_11:2:9: note: in instantiation of function template specialization
      'cling::printValue<TList>' requested here
      cling::printValue((TList*)0x7ffe135a6f20);
      ^

          • Break *** segmentation violation

      ===========================================================
      There was a crash.
      This is the entire stack trace of all threads:
      ===========================================================
      #0 0x00007f9caf82084a in _GI__waitpid (pid=8186, stat_loc=stat_loc
      entry=0x7ffe135a4300, options=options
      entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:31
      #1 0x00007f9caf799ffb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
      #2 0x00007f9cb0536abf in Exec (shellcmd=<optimized out>, this=<optimized out>) at /home/john/software/sources/root/root.git/core/unix/src/TUnixSystem.cxx:2073
      #3 TUnixSystem::StackTrace (this=0x1ff78e0) at /home/john/software/sources/root/root.git/core/unix/src/TUnixSystem.cxx:2301
      #4 0x00007f9cb0538c6c in TUnixSystem::DispatchSignals (this=0x1ff78e0, sig=kSigSegmentationViolation) at /home/john/software/sources/root/root.git/core/unix/src/TUnixSystem.cxx:3539
      #5 <signal handler called>
      #6 0x00007f9cafdfab3b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #7 0x00007f9cacad5a87 in std::string executePrintValue<void*>(cling::Value const&, void* const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #8 0x00007f9cacad621c in invokePrintValueOverload(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #9 0x00007f9cacad93cd in printUnpackedClingValue(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #10 0x00007f9cacada302 in cling::valuePrinterInternal::printValueInternal(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #11 0x00007f9cacacf455 in cling::Value::print(llvm::raw_ostream&) const () from /home/john/software/build/root-trunk/lib/libCling.so
      #12 0x00007f9cacacf699 in cling::Value::dump() const () from /home/john/software/build/root-trunk/lib/libCling.so
      #13 0x00007f9cb08b00d0 in ?? ()
      #14 0x00007f9cb0044660 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #15 0x00007ffe135a79b0 in ?? ()
      #16 0x00007ffe135a7610 in ?? ()
      #17 0x00007f9cacaacb7e in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/john/software/build/root-trunk/lib/libCling.so
      #18 0x00007f9cacab2951 in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /home/john/software/build/root-trunk/lib/libCling.so
      #19 0x00007f9cacab2b35 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /home/john/software/build/root-trunk/lib/libCling.so
      #20 0x00007f9cacb5e533 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/john/software/build/root-trunk/lib/libCling.so
      #21 0x00007f9caca3f770 in TCling::ProcessLine (this=0x20689f0, line=<optimized out>, error=0x7ffe135a7d9c) at /home/john/software/sources/root/root.git/core/meta/src/TCling.cxx:1969
      #22 0x00007f9cb04674f0 in TApplication::ProcessLine (this=this
      entry=0x2056df0, line=<optimized out>, sync=sync
      entry=false, err=err
      entry=0x7ffe135a7d9c) at /home/john/software/sources/root/root.git/core/base/src/TApplication.cxx:991
      #23 0x00007f9cb00547cf in TRint::ProcessLineNr (this=this
      entry=0x2056df0, filestem=filestem
      entry=0x7f9cb006357e "ROOT_prompt_", line=0x7ffe135a7e49 "TList y", error=0x7ffe135a7d9c, error
      entry=0x0) at /home/john/software/sources/root/root.git/core/rint/src/TRint.cxx:734
      #24 0x00007f9cb0054ab1 in TRint::HandleTermInput (this=0x2056df0) at /home/john/software/sources/root/root.git/core/rint/src/TRint.cxx:605
      #25 0x00007f9cb05382fd in TUnixSystem::CheckDescriptors (this=this
      entry=0x1ff78e0) at /home/john/software/sources/root/root.git/core/unix/src/TUnixSystem.cxx:1301
      #26 0x00007f9cb053958a in TUnixSystem::DispatchOneEvent (this=0x1ff78e0, pendingOnly=<optimized out>) at /home/john/software/sources/root/root.git/core/unix/src/TUnixSystem.cxx:1056
      #27 0x00007f9cb0443be4 in TSystem::InnerLoop (this=0x1ff78e0) at /home/john/software/sources/root/root.git/core/base/src/TSystem.cxx:407
      #28 0x00007f9cb0442051 in TSystem::Run (this=0x1ff78e0) at /home/john/software/sources/root/root.git/core/base/src/TSystem.cxx:357
      #29 0x00007f9cb0464cbf in TApplication::Run (this=0x2056df0, retrn=<optimized out>) at /home/john/software/sources/root/root.git/core/base/src/TApplication.cxx:1139
      #30 0x00007f9cb0055fdb in TRint::Run (this=0x7ffe135a7170, retrn=88) at /home/john/software/sources/root/root.git/core/rint/src/TRint.cxx:459
      #31 0x0000000000401060 in main (argc=1, argv=0x7ffe135aa1d8) at /home/john/software/sources/root/root.git/main/src/rmain.cxx:30
      ===========================================================

      The lines below might hint at the cause of the crash.
      If they do not help you then please submit a bug 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 0x00007f9cafdfab3b in std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #7 0x00007f9cacad5a87 in std::string executePrintValue<void*>(cling::Value const&, void* const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #8 0x00007f9cacad621c in invokePrintValueOverload(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #9 0x00007f9cacad93cd in printUnpackedClingValue(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #10 0x00007f9cacada302 in cling::valuePrinterInternal::printValueInternal(cling::Value const&) () from /home/john/software/build/root-trunk/lib/libCling.so
      #11 0x00007f9cacacf455 in cling::Value::print(llvm::raw_ostream&) const () from /home/john/software/build/root-trunk/lib/libCling.so
      #12 0x00007f9cacacf699 in cling::Value::dump() const () from /home/john/software/build/root-trunk/lib/libCling.so
      #13 0x00007f9cb08b00d0 in ?? ()
      #14 0x00007f9cb0044660 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
      #15 0x00007ffe135a79b0 in ?? ()
      #16 0x00007ffe135a7610 in ?? ()
      #17 0x00007f9cacaacb7e in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) () from /home/john/software/build/root-trunk/lib/libCling.so
      #18 0x00007f9cacab2951 in cling::Interpreter::EvaluateInternal(std::string const&, cling::CompilationOptions, cling::Value*, cling::Transaction**) () from /home/john/software/build/root-trunk/lib/libCling.so
      #19 0x00007f9cacab2b35 in cling::Interpreter::process(std::string const&, cling::Value*, cling::Transaction**) () from /home/john/software/build/root-trunk/lib/libCling.so
      #20 0x00007f9cacb5e533 in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /home/john/software/build/root-trunk/lib/libCling.so
      ===========================================================

      If I type instead

      root [1] TList z;
      root [2]

      then no problem. Is this a feature?

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              4cf4f8a19576fe29f5cb John Frankland
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: