HomePhabricator

[libFuzzer] Always print DSO map on Fuchsia libFuzzer launch

Description

[libFuzzer] Always print DSO map on Fuchsia libFuzzer launch

Fuchsia doesn't have /proc/id/maps, so it relies on the kernel logging system
to provide the DSO map to be able to symbolize in the context of ASLR. The DSO
map is logged automatically on Fuchsia when encountering a crash or writing to
the sanitizer log for the first time in a process. There are several cases
where libFuzzer doesn't encounter a crash, e.g. on timeouts, OOMs, and when
configured to print new PCs as they become covered, to name a few. Therefore,
this change always writes to the sanitizer log on startup to ensure the DSO map
is available in the log.

Author: aarongreen
Differential Revision: https://reviews.llvm.org/D66233

Details

Committed
jakehehrlichSep 16 2019, 5:34 PM
Differential Revision
D66233: Always print DSO map on Fuchsia libFuzzer launch
Parents
rL372055: [OPENMP] Fix the test, NFC
Branches
Unknown
Tags
Unknown