[PATCH] D46605: [libFuzzer] Guard symbolization with try-lock.

Matt Morehouse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 8 15:07:32 PDT 2018


morehouse created this revision.
morehouse added a reviewer: kcc.

When out-of-memory or timeout occurs, threads can be stopped during
symbolization, thereby causing a deadlock when the OOM/TO handlers
attempt symbolization.  We avoid this deadlock by skipping symbolization
if another thread is symbolizing.


https://reviews.llvm.org/D46605

Files:
  compiler-rt/lib/fuzzer/FuzzerLoop.cpp
  compiler-rt/lib/fuzzer/FuzzerUtil.cpp
  compiler-rt/lib/fuzzer/FuzzerUtil.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46605.145795.patch
Type: text/x-patch
Size: 4503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180508/9f03d102/attachment.bin>


More information about the llvm-commits mailing list