|
From: Santeri P. <sa...@ss...> - 2003-08-13 09:46:46
|
Nicholas Nethercote wrote:
>Yes: LD_PRELOAD and LD_LIBRARY_PATH, and only with --trace-children=yes.
>
>
Apparently this is not completely true.. I set up the program to pass
LD_PRELOAD and LD_LIBRARY_PATH from the parent process, and this is
visible in debug output too (from the child):
debug[6918]:
LD_PRELOAD=/l/beta/lib/valgrind/vgskin_memcheck.so:/l/beta/lib/valgrind/valgrind.so:
debug[6918]: LD_LIBRARY_PATH=/l/beta/lib/valgrind:
But:
valgrind.so: Startup or configuration error:
Can't read options from env var VG_ARGS.
valgrind.so: Unable to start up properly. Giving up.
So VG_ARGS needs to be added also. I added that to the list of passed
env variables, and so:
debug[7076]: VG_ARGS=
--suppressions=/l/beta/lib/valgrind/default.supp --trace-children=yes
--num-callers=32 --logfile=/l/xxtest/xxtest.log
And now everything works fine.
--
sa...@ss... I have no opinions, since I cannot express any, after all.
If you think you saw an opinion, contact your optometrist.
|