Skip to content

Commit 76548b0

Browse files
committed
Warn when no external symbolizers are found.
1 parent d41ba61 commit 76548b0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,13 @@ static void ChooseSymbolizerTools(IntrusiveList<SymbolizerTool> *list,
505505
}
506506

507507
# if SANITIZER_APPLE
508+
if (list.size() == 0) {
509+
Report(
510+
"WARN: No external symbolizers found. Symbols will be missing or "
511+
"unreliable.\n");
512+
Report(
513+
"HINT: Is PATH set? Does sandbox allow file-read of /usr/bin/atos?\n");
514+
}
508515
VReport(2, "Using dladdr symbolizer.\n");
509516
list->push_back(new (*allocator) DlAddrSymbolizer());
510517
# endif // SANITIZER_APPLE

0 commit comments

Comments
 (0)