On Thu, 2012-11-29 at 07:30 -0800, Wiser, Tyson wrote:
> >Can you try with -v and/or with --trace-redir=yes ?
> >That might give some lights about the problem ?
> 
> I used both options and it produced the following output.  Thanks for taking 
> the time to look at this.
There is an unexpected (or rather missing) behaviour in the trace you have 
provided.
You should find lines such as:
--3143-- Reading syms from 
/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_core-amd64-linux.so
...
--3143-- Reading syms from 
/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_massif-amd64-linux.so

Without these, there is no chance to have replacements being done.

Maybe an installation problem ?
Can you try:
valgrind --tool=massif --soname-synonyms=somalloc=NONE --trace-redir=yes \
   -v -v -v -d -d -d ./MyProg 2>&1 | grep -i preload

This should give something like:
--31179:2:initimg    preload_string:
--31179:2:initimg      
"/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_core-amd64-linux.so:/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_massif-amd64-linux.so"
--31179-- Reading syms from 
/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_core-amd64-linux.so
--31179--    TOPSPECS of soname NONE filename 
/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_core-amd64-linux.so
--31179-- Reading syms from 
/home/philippe/valgrind/valgrind-3.8.1/install/lib/valgrind/vgpreload_massif-amd64-linux.so

You should then check that the files referenced by initimg exist and have 
correct permissions (typically -rwxr-xr-x).
If initimg is correct and files are existing and have correct permission, then 
mystery is increasing.
You could try the same with memcheck and see if the preload for memcheck is 
working (and malloc replacement
is properly done).

You could also verify if the regression test for the static malloc replacement 
works by doing:
  cd memcheck/tests/
  make static_malloc
  algrind --tool=massif --soname-synonyms=somalloc=NONE --trace-redir=yes \
   -v -v -v -d -d -d ./static_malloc 2>&1 | grep -i preload

Philippe



------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to