Issue 135966
Summary [HWASan] hwasan_symbolize Fails to Distinguish Between Stripped and Unstripped ELFs with Identical Build IDs
Labels new issue
Assignees
Reporter StefanBossbaly
    ### 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
1. Run `hwasan_symbolize` with the `--index` flag on a directory containing both stripped and unstripped ELF files.
2. 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. 


_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to