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

[TChain] Potential access to invalid fTree in TChain destructor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 6.20/04
    • Fix Version/s: 6.22/00
    • Component/s: TTree
    • Labels:
      None
    • Environment:

      any

    • Development:

      Description

      The following sequence of calls results in c1 having a null fTree but a non-null fFile.

      TChain* c1 = new TChain("T");
      c1->Add("Event.root");
       
      TChain* c2 = new TChain("T2");
      c2->Add("Event2.root/T");
      c1->AddFriend(c2);
       
      c1->LoadTree(0);
      c1->RemoveFriend(c2);
       
      delete c1;
      

      In this situation, ~TChain ended up calling TTree::GetReadCache on a null fTree.

        Attachments

          Activity

            People

            • Assignee:
              eguiraud Enrico Guiraud
              Reporter:
              eguiraud Enrico Guiraud
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: