[OE-core] Valgrind : Unhanded instructions mfatbu and mfatbl
Khem Raj
raj.khem at gmail.com
Fri Jan 13 07:34:12 UTC 2012
On Thu, Jan 12, 2012 at 9:43 PM, Bansal Aneesh-B39320
<B39320 at freescale.com>wrote:
> Hello,****
>
> ** **
>
> PowerPC uses two alternate time base registers which are read from user
> space****
>
> by using PPC instructions mfatbu and mfatbl . However these instructions
> are****
>
> not supported by Valgrind.****
>
> CPU : e500mc****
>
> Here are the logs when an application executing such instruction is
> executed****
>
> with Valgrind 3.7.0:****
>
> ** **
>
> dis_proc_ctl(ppc)(mfspr,SPR)(0x20F)****
>
> disInstr(ppc): unhandled instruction: 0x7C0F82A6****
>
> primary 31(0x1F), secondary 678(0x2A6)****
>
> ==2204== valgrind: Unrecognized instruction at address 0x10003dfc.****
>
> ==2204== at 0x10003DFC: ??? (in /usr/bin/simple_crypto)****
>
> ==2204== by 0x1000181B: ??? (in /usr/bin/simple_crypto)****
>
> ==2204== by 0xFE179E7: ??? (in /lib/libpthread-2.13.so)****
>
> ==2204== by 0x40EEA9B: ??? (in /lib/libc-2.13.so)****
>
> ==2204== Your program just tried to execute an instruction that Valgrind**
> **
>
> ==2204== did not recognise. There are two possible reasons for this.****
>
> ==2204== 1. Your program has a bug and erroneously jumped to a non-code***
> *
>
> ==2204== location. If you are running Memcheck and you just saw a****
>
> ==2204== warning about a bad jump, it's probably your program's fault.*
> ***
>
> ==2204== 2. The instruction is legitimate but Valgrind doesn't handle it,*
> ***
>
> ==2204== i.e. it's Valgrind's fault. If you think this is the case or*
> ***
>
> ==2204== you are not sure, please let us know and we'll try to fix it.*
> ***
>
> ==2204== Either way, Valgrind will now raise a SIGILL signal which will***
> *
>
> ==2204== probably kill your program.****
>
> ** **
>
> ** **
>
> We have developed a patch to fix the issue and submitted the patch
> upstream to Valgrind community for processing.
>
how about you also submit the patch to oe-core as well
so we can use it until the upstream patch lands in a release
that we will use
> ****
>
> ** **
>
> ** **
>
> Regards,****
>
> *Aneesh Bansal*
>
> **
>
> Plot No. – 18 | Sector-16 A, Noida – 201301****
>
> Phone : 0120395 x3320****
>
> ** **
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20120112/1cbccf1d/attachment-0002.html>
More information about the Openembedded-core
mailing list