Dear Rooters
Since the creation of TGraphSmooth I have tested the corresponding tutorial "motorcycle.C"
with every root version that I have downloaded, and it worked w/o any problem in all root
versions including version 5.13/01.
Sorrowly, in the newest version 5.15/01 the tutorial finally crashes after the following line:
grout = gs->SmoothKern(grin,“normal”,2.0);
My own program crashes also at the following code:
TGraph *grin, *grout;
TGraphSmooth *gs = new TGraphSmooth("supsmu");
cout << "*gs = " << gs << endl;
grin = new TGraph(nin, yin, xin); //reference xin as y array!
cout << "*grin = " << grin << endl;
grout = gs->SmoothSuper(grin, "" ,bass, span);
cout << "*grout = " << grout << endl;
with the output:
*gs = 0x469d020
*grin = 0x4699ef0
root.exe(1046) malloc: *** error for object 0x4b60600: incorrect checksum for freed object - object was probably modified after being freed, break at szone_error to debug
root.exe(1046) malloc: *** set a breakpoint in szone_error to debug
Can someone tell me what has changed (TGraph?) in the newest root version, so that
TGraphSmooth no longer works although the code has not changed?
Best regards
Christian
P.S.: Here is the result of running the tutorial:
root [0] .x graphs/motorcycle.C
*** Break *** bus error
/Users/cs/ROOT/root/tutorials/251: No such file or directory.
Attaching to process 251.
Reading symbols for shared libraries . done
Reading symbols for shared libraries … done
0x90031aa4 in wait4 ()
========== STACKS OF ALL THREADS ==========
Thread 1 (process 251 thread 0xd03):
#0 0x90031aa4 in wait4 ()
#1 0x900521a8 in system ()
#2 0x0112ea40 in TUnixSystem::StackTrace ()
#3 0x01132a3c in TUnixSystem::DispatchSignals ()
#4
#5 0x01f97460 in TGraphSmooth::Smoothin ()
#6 0x01f9792c in TGraphSmooth::SmoothKern ()
#7 0x0208f158 in G__G__Graf2_284_0_4 ()
#8 0x003e24ac in Cint::G__ExceptionWrapper ()
#9 0x0048c888 in G__call_cppfunc ()
#10 0x00476e78 in G__interpret_func ()
#11 0x0046bfb4 in G__getfunction ()
#12 0x00503d48 in G__getstructmem ()
#13 0x004fc2d8 in G__getvariable ()
#14 0x0044706c in G__getitem ()
#15 0x0045157c in G__getexpr ()
#16 0x00450b30 in G__getexpr ()
#17 0x004ae02c in G__exec_statement ()
#18 0x004789e8 in G__interpret_func ()
#19 0x0046c6e0 in G__getfunction ()
#20 0x00447484 in G__getitem ()
#21 0x0045157c in G__getexpr ()
#22 0x00453ca8 in G__calc_internal ()
#23 0x004b7858 in G__process_cmd ()
#24 0x010d6f94 in TCint::ProcessLine ()
#25 0x0100f038 in TApplication::ProcessFile ()
#26 0x0100c430 in TApplication::ProcessLine ()
#27 0x00035904 in TRint::HandleTermInput ()
#28 0x01132d64 in TUnixSystem::CheckDescriptors ()
#29 0x01132fd0 in TUnixSystem::DispatchOneEvent ()
#30 0x01089f34 in TSystem::InnerLoop ()
#31 0x01089ea0 in TSystem::Run ()
#32 0x0100b78c in TApplication::Run ()
#33 0x00035dd0 in TRint::Run ()
#34 0x000029d8 in main ()
Root > Function motorcycle() busy flag cleared