[PATCH] Clear LD_PRELOAD when forking external symbolizer.

Alexey Samsonov samsonov at google.com
Tue Apr 23 05:58:15 PDT 2013


Can we do a "custom" implementation by dlsym("unsetenv") lookup (similar to
current SetEnv implementation)?


On Tue, Apr 23, 2013 at 4:42 PM, Kostya Serebryany <kcc at google.com> wrote:

>
>
> ================
> 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
>



-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130423/4de0f08e/attachment.html>


More information about the llvm-commits mailing list