Running macro in root6 giving crash while not in root5

Hi All,

I’m getting crash and segmentation violation while running a macro in root 6.06. This same macro is working fine in root 5.34/5.36 without any such crash. I also tried MakeClass in root 6.06 and tried to look at how the variables declare there and how the branches accessed within code generated by MakeClass. I followed the MakeClass and implemented same way in my macro but still getting crash. I want my code working and don’t want to do MakeClass. Although code generated by MakeClass in root 6.06 is working fine as well. The problem is only with my macro. Just for hint problem is related to statement [color=#FF0040]tree->GetEntry(jentry)[/color] in macro Kinematics.C and the problem is as following (entire stack) :

===========================================================
There was a crash.
This is the entire stack trace of all threads:

#0 0x00007f5856ad87be in waitpid () from /lib64/libc.so.6
#1 0x00007f5856a6a5c9 in do_system () from /lib64/libc.so.6
#2 0x00007f585752aa79 in TUnixSystem::StackTrace() () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libCore.so
#3 0x00007f585752c97c in TUnixSystem::DispatchSignals(ESignals) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libCore.so
#4
#5 0x00007f58539a2f63 in int TStreamerInfoActions::VectorLooper::ReadCollectionBasicType(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libRIO.so
#6 0x00007f58539d4d95 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libRIO.so
#7 0x00007f584b1d116d in TBranchElement::ReadLeavesMember(TBuffer&) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#8 0x00007f584b232f02 in TBranch::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#9 0x00007f584b1dcac0 in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#10 0x00007f584b21b793 in TTree::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#11 0x00007f585768a4e6 in ?? ()
#12 0x00007f5853af8000 in ?? ()
#13 0x4008000000000000 in ?? ()
#14 0xc008000000000000 in ?? ()
#15 0x0000000000000000 in ?? ()

The lines below might hint at the cause of the crash.
If they do not help you then please submit a bug report at
root.cern.ch/bugs. Please post the ENTIRE stack trace
from above as an attachment in addition to anything else
that might help us fixing this issue.

#5 0x00007f58539a2f63 in int TStreamerInfoActions::VectorLooper::ReadCollectionBasicType(TBuffer&, void*, TStreamerInfoActions::TConfiguration const*) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libRIO.so
#6 0x00007f58539d4d95 in TBufferFile::ApplySequence(TStreamerInfoActions::TActionSequence const&, void*) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libRIO.so
#7 0x00007f584b1d116d in TBranchElement::ReadLeavesMember(TBuffer&) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#8 0x00007f584b232f02 in TBranch::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#9 0x00007f584b1dcac0 in TBranchElement::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#10 0x00007f584b21b793 in TTree::GetEntry(long long, int) () from /cvmfs/cms.cern.ch/slc6_amd64_gcc530/lcg/root/6.06.00-ikhhed3/lib/libTree.so
#11 0x00007f585768a4e6 in ?? ()
#12 0x00007f5853af8000 in ?? ()
#13 0x4008000000000000 in ?? ()
#14 0xc008000000000000 in ?? ()
#15 0x0000000000000000 in ?? ()

I have attached my macro ([color=#0000FF]Kinematics.C[/color]). Also I have attached code generated after MakeClass in root 6.06 ([color=#0000FF]example_test.C and example_test.h[/color]). Please find attachments.
If somebody interested in running it then I can send you root file further. Please let me know.
Please help me to resolve this issue.

Thanks in Advance,
Sumit Keshri
example_test.h (5.02 KB)
example_test.C (1.5 KB)
Kinematics.C (8.7 KB)

Hi,

the input rootfile is needed to reproduce the behaviour.

D

Hi,

Please find root file in the following link.

dropbox.com/s/we6qxr9baofhh … .root?dl=0

If you are getting any problem with this link then this file can be downloaded from lxplus account.

/afs/cern.ch/user/s/skeshri/public/Ramkrishana_test/Cosmic_rate_tuple.root

Regards,
Sumit