I'm currently writing a program that uses dlopen() to play with shared
libs, and valgrind is giving me some errors, the first of which is an
"Invalid read of size 4" error.
I'm pretty sure I'm not doing anything wrong in my code. I've checked as
much as I can that I'm building both the library and the code that
accesses it properly. I've checked the BTS and couldn't find any mention
of this problem there. I've also checked the list archives, and
the best results (numbers 1 and 4 in the search I got) were
unanswered and what looks like user error (I'm not getting SEGV).
Attached is a minimal testcase that exhibits the error. It's a shell
script that writes two tiny (< 10 line) c files, compiles them and runs
the result. Note that the program appears to run fine and returns the
I'm running "valgrind-3.2.0-Debian" on an up-to-date Debian testing
system. (libc6 2.3.6-15, kernel 2.6.15-8, more system info is available
Any help, including independent confirmation, fixes to gcc invocation,
fixes to code, pointers to other lists/btss, gratefully received.
To describe religions as mind viruses is sometimes interpreted as
contemptuous or even hostile. It is both.
-- Richard Dawkins - "A Devil's Chaplain"
I want to load valgring into the target embedded board, PPC with
montavista linux. the target board contains only 32 MB RAM. is there is a way to
reduce the size of valgrind binary below 10 MB .