Skip to content

Commit 29d3ba7

Browse files
committed
[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. llvm-svn: 315770
1 parent a7e5c84 commit 29d3ba7

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

compiler-rt/lib/fuzzer/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CHECK_CXX_SOURCE_COMPILES("
3232

3333
set(LIBFUZZER_CFLAGS ${SANITIZER_COMMON_CFLAGS})
3434

35+
append_list_if(COMPILER_RT_HAS_OMIT_FRAME_POINTER_FLAG -fno-omit-frame-pointer LIBFUZZER_CFLAGS)
36+
3537
if (CMAKE_CXX_FLAGS MATCHES "fsanitize-coverage")
3638
list(APPEND LIBFUZZER_CFLAGS -fno-sanitize-coverage=trace-pc-guard,edge,trace-cmp,indirect-calls,8bit-counters)
3739
endif()

0 commit comments

Comments
 (0)