Fix bug where we'd try symbolize a second time with the same arguments.
authorDan Liew <dan@su-root.co.uk>
Tue, 11 Dec 2018 12:43:44 +0000 (12:43 +0000)
committerDan Liew <dan@su-root.co.uk>
Tue, 11 Dec 2018 12:43:44 +0000 (12:43 +0000)
Summary:
Fix bug where we'd try symbolize a second time with the same arguments even though symbolization failed the first time.

This looks like a long standing typo given that the guard for trying
symbolization again is to only try it if symbolization failed using
`binary` and `original_binary != binary`.

Reviewers: kubamracek, glider, samsonov

Subscribers: #sanitizers, llvm-commits

Differential Revision: https://reviews.llvm.org/D55504

llvm-svn: 348841

compiler-rt/lib/asan/scripts/asan_symbolize.py

index 13e5f0c..2dbb052 100755 (executable)
@@ -477,7 +477,7 @@ class SymbolizationLoop(object):
     symbolized_line = self.symbolize_address(addr, binary, offset, arch)
     if not symbolized_line:
       if original_binary != binary:
-        symbolized_line = self.symbolize_address(addr, binary, offset, arch)
+        symbolized_line = self.symbolize_address(addr, original_binary, offset, arch)
     return self.get_symbolized_lines(symbolized_line)