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

segfault when retrieving TTreeCache from Tchain

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.22/00
    • Component/s: I/O
    • Labels:
      None
    • Environment:

      ROOT Version: 6.21/01
      Built for linuxx8664gcc on Apr 07 2020, 08:59:10
      From heads/master@v6-19-01-3618-gab7f6e14b4

      gcc (Arch Linux 9.2.1+20200130-2) 9.2.1 20200130

      Description

      I get a segfault when retrieving the TTreeCache object of a TChain:

       

      $ g++ -o test_retrieve_ttreecache_fromchain -std=c++17 test_retrieve_ttreecache_fromchain.cpp `root-config --cflags --glibs`
      $ ./test_retrieve_ttreecache_fromchain
      Break *** segmentation violation
       
       *** Break *** segmentation violation===========================================================
      There was a crash (kSigSegmentationViolation).
      This is the entire stack trace of all threads:
      ===========================================================
      #0  0x00007f300027d96a in wait4 () from /usr/lib/libc.so.6
      #1  0x00007f30001f9de7 in do_system () from /usr/lib/libc.so.6
      #2  0x00007f3002a983c2 in TUnixSystem::Exec (this=0x5616935ae1a0, shellcmd=0x561696292560 "/home/vincenzo/Programs/rootproject/build/masterpython3/etc/gdb-backtrace.sh 35198 1>&2") at /home/vincenzo/Programs/rootproject/root/core/unix/src/TUnixSystem.cxx:2109
      #3  0x00007f3002a98c77 in TUnixSystem::StackTrace (this=0x5616935ae1a0) at /home/vincenzo/Programs/rootproject/root/core/unix/src/TUnixSystem.cxx:2400
      #4  0x00007f3002a9c8aa in TUnixSystem::DispatchSignals (this=0x5616935ae1a0, sig=kSigSegmentationViolation) at /home/vincenzo/Programs/rootproject/root/core/unix/src/TUnixSystem.cxx:3638
      #5  0x00007f3002a94098 in SigHandler (sig=kSigSegmentationViolation) at /home/vincenzo/Programs/rootproject/root/core/unix/src/TUnixSystem.cxx:403
      #6  0x00007f3002a9c7b8 in sighandler (sig=11) at /home/vincenzo/Programs/rootproject/root/core/unix/src/TUnixSystem.cxx:3609
      #7  <signal handler called>
      #8  0x00007f300235f1c1 in TFile::GetCacheRead (this=0x0, tree=0x56169365e210) at /home/vincenzo/Programs/rootproject/root/io/io/src/TFile.cxx:1170
      #9  0x00007f30015b142d in TTree::GetReadCache (this=0x56169365e210, file=0x0) at /home/vincenzo/Programs/rootproject/root/tree/tree/src/TTree.cxx:6161
      #10 0x00007f30015b14b8 in TTree::GetReadCache (this=0x56169365e210, file=0x0, create=true) at /home/vincenzo/Programs/rootproject/root/tree/tree/src/TTree.cxx:6174
      #11 0x0000561691de5234 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.
      ===========================================================
      #8  0x00007f300235f1c1 in TFile::GetCacheRead (this=0x0, tree=0x56169365e210) at /home/vincenzo/Programs/rootproject/root/io/io/src/TFile.cxx:1170
      #9  0x00007f30015b142d in TTree::GetReadCache (this=0x56169365e210, file=0x0) at /home/vincenzo/Programs/rootproject/root/tree/tree/src/TTree.cxx:6161
      #10 0x00007f30015b14b8 in TTree::GetReadCache (this=0x56169365e210, file=0x0, create=true) at /home/vincenzo/Programs/rootproject/root/tree/tree/src/TTree.cxx:6174
      #11 0x0000561691de5234 in main ()
      ===========================================================
      

       

       

      I attach a small reproducer.

      Cheers,

      Vincenzo

        Attachments

          Activity

            People

            • Assignee:
              eguiraud Enrico Guiraud
              Reporter:
              vpadulan Vincenzo Eduardo Padulano
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: