| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 253342
|
| |
|
|
|
|
| |
As per comments in 252892 commit.
llvm-svn: 253216
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds assembly routines to enable setjmp/longjmp for aarch64
on linux. It fixes:
* test/tsan/longjmp2.cc
* test/tsan/longjmp3.cc
* test/tsan/longjmp4.cc
* test/tsan/signal_longjmp.cc
I also checked with perlbench from specpu2006 (it fails to run
with missing setjmp/longjmp intrumentation).
llvm-svn: 253205
|
| |
|
|
| |
llvm-svn: 253204
|
| |
|
|
|
|
| |
This caused bot failures on ARM, e.g. http://lab.llvm.org:8011/builders/clang-cmake-armv7-a15-full/builds/9068
llvm-svn: 253129
|
| |
|
|
|
|
| |
shadow gap will not be mprotect-ed and all hell may break loose. But this makes CUDA's cuInit() pass.
llvm-svn: 253108
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
- This is to handle a corner case where profile lib is linked
in but non of the modules are instrumented (On linux, since
we avoided the overhead to emit runtime hook use functions so
this is the side effect of that size optimization).
- Added a profile runtime test case to cover all scenarios of
shared library builds.
Differential Revision: http://reviews.llvm.org/D14468
llvm-svn: 253098
|
| |
|
|
|
|
|
|
| |
I noticed that when a symbol is named just "x", it gets demangled to "long long". On POSIX, AFAIK, mangled names always start with "_Z", so lets just require that.
Differential Revision: http://reviews.llvm.org/D14637
llvm-svn: 253080
|
| |
|
|
|
|
|
|
| |
Currently, we crash on finalization of detached threads, because we'll try to clear the ThreadState twice.
Differential Revision: http://reviews.llvm.org/D14644
llvm-svn: 253079
|
| |
|
|
|
|
|
|
| |
There is a typo in tsan_test_util.h, it shouldn't be `APPLE`, but `__APPLE__`.
Differential Revision: http://reviews.llvm.org/D14647
llvm-svn: 253078
|
| |
|
|
|
|
|
|
| |
On OS X, memcpy and memmove are actually aliases of the same function, so the memmove interceptor can be invoked on a call to memcpy. This patch updates the tests to expect either memmove or memcpy on a stack trace.
Differential Revision: http://reviews.llvm.org/D14638
llvm-svn: 253077
|
| |
|
|
|
|
|
|
| |
The dl_iterate_phdr is not present on OS X.
Differential Revision: http://reviews.llvm.org/D14643
llvm-svn: 253076
|
| |
|
|
|
|
|
|
| |
The OS X symbolizers (namely AtosSymbolizer) don't return full file paths, only file names. This patch modifies `mutexset*.cc` tests not to require a path to be present in the symbol on the stack trace.
Differential Revision: http://reviews.llvm.org/D14642
llvm-svn: 253075
|
| |
|
|
|
|
| |
Turns out that there are some checks in the backend that change code generation for armv7 if you are building against an iOS sys root. For the macho_embedded builtins we really don't want that.
llvm-svn: 253064
|
| |
|
|
| |
llvm-svn: 253037
|
| |
|
|
| |
llvm-svn: 253035
|
| |
|
|
| |
llvm-svn: 253025
|
| |
|
|
| |
llvm-svn: 253022
|
| |
|
|
| |
llvm-svn: 253021
|
| |
|
|
|
|
|
|
| |
This patch adds support for symbolication of globals (implements `SymbolizeData`) for `AtosSymbolizer` on OS X.
Differential Revision: http://reviews.llvm.org/D14618
llvm-svn: 253015
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14290
llvm-svn: 252976
|
| |
|
|
|
|
| |
We need to add -fPIC to the flags for the builtins in case PIC was turned off at a higher level. We also want to set ENABLE_PIC to Off when building the macho_embedded builtins so the top-level settings don't impact that build.
llvm-svn: 252966
|
| |
|
|
| |
llvm-svn: 252965
|
| |
|
|
| |
llvm-svn: 252964
|
| |
|
|
| |
llvm-svn: 252958
|
| |
|
|
|
|
| |
Android libc is missing rand_r until API 21. ASan supports API 19.
llvm-svn: 252930
|
| |
|
|
|
|
| |
I was a little too aggressive about adding sources from the arm subdirectory.
llvm-svn: 252929
|
| |
|
|
|
|
| |
Turns out you need to save before committing.
llvm-svn: 252928
|
| |
|
|
|
|
| |
Also added a TODO comment to make the build system throw an error if the CMakeLists gets out of sync again.
llvm-svn: 252927
|
| |
|
|
|
|
|
|
|
|
|
| |
Go build does not link in whatever library provides these symbols:
# runtime/race
race_windows_amd64.syso:gotsan.cc:(.text+0x578f): undefined reference to `__sanitizer::DumpProcessMap()'
race_windows_amd64.syso:gotsan.cc:(.text+0xee33): undefined reference to `EnumProcessModules'
race_windows_amd64.syso:gotsan.cc:(.text+0xeeb9): undefined reference to `GetModuleInformation'
llvm-svn: 252922
|
| |
|
|
|
|
| |
CompareModulesBase is an unused function.
llvm-svn: 252907
|
| |
|
|
|
|
|
|
| |
`DlAddrSymbolizer` is used on OS X when we're running inside a sandbox that prevents us from spawning an external symbolizer. This patch adds support for symbolication of globals (implements `SymbolizeData`) for `DlAddrSymbolizer`.
Differential Revision: http://reviews.llvm.org/D14613
llvm-svn: 252899
|
| |
|
|
|
|
|
|
| |
The default symbolizer, `llvm-symbolizer` provides sizes for global symbols. On OS X, we want to also allow using `atos` (because it's available everywhere and users don't need to copy/install it) and `dladdr` (it's the only available option when running in a sandbox). However, these symbolizers do not supply the symbol sizes, only names and starting addresses. This patch changes the reporting functions to hide the size of the symbol when this value is unavailable, and modifies tests to make this part of the report "optional".
Differential Revision: http://reviews.llvm.org/D14608
llvm-svn: 252896
|
| |
|
|
|
|
|
| |
It does not work as expected.
Go runtime handles SIGABRT and crashes with a loud message.
llvm-svn: 252892
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14610
llvm-svn: 252887
|
| |
|
|
|
|
| |
librt is not linked in in Go build.
llvm-svn: 252877
|
| |
|
|
|
|
|
|
| |
This seems to be dead code – `system_malloc_zone` is initialized as null and we never assign to it. This code is apparently currently never executed (in ASan), but is causes trouble for the TSan OS X port. Let's replace the checks with `COMMON_MALLOC_ENTER` (`ENSURE_ASAN_INITED()`).
Differential Revision: http://reviews.llvm.org/D14334
llvm-svn: 252876
|
| |
|
|
| |
llvm-svn: 252875
|
| |
|
|
|
|
| |
cur_thread does not exist in Go.
llvm-svn: 252874
|
| |
|
|
|
|
|
|
| |
The TSan unit test build currently fails if we're also building the iOS parts of compiler-rt, because `TSAN_SUPPORTED_ARCH` contains ARM64. For unit tests, we need to filter this only to host architecture(s).
Differential Revision: http://reviews.llvm.org/D14604
llvm-svn: 252873
|
| |
|
|
| |
llvm-svn: 252869
|
| |
|
|
| |
llvm-svn: 252815
|
| |
|
|
|
|
|
|
| |
of the compiler command line
Setting CMAKE_*_FLAGS isn't sufficient here because CMAKE_*_FLAGS_${CMAKE_BUILD_TYPE} can override the flags, and there is no way to safely clear that because it is a cached variable (<sarcasm> YAY! </sarcasm>).
llvm-svn: 252807
|
| |
|
|
| |
llvm-svn: 252805
|
| |
|
|
| |
llvm-svn: 252784
|
| |
|
|
| |
llvm-svn: 252746
|
| |
|
|
|
|
|
|
| |
This reverts commits r252683 and r252689. This tool should not live here. See
http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20151109/311862.html
for discussion.
llvm-svn: 252744
|
| |
|
|
| |
llvm-svn: 252742
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D14575
llvm-svn: 252741
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Summary: This is enough to get the asan static_tls.cc test case working.
Reviewers: eugenis, samsonov
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D14574
llvm-svn: 252738
|