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

Segfault in TClonesArray::ExpandCreateFast

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: 5.34/25
    • Fix Version/s: 6.04.00, 5.34/26, 6.02/05
    • Component/s: Core Libraries
    • Labels:
      None
    • Environment:

      slc6, amd64, gcc4.8, root 5.34.25 (using gcc and root versions from afs on lxplus)

      Description

      TClonesArray::ExpandCreateFast segfaults sometimes; seems to be related to small initial sizes of the TClonesArray.

      A sample program reproducing the problem is:

      #include "TClonesArray.h"
      int main(){
         TClonesArray * ar = new TClonesArray();
         ar->SetClass("TObject", 1);
         ar->ExpandCreateFast(11);
      }

      Regards,

      Jochen

        Attachments

          Activity

            People

            • Assignee:
              pcanal Philippe Canal
              Reporter:
              jott Jochen Ott (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: