[HWASan] deflake hwasan_symbolize test more.
authorFlorian Mayer <fmayer@google.com>
Tue, 10 May 2022 23:32:12 +0000 (16:32 -0700)
committerFlorian Mayer <fmayer@google.com>
Tue, 10 May 2022 23:57:44 +0000 (16:57 -0700)
Don't fail on corrupted ELF file on indexing. This happens because files
change in the directory from concurrent tests.

compiler-rt/lib/hwasan/scripts/hwasan_symbolize

index ba11ee4..c122387 100755 (executable)
@@ -267,6 +267,9 @@ class Symbolizer:
             bid = get_buildid(filename)
           except FileNotFoundError:
             continue
+          except Exception as e:
+            print("Failed to parse {}: {}".format(filename, e))
+            continue
           if bid is not None:
             self.__index[bid] = filename