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

[PyROOT experimental] Segfault at destruction time of a TFile/TTree combination

    XMLWordPrintable

    Details

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

      master on commit dbbd0eb24d6ee048a67acfd720eba328ba8e3f13

      Description

      Experimental PyROOT segefaults with the following reproducer (non deterministic):

       

      import ROOT
      def create():
          f = ROOT.TFile("file.root", "RECREATE")
          t = ROOT.TTree("tree", "")
          return f, t
      f, t = create()
      

       

      Note that the scope created by  the function is required to trigger the bug. Also, the bug appears so far only in python3 and not in python2.

       

      Here the important part of the backtrace:

       

      #6  0x00007f2cc14c5e38 in main_arena () from /lib/x86_64-linux-gnu/libc.so.6
      #7  0x00007f2cbf747380 in TClass::Destructor (this=0x4e867a0, obj=0x5037e30, dtorOnly=<optimized out>) at /home/stefan/root-dev2/core/meta/src/TClass.cxx:5212
      #8  0x00007f2cb3bcbe92 in CPyCppyy::op_dealloc_nofree (pyobj=pyobj
      entry=0x7f2ca5f4d480) at /home/stefan/root-dev2/bindings/pyroot_experimental/cppyy/CPyCppyy/src/CPPInstance.cxx:212
      #9  0x00007f2cb3bcbf22 in CPyCppyy::op_dealloc (pyobj=0x7f2ca5f4d480) at /home/stefan/root-dev2/bindings/pyroot_experimental/cppyy/CPyCppyy/src/CPPInstance.cxx:309
      #10 0x000000000058170a in ?? ()
      #11 0x000000000059ba66 in PyDict_Clear ()
      #12 0x000000000059be09 in ?? ()
      #13 0x000000000051852d in ?? ()
      #14 0x000000000060b317 in _PyGC_CollectNoFail ()
      #15 0x000000000052363f in PyImport_Cleanup ()
      #16 0x000000000060e2de in Py_Finalize ()
      #17 0x0000000000640446 in Py_Main ()
      #18 0x00000000004d0001 in main ()
      

        Attachments

          Activity

            People

            • Assignee:
              etejedor Enric Tejedor Saavedra
              Reporter:
              swunsch Stefan Wunsch
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual Start:
                Actual End: