Hi Phillippe,
Here is the valgrind output when I run the GetEntry, I can’t make heads or tails of it.
==5346== Invalid write of size 4
==5346== at 0x414DA6F: TBuffer::ReadFastArray(float*, int) (in /home/mike/root/lib/libCore.so)
==5346== by 0x4227EDD: int TStreamerInfo::ReadBuffer<char**>(TBuffer&, char** const&, int, int, int, int) (in /home/mike/root/lib/libCore.so)
==5346== by 0x4222856: TStreamerInfo::ReadBufferClones(TBuffer&, TClonesArray*, int, int, int) (in /home/mike/root/lib/libCore.so)
==5346== by 0x4FF681F: TBranchElement::ReadLeaves(TBuffer&) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FEB6FC: TBranch::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF4E25: TBranchElement::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF4DC3: TBranchElement::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x50223AB: TTree::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x5045D40: G__G__Tree_137_8_5(G__value*, char const*, G__param*, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4796FB5: G__ExceptionWrapper (in /home/mike/root/lib/libCint.so)
==5346== by 0x4826D5A: G__call_cppfunc (in /home/mike/root/lib/libCint.so)
==5346== by 0x4815ABA: G__interpret_func (in /home/mike/root/lib/libCint.so)
==5346== Address 0x575AA54 is 0 bytes after a block of size 44 alloc’d
==5346== at 0x401AE0A: operator new (vg_replace_malloc.c:197)
==5346== by 0x4208BFD: TClass::New(TClass::ENewType) (in /home/mike/root/lib/libCore.so)
==5346== by 0x41DFC1B: TClonesArray::ExpandCreateFast(int) (in /home/mike/root/lib/libCore.so)
==5346== by 0x4FF67C6: TBranchElement::ReadLeaves(TBuffer&) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FEB6FC: TBranch::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF4D78: TBranchElement::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x50223AB: TTree::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x5045D40: G__G__Tree_137_8_5(G__value*, char const*, G__param*, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4796FB5: G__ExceptionWrapper (in /home/mike/root/lib/libCint.so)
==5346== by 0x4826D5A: G__call_cppfunc (in /home/mike/root/lib/libCint.so)
==5346== by 0x4815ABA: G__interpret_func (in /home/mike/root/lib/libCint.so)
==5346== by 0x4804748: G__getfunction (in /home/mike/root/lib/libCint.so)
–5346-- INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - exiting
–5346-- si_code=1; Faulting address: 0x3FE209DA; sp: 0x62558EA8
valgrind: the ‘impossible’ happened:
Killed by fatal signal
==5346== at 0xB0015DD2: vgPlain_arena_malloc (m_mallocfree.c:169)
==5346== by 0xB002A935: vgPlain_cli_malloc (replacemalloc_core.c:101)
==5346== by 0xB000135B: vgMAC___builtin_new (mac_malloc_wrappers.c:192)
==5346== by 0xB002C00B: do_client_request (scheduler.c:987)
==5346== by 0xB002BAE9: vgPlain_scheduler (scheduler.c:721)
==5346== by 0xB00394E4: thread_wrapper (syswrap-linux.c:86)
==5346== by 0xB00395A0: run_a_thread_NORETURN (syswrap-linux.c:119)
sched status:
running_tid=1
Thread 1: status = VgTs_Runnable
==5346== at 0x401A9D0: operator new(unsigned) (vg_replace_malloc.c:164)
==5346== by 0x41F18CF: TList::MakeIterator(bool) const (in /home/mike/root/lib/libCore.so)
==5346== by 0x4220BC7: TStreamerInfo::GetStreamerElement(char const*, int&) const (in /home/mike/root/lib/libCore.so)
==5346== by 0x4FF50AC: TBranchElement::CheckBranchID() (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF5327: TBranchElement::GetInfo() (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF7961: TBranchElement::SetAddress(void*) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF4CC8: TBranchElement::SetupAddresses() (in /home/mike/root/lib/libTree.so)
==5346== by 0x4FF4D46: TBranchElement::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x50223AB: TTree::GetEntry(long long, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x5045D40: G__G__Tree_137_8_5(G__value*, char const*, G__param*, int) (in /home/mike/root/lib/libTree.so)
==5346== by 0x4796FB5: G__ExceptionWrapper (in /home/mike/root/lib/libCint.so)
==5346== by 0x4826D5A: G__call_cppfunc (in /home/mike/root/lib/libCint.so)
==5346== by 0x4815ABA: G__interpret_func (in /home/mike/root/lib/libCint.so)
==5346== by 0x4804748: G__getfunction (in /home/mike/root/lib/libCint.so)
==5346== by 0x4886EC0: G__getstructmem (in /home/mike/root/lib/libCint.so)
==5346== by 0x4880844: G__getvariable (in /home/mike/root/lib/libCint.so)
==5346== by 0x47FB690: G__getitem (in /home/mike/root/lib/libCint.so)
==5346== by 0x47FA2C5: G__getexpr (in /home/mike/root/lib/libCint.so)
==5346== by 0x483E12D: G__exec_function (in /home/mike/root/lib/libCint.so)
==5346== by 0x48451B5: G__exec_statement (in /home/mike/root/lib/libCint.so)
==5346== by 0x4817483: G__interpret_func (in /home/mike/root/lib/libCint.so)
==5346== by 0x4804D64: G__getfunction (in /home/mike/root/lib/libCint.so)
==5346== by 0x47FB6D0: G__getitem (in /home/mike/root/lib/libCint.so)
==5346== by 0x47FA2C5: G__getexpr (in /home/mike/root/lib/libCint.so)
==5346== by 0x47F1708: G__calc_internal (in /home/mike/root/lib/libCint.so)
==5346== by 0x484AFE8: G__process_cmd (in /home/mike/root/lib/libCint.so)
==5346== by 0x41FB416: TCint::ProcessLine(char const*, TInterpreter::EErrorCode*) (in /home/mike/root/lib/libCore.so)
==5346== by 0x41FB571: TCint::ProcessLineSynch(char const*, TInterpreter::EErrorCode*) (in /home/mike/root/lib/libCore.so)
==5346== by 0x414183D: TApplication::ProcessFile(char const*, int*) (in /home/mike/root/lib/libCore.so)
==5346== by 0x4140F0C: TApplication::ProcessLine(char const*, bool, int*) (in /home/mike/root/lib/libCore.so)
==5346== by 0x52F2C12: TRint::HandleTermInput() (in /home/mike/root/lib/libRint.so)
==5346== by 0x52F1901: TTermInputHandler::Notify() (in /home/mike/root/lib/libRint.so)
==5346== by 0x52F34C7: TTermInputHandler::ReadNotify() (in /home/mike/root/lib/libRint.so)
==5346== by 0x427F831: TUnixSystem::CheckDescriptors() (in /home/mike/root/lib/libCore.so)
==5346== by 0x427E71F: TUnixSystem::DispatchOneEvent(bool) (in /home/mike/root/lib/libCore.so)
==5346== by 0x41B8E57: TSystem::InnerLoop() (in /home/mike/root/lib/libCore.so)
==5346== by 0x41B8DFC: TSystem::Run() (in /home/mike/root/lib/libCore.so)
==5346== by 0x4141A5F: TApplication::Run(bool) (in /home/mike/root/lib/libCore.so)
==5346== by 0x52F26A3: TRint::Run(bool) (in /home/mike/root/lib/libRint.so)
==5346== by 0x80488DC: main (in /home/mike/root/bin/root.exe)
Note: see also the FAQ.txt in the source distribution.
It contains workarounds to several common problems.
If that doesn’t help, please report this bug to: www.valgrind.org
In the bug report, send all the above text, the valgrind
version, and what Linux distro you are using. Thanks.
Thanks for your time.
Regards,
Mike