[ASan] When re-executing the process on OS X, make sure we update the existing DYLD_I...
authorAlexander Potapenko <glider@google.com>
Wed, 13 Feb 2013 17:52:55 +0000 (17:52 +0000)
committerAlexander Potapenko <glider@google.com>
Wed, 13 Feb 2013 17:52:55 +0000 (17:52 +0000)
commitc5ba5ef3c57afabff927d516d83e1d908b224c6e
tree01519d7194d571b34fcf4ef729e31b61a1b50c76
parent2680b53d900e60ea1c285997e925d1da24ce0b4c
[ASan] When re-executing the process on OS X, make sure we update the existing DYLD_INSERT_LIBRARIES correctly.
Previously ASan used to hang in an exec loop, because it failed to overwrite the env var value
(see https://code.google.com/p/address-sanitizer/issues/detail?id=159).

llvm-svn: 175059
compiler-rt/lib/asan/asan_mac.cc
compiler-rt/lib/asan/lit_tests/Darwin/reexec-insert-libraries-env.cc [new file with mode: 0644]
compiler-rt/lib/asan/lit_tests/SharedLibs/darwin-dummy-shared-lib-so.cc [new file with mode: 0644]