Hi,

> What is the output from:
>   $ ldd ./hello-arm-bionic   ### print the shared libs needed by the app
> and what is the status of __libc_freeres with respect to each of the
> libraries named by ldd?
>

Surprisingly, ldd says my program is not a dynamic executable but readelf -a
hello-arm-bionic shows the need of libc.so shared library. (Full output of
readelf here -> http://pastebin.com/b8cnfyrK). FYI, I use agcc from
http://plausible.org/andy/agcc to compile hello-arm-bionic. The command line
to compile is a long one as we can see here http://pastebin.com/7hwc98Y4.

There is no __lib_freeres in Android's libc.so as objdump -tTx libc.so gives
nothing.

I tried to skip the __libc_freeres call but now then it complains about
"cannot locate getpagesize"   (output here -> http://pastebin.com/d3TNmSSn).
Also, I tried to substitute __libc_freeres with _vgnU_freeres but it gave me
the same error on "cannot locate getpagesize". So I look up getpagesize in
the .so and it's in there:

x0152532@unx0152532:~/remote-x0152532$ objdump -tT
valgrind/lib/valgrind/vgpreload_memcheck-arm-linux.so | grep getpagesize
00000000         *UND* 00000000 getpagesize
00000000      D  *UND* 00000000 getpagesize

p/s: I copy the same valgrind binary and test it on ARM Ubuntu machine and
it works like a charm. So this is either the Android's linker or Android's
libc, =)




> At the time that memcheck fails, which files are mapped?
>   $ cat /proc/<pid>/maps


Sorry but how to do cat /proc/<pid>/maps if the valgrind is already failed?



-- 
Wan Mohd Fairuz WAN ISMAIL
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to