A script to symbolize hwasan reports after the fact using unstripped
binaries. Supports stack-based reports. Requires llvm-symbolizer
(addr2line is not an option).
Details
- Reviewers
pcc hctim - Commits
- rG9ef451d1fdaa: [hwasan] Offline symbolization script.
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
LGTM with a couple comments
compiler-rt/lib/hwasan/scripts/hwasan_symbolize | ||
---|---|---|
120 | I think a lot of .*?'s here can be replaced with \s* for stability: (\s*)#(\d+)\s*(0x[0-9a-f]+)\s*\((.*)\+(0x[0-9a-f]+)\) | |
185 | Nit: extra line | |
220 | Needs to be updated to talk about PATH | |
248 | We'll miss llvm-symbolizer in a user's PATH here. |
compiler-rt/lib/hwasan/scripts/hwasan_symbolize | ||
---|---|---|
120 | Not really. The first one needs to accept any prefix, like timestamp in adb logcat. |
Should this file be hwasan_symbolize.py?