Hi,
it’s a Int_t.
Here the valgring output for the GetEntry command with the old root:[quote][…]
root [5] bxtree->GetEntry (200)
==13210==
==13210== Invalid write of size 4
==13210== at 0x6177AA6: TBufferFile::ReadInt(int&) (in /home/cern_etch/root_v5.20.00-1/lib/libRIO.so.5.20)
==13210== by 0x6F34D8A: TBranchElement::ReadLeaves(TBuffer&) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6F2B51D: TBranch::GetEntry(long long, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6F318B3: TBranchElement::GetEntry(long long, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6F31765: TBranchElement::GetEntry(long long, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6F31765: TBranchElement::GetEntry(long long, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6F7FAE2: TTree::GetEntry(long long, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x6FFD32B: G__G__Tree_103_0_66(G__value*, char const*, G__param*, int) (in /home/cern_etch/root_v5.20.00-1/lib/libTree.so.5.20)
==13210== by 0x4710379: Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) (in /home/cern_etch/root_v5.20.00-1/lib/libCint.so.5.20)
==13210== by 0x47B10E7: G__execute_call (in /home/cern_etch/root_v5.20.00-1/lib/libCint.so.5.20)
==13210== by 0x47B2148: G__call_cppfunc (in /home/cern_etch/root_v5.20.00-1/lib/libCint.so.5.20)
==13210== by 0x4788AB8: G__interpret_func (in /home/cern_etch/root_v5.20.00-1/lib/libCint.so.5.20)
==13210== Address 0x0 is not stack’d, malloc’d or (recently) free’d
[/quote]
And here the full output of valgrind for root 5.26:[quote]
[2069:0]~$ valgrind root.exe -b -l
==19842== Memcheck, a memory error detector
==19842== Copyright © 2002-2009, and GNU GPL’d, by Julian Seward et al.
==19842== Using Valgrind-3.5.0-Debian and LibVEX; rerun with -h for copyright info
==19842== Command: root.exe -b -l
==19842==
root [0] TFile f(“Run011002_c12.root”);
==19842== Conditional jump or move depends on uninitialised value(s)
==19842== at 0x5260A2E: inflateReset2 (in /usr/lib/libz.so.1.2.3.4)
==19842== by 0x5260B0C: inflateInit2_ (in /usr/lib/libz.so.1.2.3.4)
==19842== by 0x5260B82: inflateInit_ (in /usr/lib/libz.so.1.2.3.4)
==19842== by 0x425C6CC: R__unzip (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCore.so.5.26)
==19842== by 0x6B9F55B: TKey::ReadObjWithBuffer(char*) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x6B8B2DF: TFile::GetStreamerInfoList() (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x6B88761: TFile::ReadStreamerInfo() (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x6B8A855: TFile::Init(bool) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x6B8B9C6: TFile::TFile(char const*, char const*, char const*, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x6C4E11A: G__G__IO_107_0_22(G__value*, char const*, G__param*, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x47EEBE6: Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842== by 0x4899B3E: G__execute_call (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842==
Warning in TClass::TClass: no dictionary for class BxEvent is available
[…]
root [1] Int_t evnum, n_clusters, npmts;
root [2] bxtree->SetMakeClass(1);
root [3] bxtree->SetBranchAddress (“evnum”, &evnum);
root [4] bxtree->GetEntry (200)
==19842== Invalid write of size 4
==19842== at 0x6B769D4: TBufferFile::ReadInt(int&) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libRIO.so.5.26)
==19842== by 0x89D289F: TBranchElement::ReadLeaves(TBuffer&) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x89C3381: TBranch::GetEntry(long long, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x89C9C04: TBranchElement::GetEntry(long long, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x89C9A94: TBranchElement::GetEntry(long long, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x89C9A94: TBranchElement::GetEntry(long long, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x8A128D3: TTree::GetEntry(long long, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x8A41DC1: G__G__Tree_109_0_69(G__value*, char const*, G__param*, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libTree.so.5.26)
==19842== by 0x47EEBE6: Cint::G__ExceptionWrapper(int ()(G__value, char const*, G__param*, int), G__value*, char*, G__param*, int) (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842== by 0x4899B3E: G__execute_call (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842== by 0x489B569: G__call_cppfunc (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842== by 0x4876262: G__interpret_func (in /mnt/scratch/Software/Cern/root_v5.26.00/lib/libCint.so.5.26)
==19842== Address 0x0 is not stack’d, malloc’d or (recently) free’d
==19842==
[/quote]
The first log came from a production machine with debian old-stable, the second from my laptop with debian sid.
Thanks