| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
passed to QueueUserWorkItem
llvm-svn: 231947
|
|
|
|
| |
llvm-svn: 231492
|
|
|
|
|
|
| |
caller of the function.
llvm-svn: 231402
|
|
|
|
|
|
| |
applicable
llvm-svn: 231337
|
|
|
|
| |
llvm-svn: 231293
|
|
|
|
| |
llvm-svn: 231171
|
|
|
|
|
|
| |
as ia32 for AddressSanitizer asm_flags test. Patch by H.J. Lu
llvm-svn: 231052
|
|
|
|
| |
llvm-svn: 231000
|
|
|
|
| |
llvm-svn: 230980
|
|
|
|
|
|
|
|
|
|
|
| |
The problem is that without SA_RESTORER flag, kernel ignores the handler. So tracer actually did not setup any handler.
Add SA_RESTORER flag when setting up handlers.
Add a test that causes SIGSEGV in stoptheworld callback.
Move SignalContext from asan to sanitizer_common to print better diagnostics about signal in the tracer thread.
http://reviews.llvm.org/D8005
llvm-svn: 230978
|
|
|
|
|
|
| |
... to verbosity level 3. Because log spam.
llvm-svn: 230974
|
|
|
|
| |
llvm-svn: 230683
|
|
|
|
|
|
|
|
| |
'__sanitizer_annotate_contiguous_container' is not aligned error message easier to understand
This incorporates the fix for ARM architecture suggested by Renato Golin.
llvm-svn: 230506
|
|
|
|
| |
llvm-svn: 230501
|
|
|
|
|
|
|
| |
They don't build on Windows.
http://lab.llvm.org:8011/builders/sanitizer-windows/ went red for example.
llvm-svn: 230461
|
|
|
|
| |
llvm-svn: 230432
|
|
|
|
| |
llvm-svn: 230425
|
|
|
|
| |
llvm-svn: 230419
|
|
|
|
| |
llvm-svn: 230409
|
|
|
|
|
|
| |
and __asan_on_error
llvm-svn: 230344
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Revise the fix to https://code.google.com/p/address-sanitizer/issues/detail?id=178:
always disable strict init-order checking the first time dlopen() is
called: at this point shared library is allowed to access globals
defined in the main executable, as they are guaranteed to be
initialized. Revise the test cases:
* simplify init-order-dlopen.cc test case: make it Linux-specific
(there's no strict init-order checking on other platforms anyway),
and single-threaded.
* reinforce init-order-pthread-create.cc test case: make sure that
init-order checker would produce a false positive unless we
turn it off at the moment we call pthread_create().
llvm-svn: 230288
|
|
|
|
|
|
| |
instead of the one used for FATAL crash (which may be too slow)
llvm-svn: 230256
|
|
|
|
|
|
|
|
|
|
| |
'__sanitizer_annotate_contiguous_container' is not aligned error message easier to understand"
This reverts commit r230019, as it was breaking the ARM sanitizer buildbot
and let other errors be introduced since it wasn't fixed/reverted in
time.
llvm-svn: 230179
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SuppressionContext is no longer a singleton, shared by all sanitizers,
but a regular class. Each of ASan, LSan, UBSan and TSan now have their
own SuppressionContext, which only parses suppressions specific to
that sanitizer.
"suppressions" flag is moved away from common flags into tool-specific
flags, so the user now may pass
ASAN_OPTIONS=suppressions=asan_supp.txt LSAN_OPIONS=suppressions=lsan_supp.txt
in a single invocation.
llvm-svn: 230026
|
|
|
|
|
|
| |
not aligned error message easier to understand
llvm-svn: 230019
|
|
|
|
| |
llvm-svn: 230018
|
|
|
|
| |
llvm-svn: 229860
|
|
|
|
|
|
|
|
| |
sanitizer_internal_defs.h to a new sanitizer_interface_internal.h file
Reviewed at http://reviews.llvm.org/D7758
llvm-svn: 229858
|
|
|
|
|
|
|
| |
This is a re-application of r229554 restricted to Linux build only.
Apple still uses Makefile/autoconf to build Clang and sanitizers.
llvm-svn: 229756
|
|
|
|
|
|
|
|
|
| |
This reverts commit r229556.
Reverting this for now as internal apple builds rely on this
functionality.
llvm-svn: 229585
|
|
|
|
|
|
|
|
| |
They autotools build has a number of missing features, supports less
OS, architectures, build configurations, doesn't have any tests and
is hard to support in sync with CMake build.
llvm-svn: 229556
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
LSan can be combined with a parent tool (for now it's only ASan).
Also, we allow LSAN_OPTIONS to override certain common flags. It means
we have to parse LSAN_OPTIONS early enough, before the rest of the
parent tool (including chunks of sanitizer_common) is initialized.
In future, we can use the same approach for UBSan, after we embed it
into ASan runtime in a similar way.
Test Plan: regression test suite
Reviewers: earthdok, eugenis
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D7577
llvm-svn: 229519
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Android devices may not support 'adb root', but be rooted with 'su'
binary. This patch makes it possible to install ASAN to such
devices. When --use-su flag is specified, most 'adb ...' commangs are
changed to 'adb su -c "..."'.
Some other notes:
* 'readlink' changed to 'ls -l', since not all devices have readlink
in their firmware.
* removing ASan library step moved to very end, because 'su' may not
run properly without this library until shell will be restarted.
Patch by Dmitry <ripp at yandex-team dot ru>.
llvm-svn: 229368
|
|
|
|
|
|
|
| |
These functions are always used to initialize singleton flags(), as
well as other global data (common_flags()).
llvm-svn: 228894
|
|
|
|
| |
llvm-svn: 228838
|
|
|
|
|
|
|
|
| |
We currently skip all "Noinst" unit tests on OS X, which was probably caused when we removed the "allow_reexec" flag. The MaybeReexec function fails to re-execute when the runtime is linked statically, because there is no dylib to use. This patch adds an explicit DisableReexec function that is used from asan_noinst_test.cc and the runtime then doesn't try to re-execute.
Reviewed at http://reviews.llvm.org/D7493
llvm-svn: 228740
|
|
|
|
|
|
|
|
|
|
|
|
| |
using non-absolute paths
MaybeReexec() in asan_mac.cc checks for presence of the ASan dylib in DYLD_INSERT_LIBRARIES, and if it is there, it will process this env. var. and remove the dylib from its value, so that spawned children don't have this variable set. However, the current implementation only works when using a canonical absolute path to the dylib, it fails to remove the dylib for example when using @executable_path.
This patch changes the processing of DYLD_INSERT_LIBRARIES to comparing values only based on filenames (ignoring directories).
Reviewed at http://reviews.llvm.org/D7160
llvm-svn: 228392
|
|
|
|
|
|
| |
Reverting r228137 to unbreak the build bots.
llvm-svn: 228172
|
|
|
|
|
|
| |
to fix the interface_symbols_darwin.c test.
llvm-svn: 228137
|
|
|
|
| |
llvm-svn: 227968
|
|
|
|
|
|
| |
and make them global so that they're not removed by `strip -x`.
llvm-svn: 227967
|
|
|
|
|
|
|
|
| |
Also, disabling BuiltinLongJmpTest, as it fails for ARM and PPC as well.
Patch by Christophe Lyon.
llvm-svn: 227966
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D7294
llvm-svn: 227959
|
|
|
|
| |
llvm-svn: 227803
|
|
|
|
| |
llvm-svn: 227683
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D7233
llvm-svn: 227570
|
|
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D7172
llvm-svn: 227559
|
|
|
|
|
|
|
|
| |
libc++, mmacosx-version-min and SDKs
In both CMake and Makefiles, we are inconsistent about the use of libstdc++ vs. libc++, SDKs and minimum deployment targets for OS X. Let's fix the detection of SDKs, and let's explicitely set that we link against libc++ and mmacosx-version-min is 10.7.
llvm-svn: 227509
|
|
|
|
| |
llvm-svn: 227473
|
|
|
|
| |
llvm-svn: 227327
|