Skip to content

[HWASan] hwasan_symbolize Fails to Distinguish Between Stripped and Unstripped ELFs with Identical Build IDs #135966

@StefanBossbaly

Description

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions