I test apk by valgrind in android 5.0 or most ,must meet the problem: at 0x6A23AB4: art::Thread::InstallImplicitProtection() (in /system/lib/libart.so) I/val.sh ( 4822): ==4824== If you believe this happened as a result of a stack I/val.sh ( 4822): ==4824== overflow in your program's main thread (unlikely but I/val.sh ( 4822): ==4824== possible), you can try to increase the size of the I/val.sh ( 4822): ==4824== main thread stack using the --main-stacksize= flag. I/val.sh ( 4822): ==4824== The main thread stack size used in this run was 134217728 I try to add --main-stacksize=134217728, this problem is still exist. finally ,the problem can be solved.I attach a patch that fix the issue.
Created attachment 98913 [details] patch to fix this problem
using patch to fix this problem ,and then you can test apk by valgrind in android 5.0 or most . memcheck,callgrind,lackey and so on.
Re-assigned to general. Not specific for callgrind.