|
From: Philippe W. <phi...@sk...> - 2016-02-22 22:38:23
|
On Mon, 2016-02-22 at 14:52 +0530, Anuta Mukherjee wrote:
Hello Anuta,
> When I try to run it, this is the error I'm getting:
>
>
> valgrind: m_redir.c:627 (vgPlain_redir_notify_new_DebugInfo): Assertion 'is_plausible_guest_addr(sym_avmas.main)' failed.
> Segmentation fault (core dumped)
>
One possible reason for the above is if the wrapping code is linked to
the tool,
rather than being in the tool preload file.
So, what you could do is (assuming you are on amd64, and that your
install is in the directory Inst):
nm Inst/lib/valgrind/vgpreload_helgrind-amd64-linux.so|grep -i pthreadZucreate
and the same command for your tool:
nm Inst/lib/valgrind/vgpreload_tracker-amd64-linux.so|grep -i pthreadZucreate
Both commands should output a line such as:
000000000000c0bc T _vgw00000ZZ_libpthreadZdsoZd0_pthreadZucreateZAZa
If the above is ok, then run with -v -v -v -d -d -d
The tracing should show something like:
--2338:2: initimg preload_string:
following by a line containing a.o. the aboslute path name of the
tracker preload .so.
If all the above is correct, then I have no idea.
Maybe compare a run of your tool and helgrind
with the options
-v -v -v -d -d -d --trace-redir=yes
The traces/differences might explain the problem.
Philippe
|