Details
-
Bug
-
Status: Closed (View Workflow)
-
High
-
Resolution: Fixed
-
6.12/06
-
None
-
CPU: Intel Core i7 4710MQ
OS: Ubuntu 16.
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.9)
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.