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

Teardown issue: TCanvas deletes TSlider

    XMLWordPrintable

    Details

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

      Centos7, Python2

      Description

      The following code segfaults:

      TCanvas *c1 = new TCanvas("c1", "The HSUM example", 200, 10, 600, 400);
      TSlider *slider = new TSlider("slider", "test", 4.2, 0, 4.6, 1, 38);
      delete c1;
      delete slider;
      

      Looks like the TCanvas deletes the TSlider in its destructor, which makes the delete of the TSlider fail.

      This issue is similar to what was reported here for a TCanvas and a TPad:
      https://sft.its.cern.ch/jira/browse/ROOT-10060

        Attachments

          Activity

            People

            • Assignee:
              etejedor Enric Tejedor Saavedra
              Reporter:
              etejedor Enric Tejedor Saavedra
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Actual End: