From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9819 invoked by alias); 24 Nov 2013 16:14:16 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9762 invoked by uid 48); 24 Nov 2013 16:14:13 -0000 From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59275] New: Document environment variables used by the sanitizers Date: Sun, 24 Nov 2013 16:14:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: sanitizer X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status keywords bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-11/txt/msg02472.txt.bz2 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