[PATCH] D30504: [sanitizer] Bail out with warning if user dlopens shared library with RTLD_DEEPBIND flag

Maxim Ostapenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 2 00:11:12 PST 2017


m.ostapenko marked 9 inline comments as done.
m.ostapenko added inline comments.


================
Comment at: lib/sanitizer_common/sanitizer_common.cc:485
+           "). If you want to run your library under sanitizers please remove "
+           "RTLD_DEEPBIND from dlopen flags.\n");
+    Die();
----------------
m.ostapenko wrote:
> ygribov wrote:
> > Does it make sense to print backtrace?
> Perhaps. At least we should print library name here. 
sanitizer_common doesn't have unified stacktrace printing routine (e.g. GET_STACK_TRACE_FATAL), every tool defines it by itself. Thus I don't print backtrace here to avoid unnecessary complexity.


Repository:
  rL LLVM

https://reviews.llvm.org/D30504





More information about the llvm-commits mailing list