Open
Description
Description
When running the hwasan_symbolize
script with the --index
flag, the script does not properly differentiate between stripped and unstripped ELF files that share the same build ID. If the script encounters and indexes a stripped ELF first, it will ignore the unstripped ELF (which contains debugging symbols) when that file appears later in the directory traversal. As a result, crash stacks are only partially symbolicated.
Repro Steps
- Run
hwasan_symbolize
with the--index
flag on a directory containing both stripped and unstripped ELF files. - Observe that the script will sometime select the stripped ELF for symbolication, ignoring the unstripped ELF.
Expected Behavior
hwasan_symbolize
should use the unstripped ELF for symbolication even if a stripped ELF with the same build ID appears first in the directory traversal. Stripped ELFs should be ignored as they do not contain any information useful to the symbolizer.