[PATCH] D60531: [asan_symbolize] Teach `asan_symbolize.py` to symbolicate using a module map
Dan Liew via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 12:28:14 PDT 2019
delcypher created this revision.
delcypher added reviewers: kubamracek, yln, samsonov, dvyukov, vitalybuka.
Herald added projects: LLVM, Sanitizers.
Herald added a subscriber: Sanitizers.
The use case here is to be able get the UUIDs of the modules that need
to be symbolicated so that external plugins can see them. This
information can be extracted from ASan reports if the `print_module_map`
ASan option is enabled. Currently printing of the module map is only
implemented on Darwin and so this is effectively a Darwin only feature
right now.
The module map hooks into symbolization using the new plugin
infrastructure. A new hook in `AsanSymbolizerPlugInProxy` (and in
`AsanSymbolizerPlugIn`) is also provided to allow external plugins to hook
into the module look up process. This will allow external plugins to
look up modules with knowledge of their UUID.
The new plug-in is currently stored in the `asan_symbolize.py` script.
We could potentially move this into a separate file in the future (to
reduce clutter) if we can come up with a policy for where to search for
plugins that should always get loaded.
rdar://problem/49476995
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D60531
Files:
lib/asan/scripts/asan_symbolize.py
test/asan/TestCases/Darwin/asan-symbolize-with-module-map.cc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60531.194567.patch
Type: text/x-patch
Size: 11096 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/4d2f68e3/attachment.bin>
More information about the llvm-commits
mailing list