On 18/11/2014 23:33, Benny anam wrote:
> I try to figure out some problems about invalid free in android(mips)
> device, which may be caused by thread sync, I did as the
> README.android says compile the source and push to device, memcheck
> works fine in my device, but when I changed option to --tool=helgrind,
> the android logcat says the following:
> |I/start_valgrind.sh( 9328): link_image[2207]: 9329 couldnot load needed library
> '/data/local/Inst/lib/valgrind/vgpreload_drd-mips32-linux.so' for '/system/bin/app_process'
> (mips_relocate_got[1749]: 9329 cannot locate'sched_yield'...|
> but sched_yield is in /system/lib/libc.so. I use valgrind 3.10.0 and
> android 4.1 on mips, ndk-r8 and ndk-r10c both tried with the same
> results. So my question is helgrind/drd supported in android(arch
> mips) yet, If so, how can I make it work in my device? Thanks!
Can you check whether Helgrind and/or DRD work if the sched_yield() call
is changed into sleep(1) ? I'm not sure yet what's going on but this
might be the quickest way to get these tools working.
Bart.
|