On 05/21/2014 05:24 PM, Andrejs Bogdanovs wrote:
> Hi Julian!
> 
> Soname for malloc intercepts should be one defined in VG_Z_LIBC_SONAME?
> include/pub_tool_redir.h:244:#  define  VG_Z_LIBC_SONAME  libcZdsoZa
>            // libc.so*
> And soname for libuClibc-0.9.33.2.so is libc.so.0:
> [andrejs@arch ~]$ readelf -a ./dev_libs/lib/libuClibc-0.9.33.2.so | grep 
> soname
>  0x0000000e (SONAME)                     Library soname: [libc.so.0]

That soname looks ok, then.  But from the log you posted
later, it is clear that there is no malloc intercepting happening.

For malloc intercepting to work, the files vgpreload_core-arm-linux.so
and vgpreload_memcheck-amd64-linux.so need to be loaded into the process.

Comparing your log with a run with a glibc based system, I see this

  Reading syms from [..]/vgpreload_core-amd64-linux.so
  Reading syms from [..]/vgpreload_memcheck-amd64-linux.so

which is missing in your log.

Does uCLibc implement LD_PRELOAD?  I think that is how Valgrind causes
those two objects to be loaded into the process.

J



------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to