Thanks for the clearification about statically link executables. How about
the message valgrind: m_ume.c: can't open interpreter
Since I don't know in detail how valgrind works in the backend, I only come
up that it comes from m_ume.c. Any idea on why it not capable to open the
intepreter (I'm assuming the interpreter is the one that will analyze the
executable?).
case PT_INTERP: {
char *buf = VG_(malloc)(ph->p_filesz+1);
Int j;
Int intfd;
Int baseaddr_set;
vg_assert(buf);
VG_(pread)(fd, buf, ph->p_filesz, ph->p_offset);
buf[ph->p_filesz] = '\0';
sres = VG_(open)(buf, VKI_O_RDONLY, 0);
if (sres.isError) {
VG_(printf)("valgrind: m_ume.c: can't open interpreter\n");
VG_(exit)(1);
}
intfd = sres.res;
Regards,
Fairuz
2011/4/21 Julian Seward <[email protected]>
>
> > # valgrind --tool=memcheck --leak-check=yes --show-reachable=yes
> > --num-callers=20 ./test-arm-static
> > ==2131== HEAP SUMMARY:
> > ==2131== in use at exit: 0 bytes in 0 blocks
> > ==2131== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
> > ==2131==
> > ==2131== All heap blocks were freed -- no leaks are possible
> > ==2131==
> > ==2131== For counts of detected and suppressed errors, rerun with: -v
> > ==2131== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
>
> This happens because the executable is statically linked, so Memcheck
> fails to intercept the malloc/free calls, and so it doesn't think that
> the program didn't do any malloc/free calls. Memcheck won't work
> properly in this situation.
>
> J
>
--
Wan Mohd Fairuz WAN ISMAIL
OMAP System Multimedia Integration Team (Trainee)
Texas Instrument France
[email protected]
+33 (0)4 93 22 20 16
+33 (0)6 43 46 13 39
15 Le Palais des Fleurs,
74 Boulevard Raymond Poincare,
06160 Juan les Pins, FRANCE.
http://www.watt.com.my
+6 017 2071591
------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been
demonstrated beyond question. Learn why your peers are replacing JEE
containers with lightweight application servers - and what you can gain
from the move. http://p.sf.net/sfu/vmware-sfemails
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users