|
From: Madhusudhana V. <Mad...@ln...> - 2009-06-08 11:45:32
|
Hi all,
I wanted to Cross compile Valgringd for MPC8548E Architecture. I
configured and compiled the valgrind with some changes in 2 files
configure and config.sub.
but after running it on the board.. i am getting this error
---------------------------------
root# ./valgrind --tool=memcheck ./mem_leak
==7875== Memcheck, a memory error detector.
==7875== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
==7875== Using LibVEX rev 1884, a library for dynamic binary translation.
==7875== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
==7875== Using valgrind-3.4.1, a dynamic binary instrumentation framework.
==7875== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
==7875== For more details, rerun with: -v
==7875==
==7875== Use of uninitialised value of size 4
==7875== at 0x40138F4: (within /lib/ld-2.3.3.so)
==7875== by 0x7EFFF7AF: ???
==7875== by 0x4005497: (within /lib/ld-2.3.3.so)
==7875== by 0x4007A9F: (within /lib/ld-2.3.3.so)
==7875== by 0x40046CB: (within /lib/ld-2.3.3.so)
==7875== by 0x400F74B: (within /lib/ld-2.3.3.so)
==7875== by 0x4004A5F: (within /lib/ld-2.3.3.so)
==7875== by 0x4004E8B: (within /lib/ld-2.3.3.so)
==7875== by 0x4010A03: (within /lib/ld-2.3.3.so)
==7875== Use of uninitialised value of size 4
==7875== at 0x400AB18: (within /lib/ld-2.3.3.so)
==7875== by 0x4002C9F: (within /lib/ld-2.3.3.so)
==7875== by 0x400F74B: (within /lib/ld-2.3.3.so)
==7875== by 0x4004A5F: (within /lib/ld-2.3.3.so)
==7875== by 0x4004E8B: (within /lib/ld-2.3.3.so)
==7875== by 0x4010A03: (within /lib/ld-2.3.3.so)
disInstr(ppc): declined to decode an AltiVec insn.
disInstr(ppc): unhandled instruction: 0x13C17320
primary 4(0x4), secondary 800(0x320)
==7875== valgrind: Unrecognised instruction at address 0x400be08.
==7875== Your program just tried to execute an instruction that Valgrind
==7875== did not recognise. There are two possible reasons for this.
==7875== 1. Your program has a bug and erroneously jumped to a non-code
==7875== location. If you are running Memcheck and you just saw a
==7875== warning about a bad jump, it's probably your program's fault.
==7875== 2. The instruction is legitimate but Valgrind doesn't handle it,
==7875== i.e. it's Valgrind's fault. If you think this is the case or
==7875== you are not sure, please let us know and we'll try to fix it.
==7875== Either way, Valgrind will now raise a SIGILL signal which will
==7875== probably kill your program.
==7875==
==7875== Process terminating with default action of signal 4 (SIGILL)
==7875== Illegal opcode at address 0x400BE08
==7875== at 0x400BE08: (within /lib/ld-2.3.3.so)
==7875== by 0x98: ???
==7875== by 0x4002C9F: (within /lib/ld-2.3.3.so)
==7875== by 0x400F74B: (within /lib/ld-2.3.3.so)
==7875== by 0x4004A5F: (within /lib/ld-2.3.3.so)
==7875== by 0x4004E8B: (within /lib/ld-2.3.3.so)
==7875== by 0x4010A03: (within /lib/ld-2.3.3.so)
==7875==
==7875== ERROR SUMMARY: 78 errors from 62 contexts (suppressed: 31 from 1)
==7875== malloc/free: in use at exit: 0 bytes in 0 blocks.
==7875== malloc/free: 0 allocs, 0 frees, 0 bytes allocated.
==7875== For counts of detected errors, rerun with: -v
==7875== Use --track-origins=yes to see where uninitialised values come
from
==7875== All heap blocks were freed -- no leaks are possible.
Illegal instruction
Is This error due to Valgrind unable to recognize the opcode.
I am using ppc_85xx-gcc (Compiler Tool chain)
Please anybody can help regarding this..
Thanks and Regards
Madhusudhana M V
Software Engineer
E-Mail id - mad...@ln...
L&T Infotech Ltd,
Plot No 25-31, EPIP IInd Phase,
KIADB Industrial Area, Whitefiled,
Bangalore-560066
Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com
This Document is classified as:
L&T Infotech Proprietary L&T Infotech Confidential L&T Infotech
Internal Use Only L&T Infotech General Business
This Email may contain confidential or privileged information for the
intended recipient (s) If you are not the intended recipient, please do
not use or disseminate the information, notify the sender and delete it
from your system.
______________________________________________________________________ |