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

Error on pulling TGraphErrors with fit from root file in command line

    XMLWordPrintable

    Details

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

      CPU: Intel Core i7 4710MQ

      OS: Ubuntu 16.

      gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)

    • Development:

      Description

      When I tried pull TGraphErrors with with fit from root file in command line, error occurs.

      For example, I made simple macro code, Fit.C. The code make root file, Out.root which contains TGraphErrors Test with fit. If I try to draw the TGraphErrors like,

      $root Out.root

      root[1]Test->Draw("AP*")

      then, the following error occurs

      ----------

      Error in <TClingCallFunc::make_wrapper>: Failed to compile
        ==== SOURCE BEGIN ====
      #pragma clang diagnostic push
      #pragma clang diagnostic ignored "-Wformat-security"
      __attribute((used)) extern "C" void __cf_0(void* obj, int nargs, void** args, void* ret)
      {
         if (ret) {
            new (ret) (double) (((double (&)(double*, double*))TFormula__id11347957373624834409)((double)args[0], *(double*)args[1]));
            return;
         }
         else {
            ((double (&)(double*, double*))TFormula__id11347957373624834409)((double)args[0], *(double*)args[1]);
            return;
         }
      }
      #pragma clang diagnostic pop
        ==== SOURCE END ====
      Info in <TCanvas::MakeDefCanvas>:  created default TCanvas with name c1

       *** Break *** segmentation violation

      ----------

      If I use macro code, Draw.C instead of command line, then I can draw the TGraphError without any error.

        Attachments

        1. Draw.C
          0.2 kB
        2. Fit.C
          0.4 kB

          Activity

            People

            Assignee:
            moneta Lorenzo Moneta
            Reporter:
            iyoon Inseok Yoon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: