Which options should GCC ASAN be used with?
Issue
- Which options should GCC ASAN be used with?
- What options are required with
-fsanitize=address
to achieve stable and perfect call stacks? - Clang suggest
-O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls
at https://clang.llvm.org/docs/AddressSanitizer.html#usage but GCC does not have any such recommendation at https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html
Environment
- Red Hat Enterprise Linux
- Red Hat Developer Toolset (DTS)
- GNU Compiler Collection (GCC)
- Address Sanitizer (ASAN)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.