[compiler-rt] r315770 - [Sanitizers] Always build libFuzzer with frame pointers.
Alex Shlyapnikov via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 13 14:57:43 PDT 2017
Author: alekseyshl
Date: Fri Oct 13 14:57:43 2017
New Revision: 315770
URL: http://llvm.org/viewvc/llvm-project?rev=315770&view=rev
Log:
[Sanitizers] Always build libFuzzer with frame pointers.
Lacking frame pointers, sanitized fuzzers collect bogus stack
traces and the set of stack traces grows indefinitely, leading to OOMs.
Modified:
compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
Modified: compiler-rt/trunk/lib/fuzzer/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/fuzzer/CMakeLists.txt?rev=315770&r1=315769&r2=315770&view=diff
==============================================================================
--- compiler-rt/trunk/lib/fuzzer/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/fuzzer/CMakeLists.txt Fri Oct 13 14:57:43 2017
@@ -32,6 +32,8 @@ CHECK_CXX_SOURCE_COMPILES("
set(LIBFUZZER_CFLAGS ${SANITIZER_COMMON_CFLAGS})
+append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer LIBFUZZER_CFLAGS)
+
if (CMAKE_CXX_FLAGS MATCHES "fsanitize-coverage")
list(APPEND LIBFUZZER_CFLAGS -fno-sanitize-coverage=trace-pc-guard,edge,trace-cmp,indirect-calls,8bit-counters)
endif()
More information about the llvm-commits
mailing list