valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied
#chown -R shell.shell /data/local/Inst #cd /data/local/Inst/bin #./valgrind # su shell $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied $ whoami whoami: unknown uid 2000
ユーザーをSHELLにしてみたけどダメだった。
Valgrind cannot execute memcheck tool on Android OS?
root@hammerhead:/ # chown -R 10001.10001 /data/local/Inst root@hammerhead:/ # cd /data/local/Inst root@hammerhead:/data/local/Inst # cd bin root@hammerhead:/data/local/Inst/bin # su 10001 u0_a1@hammerhead:/data/local/Inst/bin $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied 1|u0_a1@hammerhead:/data/local/Inst/bin $ ll -rwxr-xr-x u0_a1 u0_a1 41112 2015-03-25 10:39 callgrind_annotate -rwxr-xr-x u0_a1 u0_a1 12016 2015-03-25 10:39 callgrind_control -rwxr-xr-x u0_a1 u0_a1 32170 2015-03-25 10:39 cg_annotate -rwxr-xr-x u0_a1 u0_a1 10418 2015-03-25 10:39 cg_diff -rwxr-xr-x u0_a1 u0_a1 55800 2015-03-25 10:39 cg_merge -rwxr-xr-x u0_a1 u0_a1 24401 2015-03-25 10:39 ms_print -rwxr-xr-x u0_a1 u0_a1 385332 2015-03-25 10:39 valgrind -rwxr-xr-x u0_a1 u0_a1 494524 2015-03-25 10:39 valgrind-di-server -rwxr-xr-x u0_a1 u0_a1 445512 2015-03-25 10:39 valgrind-listener -rwxr-xr-x u0_a1 u0_a1 446724 2015-03-25 10:39 vgdb u0_a1@hammerhead:/data/local/Inst/bin $ whoami whoami: unknown uid 10001 1|u0_a1@hammerhead:/data/local/Inst/bin $
libの中の実行権限をつけたところ、動くようになった。
root@hammerhead:/ # chown 10000.10000 /data/local/Inst root@hammerhead:/ # cd /data/local/Inst/bin root@hammerhead:/data/local/Inst/bin # ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied 1|root@hammerhead:/data/local/Inst/bin # ll -rwxr-xr-x u0_a0 u0_a0 41112 2015-03-25 10:39 callgrind_annotate -rwxr-xr-x u0_a0 u0_a0 12016 2015-03-25 10:39 callgrind_control -rwxr-xr-x u0_a0 u0_a0 32170 2015-03-25 10:39 cg_annotate -rwxr-xr-x u0_a0 u0_a0 10418 2015-03-25 10:39 cg_diff -rwxr-xr-x u0_a0 u0_a0 55800 2015-03-25 10:39 cg_merge -rwxr-xr-x u0_a0 u0_a0 24401 2015-03-25 10:39 ms_print -rwxr-xr-x u0_a0 u0_a0 385332 2015-03-25 10:39 valgrind -rwxr-xr-x u0_a0 u0_a0 494524 2015-03-25 10:39 valgrind-di-server -rwxr-xr-x u0_a0 u0_a0 445512 2015-03-25 10:39 valgrind-listener -rwxr-xr-x u0_a0 u0_a0 446724 2015-03-25 10:39 vgdb root@hammerhead:/data/local/Inst/bin # su 10000 u0_a0@hammerhead:/data/local/Inst/bin $ ./valgrind valgrind: failed to start tool 'memcheck' for platform 'arm-linux': Permission denied 1|u0_a0@hammerhead:/data/local/Inst/bin $ (略) ====libの実行権をつける==== u0_a0@hammerhead:$ cd /data/local/Inst/lib u0_a0@hammerhead:/data/local/Inst/lib $ ll drwxrwxr-x u0_a0 u0_a0 2015-03-25 17:24 pkgconfig drwxrwxr-x u0_a0 u0_a0 2015-03-25 17:26 valgrind u0_a0@hammerhead:/data/local/Inst/lib $ cd valgrind u0_a0@hammerhead:/data/local/Inst/lib/valgrind $ ll (略) -rw-rw-rw- u0_a0 u0_a0 19003828 2015-03-25 10:39 memcheck-arm-linux (略) u0_a0@hammerhead:/data/local/Inst/lib/valgrind $ cd .. u0_a0@hammerhead:/data/local/Inst/lib $ chmod -R 775 ./valgrind u0_a0@hammerhead:/data/local/Inst/lib $ cd ./valgrind u0_a0@hammerhead:/data/local/Inst/lib/valgrind $ ll -rwxrwxr-x u0_a0 u0_a0 19003828 2015-03-25 10:39 memcheck-arm-linux u0_a0@hammerhead:/data/local/Inst/lib/valgrind $ cd .. u0_a0@hammerhead:/data/local/Inst/lib $ cd .. u0_a0@hammerhead:/data/local/Inst $ cd bin u0_a0@hammerhead:/data/local/Inst/bin $ ./valgrind ./valgrind valgrind: no program specified valgrind: Use --help for more information. 1|u0_a0@hammerhead:/data/local/Inst/bin $ whoami whoami whoami: unknown uid 10000 1|u0_a0@hammerhead:/data/local/Inst/bin $