Fix problem with trace-children=yes when using a tool which replaces
malloc.  The problem was that LD_PRELOAD was being left set with
our replacement .so files, which meant they were being applied to
stage1/stage2.  This caused malloc to fail and a subsequent SIGSEGV.
This change unconditionally removes all of Valgrind's special environment
before each execve, since it will be replaced as needed by the child
Valgrind.


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2184 a5019735-40e9-0310-863c-91ae7b9d1cf9
1 file changed