[PATCH] Clear LD_PRELOAD when forking external symbolizer.

Kostya Serebryany kcc at google.com
Tue Apr 23 05:42:08 PDT 2013



================
Comment at: lib/sanitizer_common/sanitizer_symbolizer_linux.cc:108
@@ -103,1 +107,3 @@
+    // that have nothing to do with us.
+    unsetenv("LD_PRELOAD");
     execl(path_to_symbolizer, path_to_symbolizer, (char*)0);
----------------
Will this work with bash? 
(bash has its own setenv/getenv. Maybe unsetenv too. I'd prefer to have a custom implementation if possible)


http://llvm-reviews.chandlerc.com/D704

BRANCH
  ld_preload_in_symbolizer

ARCANIST PROJECT
  compiler-rt



More information about the llvm-commits mailing list