Bug 362939

Summary: test apk in android 5.0 or most,at 0x6A23AB4: art::Thread::InstallImplicitProtection() (in /system/lib/libart.so)
Product: [Developer tools] valgrind Reporter: winnie_hx <winnie_hx>
Component: generalAssignee: Julian Seward <jseward>
Status: REPORTED ---    
Severity: normal CC: winnie_hx
Priority: NOR    
Version First Reported In: 3.11.0   
Target Milestone: ---   
Platform: Android   
OS: Android 5.x   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: patch to fix this problem

Description winnie_hx 2016-05-11 11:56:42 UTC
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.
Comment 1 winnie_hx 2016-05-11 12:37:28 UTC
Created attachment 98913 [details]
patch to fix this problem
Comment 2 winnie_hx 2016-05-11 12:39:08 UTC
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.
Comment 3 Josef Weidendorfer 2016-05-12 12:06:30 UTC
Re-assigned to general. Not specific for callgrind.