xref: /freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_flags.inc (revision 297eecfb02bb25902531dbb5c3b9a88caf8adf29)
10b57cec5SDimitry Andric//===-- sanitizer_flags.h ---------------------------------------*- C++ -*-===//
20b57cec5SDimitry Andric//
30b57cec5SDimitry Andric// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
40b57cec5SDimitry Andric// See https://llvm.org/LICENSE.txt for license information.
50b57cec5SDimitry Andric// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
60b57cec5SDimitry Andric//
70b57cec5SDimitry Andric//===----------------------------------------------------------------------===//
80b57cec5SDimitry Andric//
90b57cec5SDimitry Andric// This file describes common flags available in all sanitizers.
100b57cec5SDimitry Andric//
110b57cec5SDimitry Andric//===----------------------------------------------------------------------===//
120b57cec5SDimitry Andric
130b57cec5SDimitry Andric#ifndef COMMON_FLAG
140b57cec5SDimitry Andric#error "Define COMMON_FLAG prior to including this file!"
150b57cec5SDimitry Andric#endif
160b57cec5SDimitry Andric
170b57cec5SDimitry Andric// COMMON_FLAG(Type, Name, DefaultValue, Description)
180b57cec5SDimitry Andric// Supported types: bool, const char *, int, uptr.
190b57cec5SDimitry Andric// Default value must be a compile-time constant.
200b57cec5SDimitry Andric// Description must be a string literal.
210b57cec5SDimitry Andric
220b57cec5SDimitry AndricCOMMON_FLAG(
230b57cec5SDimitry Andric    bool, symbolize, true,
240b57cec5SDimitry Andric    "If set, use the online symbolizer from common sanitizer runtime to turn "
250b57cec5SDimitry Andric    "virtual addresses to file/line locations.")
260b57cec5SDimitry AndricCOMMON_FLAG(
270b57cec5SDimitry Andric    const char *, external_symbolizer_path, nullptr,
280b57cec5SDimitry Andric    "Path to external symbolizer. If empty, the tool will search $PATH for "
290b57cec5SDimitry Andric    "the symbolizer.")
300b57cec5SDimitry AndricCOMMON_FLAG(
310b57cec5SDimitry Andric    bool, allow_addr2line, false,
320b57cec5SDimitry Andric    "If set, allows online symbolizer to run addr2line binary to symbolize "
330b57cec5SDimitry Andric    "stack traces (addr2line will only be used if llvm-symbolizer binary is "
340b57cec5SDimitry Andric    "unavailable.")
350b57cec5SDimitry AndricCOMMON_FLAG(const char *, strip_path_prefix, "",
360b57cec5SDimitry Andric            "Strips this prefix from file paths in error reports.")
370b57cec5SDimitry AndricCOMMON_FLAG(bool, fast_unwind_on_check, false,
380b57cec5SDimitry Andric            "If available, use the fast frame-pointer-based unwinder on "
390b57cec5SDimitry Andric            "internal CHECK failures.")
400b57cec5SDimitry AndricCOMMON_FLAG(bool, fast_unwind_on_fatal, false,
410b57cec5SDimitry Andric            "If available, use the fast frame-pointer-based unwinder on fatal "
420b57cec5SDimitry Andric            "errors.")
43e8d8bef9SDimitry Andric// ARM thumb/thumb2 frame pointer is inconsistent on GCC and Clang [1]
44e8d8bef9SDimitry Andric// and fast-unwider is also unreliable with mixing arm and thumb code [2].
45e8d8bef9SDimitry Andric// [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92172
46e8d8bef9SDimitry Andric// [2] https://bugs.llvm.org/show_bug.cgi?id=44158
47e8d8bef9SDimitry AndricCOMMON_FLAG(bool, fast_unwind_on_malloc,
48e8d8bef9SDimitry Andric            !(SANITIZER_LINUX && !SANITIZER_ANDROID && SANITIZER_ARM),
490b57cec5SDimitry Andric            "If available, use the fast frame-pointer-based unwinder on "
500b57cec5SDimitry Andric            "malloc/free.")
510b57cec5SDimitry AndricCOMMON_FLAG(bool, handle_ioctl, false, "Intercept and handle ioctl requests.")
520b57cec5SDimitry AndricCOMMON_FLAG(int, malloc_context_size, 1,
530b57cec5SDimitry Andric            "Max number of stack frames kept for each allocation/deallocation.")
540b57cec5SDimitry AndricCOMMON_FLAG(
55e8d8bef9SDimitry Andric    const char *, log_path, nullptr,
560b57cec5SDimitry Andric    "Write logs to \"log_path.pid\". The special values are \"stdout\" and "
57e8d8bef9SDimitry Andric    "\"stderr\". If unspecified, defaults to \"stderr\".")
580b57cec5SDimitry AndricCOMMON_FLAG(
590b57cec5SDimitry Andric    bool, log_exe_name, false,
600b57cec5SDimitry Andric    "Mention name of executable when reporting error and "
610b57cec5SDimitry Andric    "append executable name to logs (as in \"log_path.exe_name.pid\").")
62fe6060f1SDimitry AndricCOMMON_FLAG(const char *, log_suffix, nullptr,
63fe6060f1SDimitry Andric            "String to append to log file name, e.g. \".txt\".")
640b57cec5SDimitry AndricCOMMON_FLAG(
6581ad6265SDimitry Andric    bool, log_to_syslog, (bool)SANITIZER_ANDROID || (bool)SANITIZER_APPLE,
660b57cec5SDimitry Andric    "Write all sanitizer output to syslog in addition to other means of "
670b57cec5SDimitry Andric    "logging.")
680b57cec5SDimitry AndricCOMMON_FLAG(
690b57cec5SDimitry Andric    int, verbosity, 0,
700b57cec5SDimitry Andric    "Verbosity level (0 - silent, 1 - a bit of output, 2+ - more output).")
71753f127fSDimitry AndricCOMMON_FLAG(bool, strip_env, true,
720b57cec5SDimitry Andric            "Whether to remove the sanitizer from DYLD_INSERT_LIBRARIES to "
73753f127fSDimitry Andric            "avoid passing it to children on Apple platforms. Default is true.")
74753f127fSDimitry AndricCOMMON_FLAG(bool, verify_interceptors, true,
75753f127fSDimitry Andric            "Verify that interceptors are working on Apple platforms. Default "
76753f127fSDimitry Andric            "is true.")
7781ad6265SDimitry AndricCOMMON_FLAG(bool, detect_leaks, !SANITIZER_APPLE, "Enable memory leak detection.")
780b57cec5SDimitry AndricCOMMON_FLAG(
790b57cec5SDimitry Andric    bool, leak_check_at_exit, true,
800b57cec5SDimitry Andric    "Invoke leak checking in an atexit handler. Has no effect if "
810b57cec5SDimitry Andric    "detect_leaks=false, or if __lsan_do_leak_check() is called before the "
820b57cec5SDimitry Andric    "handler has a chance to run.")
830b57cec5SDimitry AndricCOMMON_FLAG(bool, allocator_may_return_null, false,
840b57cec5SDimitry Andric            "If false, the allocator will crash instead of returning 0 on "
850b57cec5SDimitry Andric            "out-of-memory.")
860b57cec5SDimitry AndricCOMMON_FLAG(bool, print_summary, true,
870b57cec5SDimitry Andric            "If false, disable printing error summaries in addition to error "
880b57cec5SDimitry Andric            "reports.")
890b57cec5SDimitry AndricCOMMON_FLAG(int, print_module_map, 0,
90e8d8bef9SDimitry Andric            "Print the process module map where supported (0 - don't print, "
91e8d8bef9SDimitry Andric            "1 - print only once before process exits, 2 - print after each "
92e8d8bef9SDimitry Andric            "report).")
930b57cec5SDimitry AndricCOMMON_FLAG(bool, check_printf, true, "Check printf arguments.")
940b57cec5SDimitry Andric#define COMMON_FLAG_HANDLE_SIGNAL_HELP(signal) \
950b57cec5SDimitry Andric    "Controls custom tool's " #signal " handler (0 - do not registers the " \
960b57cec5SDimitry Andric    "handler, 1 - register the handler and allow user to set own, " \
970b57cec5SDimitry Andric    "2 - registers the handler and block user from changing it). "
980b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_segv, kHandleSignalYes,
990b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGSEGV))
1000b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_sigbus, kHandleSignalYes,
1010b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGBUS))
1020b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_abort, kHandleSignalNo,
1030b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGABRT))
1040b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_sigill, kHandleSignalNo,
1050b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGILL))
1060b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_sigtrap, kHandleSignalNo,
1070b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGTRAP))
1080b57cec5SDimitry AndricCOMMON_FLAG(HandleSignalMode, handle_sigfpe, kHandleSignalYes,
1090b57cec5SDimitry Andric            COMMON_FLAG_HANDLE_SIGNAL_HELP(SIGFPE))
1100b57cec5SDimitry Andric#undef COMMON_FLAG_HANDLE_SIGNAL_HELP
1110b57cec5SDimitry AndricCOMMON_FLAG(bool, allow_user_segv_handler, true,
1120b57cec5SDimitry Andric            "Deprecated. True has no effect, use handle_sigbus=1. If false, "
1130b57cec5SDimitry Andric            "handle_*=1 will be upgraded to handle_*=2.")
1140b57cec5SDimitry AndricCOMMON_FLAG(bool, use_sigaltstack, true,
1150b57cec5SDimitry Andric            "If set, uses alternate stack for signal handling.")
1160b57cec5SDimitry AndricCOMMON_FLAG(bool, detect_deadlocks, true,
1170b57cec5SDimitry Andric            "If set, deadlock detection is enabled.")
1180b57cec5SDimitry AndricCOMMON_FLAG(
1190b57cec5SDimitry Andric    uptr, clear_shadow_mmap_threshold, 64 * 1024,
1200b57cec5SDimitry Andric    "Large shadow regions are zero-filled using mmap(NORESERVE) instead of "
1210b57cec5SDimitry Andric    "memset(). This is the threshold size in bytes.")
1220b57cec5SDimitry AndricCOMMON_FLAG(const char *, color, "auto",
1230b57cec5SDimitry Andric            "Colorize reports: (always|never|auto).")
1240b57cec5SDimitry AndricCOMMON_FLAG(
1250b57cec5SDimitry Andric    bool, legacy_pthread_cond, false,
1260b57cec5SDimitry Andric    "Enables support for dynamic libraries linked with libpthread 2.2.5.")
1270b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_tls_get_addr, false, "Intercept __tls_get_addr.")
1280b57cec5SDimitry AndricCOMMON_FLAG(bool, help, false, "Print the flag descriptions.")
1290b57cec5SDimitry AndricCOMMON_FLAG(uptr, mmap_limit_mb, 0,
1300b57cec5SDimitry Andric            "Limit the amount of mmap-ed memory (excluding shadow) in Mb; "
1310b57cec5SDimitry Andric            "not a user-facing flag, used mosly for testing the tools")
1320b57cec5SDimitry AndricCOMMON_FLAG(uptr, hard_rss_limit_mb, 0,
1330b57cec5SDimitry Andric            "Hard RSS limit in Mb."
1340b57cec5SDimitry Andric            " If non-zero, a background thread is spawned at startup"
1350b57cec5SDimitry Andric            " which periodically reads RSS and aborts the process if the"
1360b57cec5SDimitry Andric            " limit is reached")
1370b57cec5SDimitry AndricCOMMON_FLAG(uptr, soft_rss_limit_mb, 0,
1380b57cec5SDimitry Andric            "Soft RSS limit in Mb."
1390b57cec5SDimitry Andric            " If non-zero, a background thread is spawned at startup"
1400b57cec5SDimitry Andric            " which periodically reads RSS. If the limit is reached"
1410b57cec5SDimitry Andric            " all subsequent malloc/new calls will fail or return NULL"
1420b57cec5SDimitry Andric            " (depending on the value of allocator_may_return_null)"
1430b57cec5SDimitry Andric            " until the RSS goes below the soft limit."
1440b57cec5SDimitry Andric            " This limit does not affect memory allocations other than"
1450b57cec5SDimitry Andric            " malloc/new.")
146480093f4SDimitry AndricCOMMON_FLAG(uptr, max_allocation_size_mb, 0,
147480093f4SDimitry Andric            "If non-zero, malloc/new calls larger than this size will return "
148480093f4SDimitry Andric            "nullptr (or crash if allocator_may_return_null=false).")
1490b57cec5SDimitry AndricCOMMON_FLAG(bool, heap_profile, false, "Experimental heap profiler, asan-only")
1500b57cec5SDimitry AndricCOMMON_FLAG(s32, allocator_release_to_os_interval_ms,
1510b57cec5SDimitry Andric            ((bool)SANITIZER_FUCHSIA || (bool)SANITIZER_WINDOWS) ? -1 : 5000,
1520b57cec5SDimitry Andric            "Only affects a 64-bit allocator. If set, tries to release unused "
1530b57cec5SDimitry Andric            "memory to the OS, but not more often than this interval (in "
1540b57cec5SDimitry Andric            "milliseconds). Negative values mean do not attempt to release "
1550b57cec5SDimitry Andric            "memory to the OS.\n")
1560b57cec5SDimitry AndricCOMMON_FLAG(bool, can_use_proc_maps_statm, true,
1570b57cec5SDimitry Andric            "If false, do not attempt to read /proc/maps/statm."
1580b57cec5SDimitry Andric            " Mostly useful for testing sanitizers.")
1590b57cec5SDimitry AndricCOMMON_FLAG(
1600b57cec5SDimitry Andric    bool, coverage, false,
1610b57cec5SDimitry Andric    "If set, coverage information will be dumped at program shutdown (if the "
1620b57cec5SDimitry Andric    "coverage instrumentation was enabled at compile time).")
1630b57cec5SDimitry AndricCOMMON_FLAG(const char *, coverage_dir, ".",
1640b57cec5SDimitry Andric            "Target directory for coverage dumps. Defaults to the current "
1650b57cec5SDimitry Andric            "directory.")
166349cc55cSDimitry AndricCOMMON_FLAG(const char *, cov_8bit_counters_out, "",
167349cc55cSDimitry Andric    "If non-empty, write 8bit counters to this file. ")
168349cc55cSDimitry AndricCOMMON_FLAG(const char *, cov_pcs_out, "",
169349cc55cSDimitry Andric    "If non-empty, write the coverage pc table to this file. ")
1700b57cec5SDimitry AndricCOMMON_FLAG(bool, full_address_space, false,
1710b57cec5SDimitry Andric            "Sanitize complete address space; "
1720b57cec5SDimitry Andric            "by default kernel area on 32-bit platforms will not be sanitized")
1730b57cec5SDimitry AndricCOMMON_FLAG(bool, print_suppressions, true,
1740b57cec5SDimitry Andric            "Print matched suppressions at exit.")
1750b57cec5SDimitry AndricCOMMON_FLAG(
1760b57cec5SDimitry Andric    bool, disable_coredump, (SANITIZER_WORDSIZE == 64) && !SANITIZER_GO,
1770b57cec5SDimitry Andric    "Disable core dumping. By default, disable_coredump=1 on 64-bit to avoid"
1780b57cec5SDimitry Andric    " dumping a 16T+ core file. Ignored on OSes that don't dump core by"
1790b57cec5SDimitry Andric    " default and for sanitizers that don't reserve lots of virtual memory.")
1800b57cec5SDimitry AndricCOMMON_FLAG(bool, use_madv_dontdump, true,
1810b57cec5SDimitry Andric          "If set, instructs kernel to not store the (huge) shadow "
1820b57cec5SDimitry Andric          "in core file.")
1830b57cec5SDimitry AndricCOMMON_FLAG(bool, symbolize_inline_frames, true,
1840b57cec5SDimitry Andric            "Print inlined frames in stacktraces. Defaults to true.")
1850eae32dcSDimitry AndricCOMMON_FLAG(bool, demangle, true, "Print demangled symbols.")
1860b57cec5SDimitry AndricCOMMON_FLAG(bool, symbolize_vs_style, false,
1870b57cec5SDimitry Andric            "Print file locations in Visual Studio style (e.g: "
1880b57cec5SDimitry Andric            " file(10,42): ...")
1890b57cec5SDimitry AndricCOMMON_FLAG(int, dedup_token_length, 0,
1900b57cec5SDimitry Andric            "If positive, after printing a stack trace also print a short "
1910b57cec5SDimitry Andric            "string token based on this number of frames that will simplify "
1920b57cec5SDimitry Andric            "deduplication of the reports. "
1930b57cec5SDimitry Andric            "Example: 'DEDUP_TOKEN: foo-bar-main'. Default is 0.")
1940b57cec5SDimitry AndricCOMMON_FLAG(const char *, stack_trace_format, "DEFAULT",
1950b57cec5SDimitry Andric            "Format string used to render stack frames. "
1960b57cec5SDimitry Andric            "See sanitizer_stacktrace_printer.h for the format description. "
1970b57cec5SDimitry Andric            "Use DEFAULT to get default format.")
1980eae32dcSDimitry AndricCOMMON_FLAG(int, compress_stack_depot, 0,
1990eae32dcSDimitry Andric            "Compress stack depot to save memory.")
2000b57cec5SDimitry AndricCOMMON_FLAG(bool, no_huge_pages_for_shadow, true,
2010b57cec5SDimitry Andric            "If true, the shadow is not allowed to use huge pages. ")
2020b57cec5SDimitry AndricCOMMON_FLAG(bool, strict_string_checks, false,
2030b57cec5SDimitry Andric            "If set check that string arguments are properly null-terminated")
2040b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strstr, true,
2050b57cec5SDimitry Andric            "If set, uses custom wrappers for strstr and strcasestr functions "
2060b57cec5SDimitry Andric            "to find more errors.")
2070b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strspn, true,
2080b57cec5SDimitry Andric            "If set, uses custom wrappers for strspn and strcspn function "
2090b57cec5SDimitry Andric            "to find more errors.")
2100b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strtok, true,
2110b57cec5SDimitry Andric            "If set, uses a custom wrapper for the strtok function "
2120b57cec5SDimitry Andric            "to find more errors.")
2130b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strpbrk, true,
2140b57cec5SDimitry Andric            "If set, uses custom wrappers for strpbrk function "
2150b57cec5SDimitry Andric            "to find more errors.")
216e8d8bef9SDimitry AndricCOMMON_FLAG(
217e8d8bef9SDimitry Andric    bool, intercept_strcmp, true,
218e8d8bef9SDimitry Andric    "If set, uses custom wrappers for strcmp functions to find more errors.")
2190b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strlen, true,
2200b57cec5SDimitry Andric            "If set, uses custom wrappers for strlen and strnlen functions "
2210b57cec5SDimitry Andric            "to find more errors.")
2220b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strndup, true,
2230b57cec5SDimitry Andric            "If set, uses custom wrappers for strndup functions "
2240b57cec5SDimitry Andric            "to find more errors.")
2250b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_strchr, true,
2260b57cec5SDimitry Andric            "If set, uses custom wrappers for strchr, strchrnul, and strrchr "
2270b57cec5SDimitry Andric            "functions to find more errors.")
2280b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_memcmp, true,
2290b57cec5SDimitry Andric            "If set, uses custom wrappers for memcmp function "
2300b57cec5SDimitry Andric            "to find more errors.")
2310b57cec5SDimitry AndricCOMMON_FLAG(bool, strict_memcmp, true,
2320b57cec5SDimitry Andric          "If true, assume that memcmp(p1, p2, n) always reads n bytes before "
2330b57cec5SDimitry Andric          "comparing p1 and p2.")
2340b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_memmem, true,
2350b57cec5SDimitry Andric            "If set, uses a wrapper for memmem() to find more errors.")
2360b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_intrin, true,
2370b57cec5SDimitry Andric            "If set, uses custom wrappers for memset/memcpy/memmove "
2380b57cec5SDimitry Andric            "intrinsics to find more errors.")
2390b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_stat, true,
2400b57cec5SDimitry Andric            "If set, uses custom wrappers for *stat functions "
2410b57cec5SDimitry Andric            "to find more errors.")
2420b57cec5SDimitry AndricCOMMON_FLAG(bool, intercept_send, true,
2430b57cec5SDimitry Andric            "If set, uses custom wrappers for send* functions "
2440b57cec5SDimitry Andric            "to find more errors.")
2450b57cec5SDimitry AndricCOMMON_FLAG(bool, decorate_proc_maps, (bool)SANITIZER_ANDROID,
2460b57cec5SDimitry Andric            "If set, decorate sanitizer mappings in /proc/self/maps with "
2470b57cec5SDimitry Andric            "user-readable names")
2480b57cec5SDimitry AndricCOMMON_FLAG(int, exitcode, 1, "Override the program exit status if the tool "
2490b57cec5SDimitry Andric                              "found an error")
2500b57cec5SDimitry AndricCOMMON_FLAG(
25181ad6265SDimitry Andric    bool, abort_on_error, (bool)SANITIZER_ANDROID || (bool)SANITIZER_APPLE,
2520b57cec5SDimitry Andric    "If set, the tool calls abort() instead of _exit() after printing the "
2530b57cec5SDimitry Andric    "error report.")
2540b57cec5SDimitry AndricCOMMON_FLAG(bool, suppress_equal_pcs, true,
2550b57cec5SDimitry Andric            "Deduplicate multiple reports for single source location in "
2560b57cec5SDimitry Andric            "halt_on_error=false mode (asan only).")
2570b57cec5SDimitry AndricCOMMON_FLAG(bool, print_cmdline, false, "Print command line on crash "
2580b57cec5SDimitry Andric            "(asan only).")
2590b57cec5SDimitry AndricCOMMON_FLAG(bool, html_cov_report, false, "Generate html coverage report.")
2600b57cec5SDimitry AndricCOMMON_FLAG(const char *, sancov_path, "sancov", "Sancov tool location.")
2610b57cec5SDimitry AndricCOMMON_FLAG(bool, dump_instruction_bytes, false,
2620b57cec5SDimitry Andric          "If true, dump 16 bytes starting at the instruction that caused SEGV")
2630b57cec5SDimitry AndricCOMMON_FLAG(bool, dump_registers, true,
2640b57cec5SDimitry Andric          "If true, dump values of CPU registers when SEGV happens. Only "
2650b57cec5SDimitry Andric          "available on OS X for now.")
2660b57cec5SDimitry AndricCOMMON_FLAG(bool, detect_write_exec, false,
2670b57cec5SDimitry Andric          "If true, triggers warning when writable-executable pages requests "
2680b57cec5SDimitry Andric          "are being made")
2690b57cec5SDimitry AndricCOMMON_FLAG(bool, test_only_emulate_no_memorymap, false,
2700b57cec5SDimitry Andric            "TEST ONLY fail to read memory mappings to emulate sanitized "
2710b57cec5SDimitry Andric            "\"init\"")
2725f757f3fSDimitry Andric// With static linking, dladdr((void*)pthread_join) or similar will return the
2735f757f3fSDimitry Andric// path to the main program. This flag will replace dlopen(<main program,...>
2745f757f3fSDimitry Andric// with dlopen(NULL,...), which is the correct way to get a handle to the main
2755f757f3fSDimitry Andric// program.
2765f757f3fSDimitry AndricCOMMON_FLAG(bool, test_only_replace_dlopen_main_program, false,
2775f757f3fSDimitry Andric            "TEST ONLY replace dlopen(<main program>,...) with dlopen(NULL)")
2785f757f3fSDimitry Andric
2795f757f3fSDimitry AndricCOMMON_FLAG(bool, enable_symbolizer_markup, SANITIZER_FUCHSIA,
2805f757f3fSDimitry Andric            "Use sanitizer symbolizer markup, available on Linux "
2815f757f3fSDimitry Andric            "and always set true for Fuchsia.")
282*297eecfbSDimitry Andric
283*297eecfbSDimitry AndricCOMMON_FLAG(bool, detect_invalid_join, true,
284*297eecfbSDimitry Andric            "If set, check invalid joins of threads.")
285