Go to file
Vitaly Buka 7901b47094 [asan] Return allow_user_segv_handler=0 to fix compatibility issues.
Summary:
After r303941 it was not possible to setup ASAN_OPTIONS to have the same
behavior for pre r303941 and post r303941 builds.
Pre r303941 Asan does not accept handle_sigbus=2.
Post r303941 Asan does not accept allow_user_segv_handler.

This fix ignores allow_user_segv_handler=1, but for allow_user_segv_handler=0
it will upgrade flags like handle_sigbus=1 to handle_sigbus=2. So user can set
ASAN_OPTIONS=allow_user_segv_handler=0 and have same behavior on old and new
clang builds (except range from r303941 to this revision).

In future users which need to prevent third party handlers should switch to
handle_sigbus=2 and remove allow_user_segv_handler as soon as suport of older
builds is not needed.

Related bugs:
  https://github.com/google/oss-fuzz/issues/675
  https://bugs.chromium.org/p/chromium/issues/detail?id=731130

Reviewers: eugenis

Subscribers: llvm-commits, kubamracek

Differential Revision: https://reviews.llvm.org/D34227

llvm-svn: 305433
2017-06-15 00:19:13 +00:00
clang Handle -ast-dump-all when passed as the only option. 2017-06-15 00:00:08 +00:00
clang-tools-extra Update callbacks tracker to match change in 305425 2017-06-14 23:15:51 +00:00
compiler-rt [asan] Return allow_user_segv_handler=0 to fix compatibility issues. 2017-06-15 00:19:13 +00:00
debuginfo-tests Add a test for PR33166. 2017-05-25 19:33:16 +00:00
libclc generic: add missing get_work_dim include 2017-06-02 15:58:35 +00:00
libcxx [locale] Avoid copy of __atoms when char_type is char 2017-06-14 23:17:45 +00:00
libcxxabi Set a default value for LIBCXXABI_LIBDIR_SUFFIX, fixes installing into lib64 after r304374 2017-06-13 08:16:44 +00:00
libunwind [libunwind] Fix executable stack directive on Linux. 2017-05-16 20:18:57 +00:00
lld Inline a small function. NFC. 2017-06-14 23:37:37 +00:00
lldb [testsuite] xfailed two tests that depend on NSString conforming to NSCopying. 2017-06-14 23:01:43 +00:00
llgo irgen: Create functions instead of global variables for builtin hash and equal algorithms. 2017-06-04 22:11:28 +00:00
llvm Removal of accidental duplication in test assembly file. NFC. 2017-06-14 23:55:39 +00:00
openmp Replace platform macro with KMP_MIC_SUPPORTED 2017-06-13 17:17:26 +00:00
parallel-libs [Axccel] Remove -Wno-missing-braces in build 2016-12-19 21:34:07 +00:00
polly Don't check side effects for functions outside of SCoP 2017-06-14 22:43:28 +00:00