Skip to content

Commit

Permalink
sanitizer_common: be more verbose, when symbolizer is not found.
Browse files Browse the repository at this point in the history
Summary:
I have othen been stuck when I got an ASAN report, but no symbols
are resolved. The reasons might be different, and it always 
requires a bit of detective work to track down.

These more verbose error messages will help the users like me.

Reviewers: samsonov

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D14135

llvm-svn: 251553
  • Loading branch information
Ivan Krasin committed Oct 28, 2015
1 parent 522ccb9 commit 1fe5fab
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -446,14 +446,16 @@ static void ChooseSymbolizerTools(IntrusiveList<SymbolizerTool> *list,

if (SymbolizerTool *tool = ChooseExternalSymbolizer(allocator)) {
list->push_back(tool);
} else {
VReport(2, "No internal or external symbolizer found.\n");
}

#if SANITIZER_MAC
VReport(2, "Using dladdr symbolizer.\n");
list->push_back(new(*allocator) DlAddrSymbolizer());
#endif // SANITIZER_MAC

if (list->size() == 0) {
Report("WARNING: no internal or external symbolizer found.\n");
}
}

Symbolizer *Symbolizer::PlatformInit() {
Expand Down

0 comments on commit 1fe5fab

Please sign in to comment.