On Thu, 2014-11-27 at 23:06 +0300, Mikhail Baikov wrote:

> ==1654== Invalid read of size 4
> ==1654==    at 0x489B248: __uClibc_main (in /lib/libuClibc-0.9.32.1.so)
> ==1654==  Address 0xbdd74b44 is on thread 1's stack
> ==1654==  20 bytes below stack pointer
> ==1654==
> I also have
> # valgrind -v -v -v -d -d -d --trace-redir=yes /bin/true
> log but it's really big to attach it here.
> 
> And i really can't understand where is the problem because I tried to 
> build trunk valgring (which fails with the same errors), tried 3.10.0 
> with patches from buildroot with the same result.
> 
> And now I don't know where to dig.
A possible cause of the above problem is that valgrind does
not recognise the name of the uClibc dynamic loader.
There is some code that handles specially the dynamic loader.
See coregrind/m_redir.c line 1363 for the expected names on arm
or some similar names in include/pub_tool_redir.h

It might also just be "normal" errors, that are suppressed
by the standard valgrind suppression files, but that in your
case are not matching due to the uClibc use ?
See e.g. default.supp (generated from various *.supp files).
I see no uclibc specific files there, which makes me believe
valgrind is not (yet) fine tuned to be used with uclibc.

For what concerns the error message
   /bin/true: can't resolve symbol '__libc_freeres'
again that is probably caused by uClib, which I guess does not
provide __libc_freeres
To avoid this msg, you can use --run-libc-freeres=no

Note however that I see in coregrind/vg_preloaded.c (line 59)
that the call should not be done when valgrind is "compiled"
for UCLIBC.
So, might be good to verify how e.g. vg_preloaded.c was
compiled.

Philippe



------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to