[PATCH] [compiler-rt] Add AtosSymbolizer and DlAddrSymbolizer as fallbacks for OS X

Kuba Brecka kuba.brecka at gmail.com
Thu Mar 12 04:38:57 PDT 2015


This patch changes the symbolizer chain on OS X (which currently only uses 1 symbolizer at most) to use this behavior:

* By default, use LLVMSymbolizer -> AtosSymbolizer -> DlAddrSymbolizer.
* If the llvm-symbolizer binary is not found, use AtosSymbolizer -> DlAddrSymbolizer.
* If the user specifies ASAN_SYMBOLIZER_PATH=.../atos, then use AtosSymbolizer -> DlAddrSymbolizer.

There are several reasons for these fallbacks, e.g. when `fork` is disabled or when the llvm-symbolizer is just not present or found on the system.

http://reviews.llvm.org/D8285

Files:
  lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc
  test/asan/TestCases/Darwin/atos-symbolizer.cc
  test/asan/TestCases/Darwin/dyld-root-path.cc
  test/asan/TestCases/Darwin/sandbox-symbolizer.cc
  test/asan/TestCases/Darwin/suppressions-sandbox.cc

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8285.21816.patch
Type: text/x-patch
Size: 8730 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150312/70a610bd/attachment.bin>


More information about the llvm-commits mailing list