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

Segmentation fault after creating a TBrowser with root --web

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.16/00
    • Fix Version/s: master, 6.18/00
    • Component/s: GUI
    • Labels:
      None
    • Environment:

      Linux

      Description

      I have ROOT 6.16 with C++14 and Qt5 enabled.

      If I start ROOT with justĀ root, type .demo, open a TBrowser , then use the menu to quit ROOT, everything works. Doing the same thing with root --web causes ROOT to crash with a free of an invalid pointer:

      epsft-53 ~ $ root
         ------------------------------------------------------------
        | Welcome to ROOT 6.16/00                  https://root.cern |
        |                               (c) 1995-2018, The ROOT Team |
        | Built for linuxx8664gcc on Jan 23 2019, 09:06:13           |
        | From tags/v6-16-00@v6-16-00                                |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
         ------------------------------------------------------------
       
      root [0] .demo
      root [1]  // create a TBrowser by clicking "browser" and close it via the main menu
      Taking a break from ROOT? Hope to see you back!
       
      epsft-53 ~ $ root --web
         ------------------------------------------------------------
        | Welcome to ROOT 6.16/00                  https://root.cern |
        |                               (c) 1995-2018, The ROOT Team |
        | Built for linuxx8664gcc on Jan 23 2019, 09:06:13           |
        | From tags/v6-16-00@v6-16-00                                |
        | Try '.help', '.demo', '.license', '.credits', '.quit'/'.q' |
         ------------------------------------------------------------
       
      root [0] .demo
      root [1] // create a TBrowser by clicking "browser" and close it via the main menu
      Info in <THttpEngine::Create>: Starting HTTP server on port 9159
      Showing web window in browser with:
      xdg-open 'http://localhost:9159/win1/?key=1048305' &
      [19948:19948:0212/132346.055777:ERROR:sandbox_linux.cc(364)] InitializeSandbox() called with multiple threads in process gpu-process.
      Opening in existing browser session.
       
      Taking a break from ROOT? Hope to see you back!
       
       
       *** Break *** segmentation violation
       
       
       
      ===========================================================
      There was a crash.
      This is the entire stack trace of all threads:
      ===========================================================
       
      Thread 13 (Thread 0x7f0882ffd700 (LWP 19820)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=17, buf=0x7f0882ff8ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0882ffd700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 12 (Thread 0x7f08837fe700 (LWP 19819)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=16, buf=0x7f08837f9ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f08837fe700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 11 (Thread 0x7f0883fff700 (LWP 19818)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=15, buf=0x7f0883ffaba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0883fff700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 10 (Thread 0x7f0890ff9700 (LWP 19817)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=14, buf=0x7f0890ff4ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0890ff9700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 9 (Thread 0x7f08917fa700 (LWP 19816)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=13, buf=0x7f08917f5ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f08917fa700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 8 (Thread 0x7f0891ffb700 (LWP 19815)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=12, buf=0x7f0891ff6ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0891ffb700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 7 (Thread 0x7f08927fc700 (LWP 19814)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=11, buf=0x7f08927f7ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f08927fc700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 6 (Thread 0x7f0892ffd700 (LWP 19813)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=10, buf=0x7f0892ff8ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0892ffd700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 5 (Thread 0x7f08937fe700 (LWP 19812)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=9, buf=0x7f08937f9ba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f08937fe700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 4 (Thread 0x7f0893fff700 (LWP 19811)):
      #0  0x00007f08b66149f0 in __GI___libc_read (fd=8, buf=0x7f0893ffaba8, nbytes=8) at ../sysdeps/unix/sysv/linux/read.c:26
      #1  0x00007f08a195b311 in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0893fff700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 3 (Thread 0x7f0898b19700 (LWP 19810)):
      #0  0x00007f08b66190f3 in __GI___poll (fds=0x561706ef8af0, nfds=1, timeout=200) at ../sysdeps/unix/sysv/linux/poll.c:29
      #1  0x00007f08a194cd4d in ?? () from /usr/lib64/root/6.16/lib/libRHTTP.so.6.16
      #2  0x00007f08b5e1842d in start_thread (arg=0x7f0898b19700) at pthread_create.c:486
      #3  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 2 (Thread 0x7f089a6cb700 (LWP 19809)):
      #0  0x00007f08b5e1f0dc in futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x561707c8acc8) at ../sysdeps/unix/sysv/linux/futex-internal.h:88
      #1  __pthread_cond_wait_common (abstime=0x0, mutex=0x561707c8ac78, cond=0x561707c8aca0) at pthread_cond_wait.c:502
      #2  __pthread_cond_wait (cond=0x561707c8aca0, mutex=0x561707c8ac78) at pthread_cond_wait.c:655
      #3  0x00007f089ac1b56b in ?? () from /usr/lib64/dri/i965_dri.so
      #4  0x00007f089ac1b277 in ?? () from /usr/lib64/dri/i965_dri.so
      #5  0x00007f08b5e1842d in start_thread (arg=0x7f089a6cb700) at pthread_create.c:486
      #6  0x00007f08b662545f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
       
      Thread 1 (Thread 0x7f08b5c8e980 (LWP 19493)):
      #0  0x00007f08b65eefaa in __GI___waitpid (pid=20274, stat_loc=stat_loc
      entry=0x7ffe33d3fab8, options=options
      entry=0) at ../sysdeps/unix/sysv/linux/waitpid.c:30
      #1  0x00007f08b6564bdf in do_system (line=<optimized out>) at ../sysdeps/posix/system.c:149
      #2  0x00007f08b6d1cce0 in TUnixSystem::StackTrace() () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #3  0x00007f08b6d1f7d4 in TUnixSystem::DispatchSignals(ESignals) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #4  <signal handler called>
      #5  0x00007f08b6c16dd6 in TQObject::Disconnect(char const*, char const*, void*, char const*) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #6  0x00007f08a2e70832 in ROOT::Experimental::RWebWindowsManager::~RWebWindowsManager() () from /usr/lib64/root/6.16/lib/libROOTWebDisplay.so.6.16
      #7  0x00007f08a2e76ba1 in std::shared_ptr<ROOT::Experimental::RWebWindowsManager>::~shared_ptr() () from /usr/lib64/root/6.16/lib/libROOTWebDisplay.so.6.16
      #8  0x00007f08b65598e0 in __run_exit_handlers (status=0, listp=0x7f08b66ec718 <__exit_funcs>, run_list_atexit=run_list_atexit
      entry=true, run_dtors=run_dtors
      entry=true) at exit.c:108
      #9  0x00007f08b65599ea in __GI_exit (status=<optimized out>) at exit.c:139
      #10 0x00007f08b6d19c0d in TUnixSystem::Exit(int, bool) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #11 0x00007f08b6bc54cd in TApplication::Terminate(int) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #12 0x00007f08a1d1251b in TRootBrowser::HandleMenu(int) () from /usr/lib64/root/6.16/lib/libGui.so.6.16
      #13 0x00007f08b694d033 in ?? ()
      #14 0x0000000000000000 in ?? ()
      ===========================================================
       
       
      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  0x00007f08b6c16dd6 in TQObject::Disconnect(char const*, char const*, void*, char const*) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #6  0x00007f08a2e70832 in ROOT::Experimental::RWebWindowsManager::~RWebWindowsManager() () from /usr/lib64/root/6.16/lib/libROOTWebDisplay.so.6.16
      #7  0x00007f08a2e76ba1 in std::shared_ptr<ROOT::Experimental::RWebWindowsManager>::~shared_ptr() () from /usr/lib64/root/6.16/lib/libROOTWebDisplay.so.6.16
      #8  0x00007f08b65598e0 in __run_exit_handlers (status=0, listp=0x7f08b66ec718 <__exit_funcs>, run_list_atexit=run_list_atexit
      entry=true, run_dtors=run_dtors
      entry=true) at exit.c:108
      #9  0x00007f08b65599ea in __GI_exit (status=<optimized out>) at exit.c:139
      #10 0x00007f08b6d19c0d in TUnixSystem::Exit(int, bool) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #11 0x00007f08b6bc54cd in TApplication::Terminate(int) () from /usr/lib64/root/6.16/lib/libCore.so.6.16
      #12 0x00007f08a1d1251b in TRootBrowser::HandleMenu(int) () from /usr/lib64/root/6.16/lib/libGui.so.6.16
      #13 0x00007f08b694d033 in ?? ()
      #14 0x0000000000000000 in ?? ()
      ===========================================================
       
       
      Root > free(): invalid pointer
      

        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:
                Baseline Start:
                Baseline End:
                Date of Baselining:
                Actual Start:
                Actual End: