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

Segmentation violation with TBrowser

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.10/00
    • Component/s: Cling
    • Labels:
      None
    • Environment:

      Linux

      Description

      If I create a TBrowser, close its window, then try to get it back with b.Show(), I get a segmentation violation. Please see session below.

      $ root
         -----------------------------------------------------------------------------
        | Welcome to ROOT 6.09/03                                 http://root.cern.ch |
        |                                                (c) 1995-2017, The ROOT Team |
        | Built for linuxx8664gcc                                                     |
        | From heads/fix-smatrix-test@v6-09-02-532-g98ba123abc, abr 25 2017, 08:24:25 |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q'                  |
         -----------------------------------------------------------------------------
       
      root [0] TBrowser b;
      // close the TBrowser window
      root [1] b.Show();
       
       *** Break *** segmentation violation
       
       
       
      ===========================================================
      There was a crash.
      This is the entire stack trace of all threads:
      ===========================================================
      #0  0x00007fdf2f6acb2a in __GI___waitpid (pid=8114, stat_loc=stat_loc
      entry=0x7ffd5e39b7c0, options=options
      entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:29
      #1  0x00007fdf2f6341eb in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:148
      #2  0x00007fdf30796a0d in TUnixSystem::Exec (shellcmd=<optimized out>, this=0x21bd4f0) at /home/amadio/src/root/core/unix/src/TUnixSystem.cxx:2118
      #3  TUnixSystem::StackTrace (this=0x21bd4f0) at /home/amadio/src/root/core/unix/src/TUnixSystem.cxx:2412
      #4  0x00007fdf30798ffc in TUnixSystem::DispatchSignals (this=0x21bd4f0, sig=kSigSegmentationViolation) at /home/amadio/src/root/core/unix/src/TUnixSystem.cxx:3632
      #5  <signal handler called>
      #6  0x00007fdf2f986098 in main_arena () from /lib64/libc.so.6
      #7  0x00007fdf2b2fc2d7 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.253] [clone .constprop.361] () from /var/tmp/root/lib/libCling.so
      #8  0x00007fdf2b2ff91d 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 /var/tmp/root/lib/libCling.so
      #9  0x00007fdf2b2ffafd in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**) () from /var/tmp/root/lib/libCling.so
      #10 0x00007fdf2b38269a in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /var/tmp/root/lib/libCling.so
      #11 0x00007fdf2b28c976 in HandleInterpreterException (metaProcessor=<optimized out>, input_line=<optimized out>, compRes=
      0x7ffd5e39e474: cling::Interpreter::kSuccess, result=result
      entry=0x7ffd5e39e480) at /home/amadio/src/root/core/metacling/src/TCling.cxx:1886
      #12 0x00007fdf2b29d273 in TCling::ProcessLine (this=0x2218fb0, line=<optimized out>, error=0x7ffd5e39e98c) at /home/amadio/src/root/core/metacling/src/TCling.cxx:2049
      #13 0x00007fdf30683080 in TApplication::ProcessLine (this=this
      entry=0x2208ff0, line=<optimized out>, sync=sync
      entry=false, err=err
      entry=0x7ffd5e39e98c) at /home/amadio/src/root/core/base/src/TApplication.cxx:991
      #14 0x00007fdf30ab67de in TRint::ProcessLineNr (this=this
      entry=0x2208ff0, filestem=filestem
      entry=0x7fdf30ac69a3 "ROOT_prompt_", line=0x7ffd5e39ea49 "b.Show();", error=0x7ffd5e39e98c, error
      entry=0x0) at /home/amadio/src/root/core/rint/src/TRint.cxx:741
      #15 0x00007fdf30ab6b65 in TRint::HandleTermInput (this=0x2208ff0) at /home/amadio/src/root/core/rint/src/TRint.cxx:602
      #16 0x00007fdf307984ec in TUnixSystem::CheckDescriptors (this=this
      entry=0x21bd4f0) at /home/amadio/src/root/core/unix/src/TUnixSystem.cxx:1321
      #17 0x00007fdf3079992a in TUnixSystem::DispatchOneEvent (this=0x21bd4f0, pendingOnly=<optimized out>) at /home/amadio/src/root/core/unix/src/TUnixSystem.cxx:1076
      #18 0x00007fdf306e5854 in TSystem::InnerLoop (this=0x21bd4f0) at /home/amadio/src/root/core/base/src/TSystem.cxx:410
      #19 0x00007fdf306e438f in TSystem::Run (this=0x21bd4f0) at /home/amadio/src/root/core/base/src/TSystem.cxx:360
      #20 0x00007fdf3067fabf in TApplication::Run (this=this
      entry=0x2208ff0, retrn=retrn
      entry=false) at /home/amadio/src/root/core/base/src/TApplication.cxx:1143
      #21 0x00007fdf30ab8157 in TRint::Run (this=this
      entry=0x2208ff0, retrn=retrn
      entry=false) at /home/amadio/src/root/core/rint/src/TRint.cxx:455
      #22 0x0000000000400b8c in main (argc=1, argv=0x7ffd5e3a0df8) at /home/amadio/src/root/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  0x00007fdf2f986098 in main_arena () from /lib64/libc.so.6
      #7  0x00007fdf2b2fc2d7 in cling::Interpreter::RunFunction(clang::FunctionDecl const*, cling::Value*) [clone .part.253] [clone .constprop.361] () from /var/tmp/root/lib/libCling.so
      #8  0x00007fdf2b2ff91d 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 /var/tmp/root/lib/libCling.so
      #9  0x00007fdf2b2ffafd in cling::Interpreter::process(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, cling::Value*, cling::Transaction**) () from /var/tmp/root/lib/libCling.so
      #10 0x00007fdf2b38269a in cling::MetaProcessor::process(char const*, cling::Interpreter::CompilationResult&, cling::Value*) () from /var/tmp/root/lib/libCling.so
      #11 0x00007fdf2b28c976 in HandleInterpreterException (metaProcessor=<optimized out>, input_line=<optimized out>, compRes=
      0x7ffd5e39e474: cling::Interpreter::kSuccess, result=result
      entry=0x7ffd5e39e480) at /home/amadio/src/root/core/metacling/src/TCling.cxx:1886
      ===========================================================

        Attachments

          Activity

            People

            • Assignee:
              bellenot Bertrand Bellenot
              Reporter:
              amadio Guilherme Amadio
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: