Re: [Valgrind-users] Valgrind doesn't detect leaks on Linux/ARM with uClibc

2014-05-22 Thread Andrejs Bogdanovs
On 5/22/14, Andrejs Bogdanovs wrote: > On 5/22/14, Julian Seward wrote: >> >> >> Does uCLibc implement LD_PRELOAD? I think that is how Valgrind causes >> those two objects to be loaded into the process. >> >> > > tl;dr uclibc must be configured with LD_PRELOAD in order for > valgrind's memcheck to

Re: [Valgrind-users] Valgrind doesn't detect leaks on Linux/ARM with uClibc

2014-05-22 Thread Andrejs Bogdanovs
On 5/22/14, Julian Seward wrote: > > 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 int

Re: [Valgrind-users] Valgrind doesn't detect leaks on Linux/ARM with uClibc

2014-05-22 Thread Julian Seward
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@