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.
return nullptr here