|
From: Nicholas N. <nj...@ca...> - 2003-08-13 08:48:50
|
On Wed, 13 Aug 2003, Santeri Paavolainen wrote:
> VG_(mash_LD_PRELOAD_and_LD_LIBRARY_PATH): internal error:
>
> This is clearly caused by the fact that this program clears the
> environmental variables on startup (to known values).
>
> What are the environmental variables that should be preserved (not
> cleared) to allow valgrind to work for the program and the child
> processes (with --trace-children=yes)? (My guess: LD_PRELOAD and
> LD_LIBRARY_PATH.)
Yes: LD_PRELOAD and LD_LIBRARY_PATH, and only with --trace-children=yes.
I updated the FAQ, it now reads:
A12. One possible cause is that your program modifies its
environment variables, possibly including zeroing them
all. Valgrind relies on the LD_PRELOAD and LD_LIBRARY_PATH
variables, so zeroing them will break things.
As of 1.9.6, Valgrind only uses these variables with
--trace-children=yes, which should reduce the potential for
problems.
N
|