http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59275
Bug ID: 59275
Summary: Document environment variables used by the sanitizers
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: documentation
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: burnus at gcc dot gnu.org
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org
I think invoke.texi should at least mention that the environment variables
LSAN_OPTIONS, TSAN_OPTIONS and ASAN_OPTIONS. (And none for ubsan.)
Better would be if there were a full support, but I admit that that's a rather
long list, of supported values:
COMMON:
malloc_context_size
strip_path_prefix
fast_unwind_on_fatal
fast_unwind_on_malloc
symbolize
handle_ioctl
log_path
detect_leaks
leak_check_at_exit
allocator_may_return_null
LSAN:
use_registers
use_globals
use_stacks
use_tls
use_unaligned
report_objects
resolution
max_leaks
verbosity
log_pointers
log_threads
exitcode
suppressions
TSAN:
enable_annotations
suppress_equal_stacks
suppress_equal_addresses
suppress_java
report_bugs
report_thread_leaks
report_destroy_locked
report_signal_unsafe
report_atomic_races
force_seq_cst_atomics
strip_path_prefix
suppressions
print_suppressions
print_benign
exitcode
halt_on_error
log_path
atexit_sleep_ms
verbosity
profile_memory
flush_memory_ms
flush_symbolizer_ms
stop_on_start
external_symbolizer_path
history_size
io_sync
allocator_may_return_null
ASAN:
quarantine_size
verbosity
redzone
debug
report_globals
check_initialization_order
replace_str
replace_intrin
mac_ignore_invalid_free
asan/asan_rtl.cc: ParseFlag(str, &f->detect_stack_use_after_return,
uar_stack_size_log
max_malloc_fill_size
malloc_fill_byte
exitcode
allow_user_poisoning
sleep_before_dying
handle_segv
allow_user_segv_handler
use_sigaltstack
check_malloc_usable_size
unmap_shadow_on_exit
abort_on_error
print_stats
print_legend
atexit
disable_core
allow_reexec
print_full_thread_history
poison_heap
alloc_dealloc_mismatch
use_stack_depot
strict_memcmp
strict_init_order