Hi,
I am trying to use MakeProxy(in 4.04/02b) on a root tree that has been processed with the same release. I use the following commands:
gSystem -> Load(“libTreePlayer.so”);
TChain *chainsr = new TChain(“cnt”);
chainsr->Add("/projects/001/debdatta/release_R1.18/data_files/aug/reduced.*root");
chainsr->MakeProxy(“withfriend”,“sum.C”);
chainsr.Process(“withfriend.h+”);
For testing purposes, sum.C doesn’t have anything except a print statement. I am attaching one of the root files that I am using. In the past I have used MakeProxy (with root 4.04/02b ) on root files processed with an older root version and it worked fine.
The seg fault message is:
Fatal in ROOT::TBranchProxyClassDescriptor:: strcmp(fInfo->GetName(), type)==0 violated at line 58 of `treeplayer/src/TBranchProxyClassDescriptor.cxx’
aborting
Generating stack trace…
0x01b70d40 in ROOT::TBranchProxyClassDescriptor::TBranchProxyClassDescriptor(char const*, TStreamerInfo*, char const*, unsigned int, unsigned int) + 0x222 from/projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTreePlayer.so
0x01bafc6c in ROOT::TTreeProxyGenerator::AnalyzeTree(TTree*) + 0x308 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTreePlayer.so
0x01baaa34 in ROOT::TTreeProxyGenerator::TTreeProxyGenerator(TTree*, char const*, char const*, char const*, char const*, unsigned int) + 0x314 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTreePlayer.so
0x01ba40e2 in TTreePlayer::MakeProxy(char const*, char const*, char const*, char const*, int) + 0x6a from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTreePlayer.so
0x06ddd5ba in TTree::MakeProxy(char const*, char const*, char const*, char const*, int) + 0x54 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTree.so.4.04
0x06df9eaf in from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libTree.so.4.04
0x00864f2d in G__call_cppfunc + 0x2c6 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x00853a18 in G__interpret_func + 0x7ac from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x008364eb in G__getfunction + 0x13f0 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x008d3182 in G__getstructmem + 0x8b4 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x008c9b90 in G__getvariable + 0x4fe from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x0082c8e3 in G__getitem + 0x52a from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x0082b321 in G__getexpr + 0x7c05 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x0087e597 in G__exec_function + 0xc7 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x00886721 in G__exec_statement + 0x337f from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x008125c7 in G__exec_tempfile_core + 0x2f9 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x008127cb in G__exec_tempfile + 0x22 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x0088f035 in G__process_cmd + 0x48f9 from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCint.so.4.04
0x002d17a5 in TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) + 0xaf from /projects/903/debdatta/genie-installation/ext/root_4.04_02b/lib/libCore.so.4.04
-thanks Debdatta.