| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
| |
Apple's bootstrapped LTO builds have been failing, and these changes (along
with llvm 194701) are the only things on the blamelist. I will either reapply
these changes or help debug the problem, depending on whether this fixes the
buildbots.
llvm-svn: 194779
|
|
|
|
|
|
| |
it does not work anyway and can cause significant slowdown
llvm-svn: 194711
|
|
|
|
| |
llvm-svn: 194702
|
|
|
|
| |
llvm-svn: 194696
|
|
|
|
|
|
| |
doesn't need them)
llvm-svn: 194685
|
|
|
|
|
|
| |
dynamic ASan runtime.
llvm-svn: 194583
|
|
|
|
|
|
|
|
|
|
|
| |
Invoke a fatal stack trace unwinder when ASan prints allocator-relevant
error reports (double-free, alloc-dealloc-mismatch, invalid-free).
Thus we'll be able to print complete stack trace even if allocation/free
stacks are not stored (malloc_context_size=0).
Based on the patch by Yuri Gribov!
llvm-svn: 194579
|
|
|
|
| |
llvm-svn: 194578
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58994, which hadn't
manifested in LLVM because libclang_rt.asan_osx_dynamic.dylib used to depend on
the Foundation framework.
Without that dependency some interceptors may be called from the system
libraries before libSystem_initializer() is called, which lead to assertion
failures in sanitizer_mac.cc (_NSGetEnviron() returns NULL).
To fix the problem we fall back to the original functions in the common
libsanitizer interceptors and the __cxa_atexit() interceptor on Darwin.
This patch also prints a better error message in the case _NSGetEnviron()
returns NULL.
llvm-svn: 194573
|
|
|
|
|
|
| |
(https://code.google.com/p/address-sanitizer/issues/detail?id=233)
llvm-svn: 194572
|
|
|
|
| |
llvm-svn: 194479
|
|
|
|
|
|
| |
This includes a clang-format pass over common interceptors.
llvm-svn: 194372
|
|
|
|
| |
llvm-svn: 194369
|
|
|
|
|
|
|
|
|
|
| |
CMake changes to build the ASan runtime for the iOS simulator. This is a universal library targeting the same architectures as the OSX ASan runtime does, thus the iossim version can't live in the same universal libclang_rt.asan_osx_dynamic.dylib
The difference between the OSX and iossim builds is in the -mios-simulator-version-min and -ios_simulator_version_min flags that tell Clang to compile and link iossim code.
The iossim runtime can only be built on a machine with both Xcode and the iOS Simulator SDK installed. If xcodebuild -version -sdk iphonesimulator Path returns a nonempty path, it is used when compiling and linking the iossim runtime.
llvm-svn: 194199
|
|
|
|
|
|
| |
The top stack frames for operator new and operator delete are different on Linux and Darwin.
llvm-svn: 194150
|
|
|
|
|
|
| |
check_initialization_order
llvm-svn: 194125
|
|
|
|
| |
llvm-svn: 194107
|
|
|
|
| |
llvm-svn: 193868
|
|
|
|
|
|
|
|
|
|
| |
This change unifies the summary printing across sanitizers:
now each tool uses specific version of ReportErrorSummary() method,
which deals with symbolization of the top frame and formatting a
summary message. This change modifies the summary line for ASan+LSan mode:
now the summary mentions "AddressSanitizer" instead of "LeakSanitizer".
llvm-svn: 193864
|
|
|
|
| |
llvm-svn: 193834
|
|
|
|
|
|
| |
used when ASAN_OPTIONS=symbolize=1) if LLVM_SYMBOLIZER_PATH is empty.
llvm-svn: 193758
|
|
|
|
|
|
| |
ASan users
llvm-svn: 193729
|
|
|
|
| |
llvm-svn: 193647
|
|
|
|
| |
llvm-svn: 193635
|
|
|
|
| |
llvm-svn: 193634
|
|
|
|
| |
llvm-svn: 193615
|
|
|
|
| |
llvm-svn: 193602
|
|
|
|
|
|
| |
to turn on/off the symbolization
llvm-svn: 193587
|
|
|
|
| |
llvm-svn: 193522
|
|
|
|
|
|
| |
this makes the reports consistent with tsan, and much more readable.
llvm-svn: 193520
|
|
|
|
| |
llvm-svn: 193501
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1984
llvm-svn: 193449
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This moves away from creating the symbolizer object and initializing the
external symbolizer as separate steps. Those steps now always take place
together.
Sanitizers with a legacy requirement to specify their own symbolizer path
should use InitSymbolizer to initialize the symbolizer with the desired
path, and GetSymbolizer to access the symbolizer. Sanitizers with no
such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for
initialization.
The symbolizer interface has been made thread-safe (as far as I can
tell) by protecting its member functions with mutexes.
Finally, the symbolizer interface no longer relies on weak externals, the
introduction of which was probably a mistake on my part.
Differential Revision: http://llvm-reviews.chandlerc.com/D1985
llvm-svn: 193448
|
|
|
|
| |
llvm-svn: 193405
|
|
|
|
| |
llvm-svn: 193308
|
|
|
|
|
|
| |
as well.
llvm-svn: 193245
|
|
|
|
| |
llvm-svn: 193229
|
|
|
|
|
|
| |
Differential Revision: http://llvm-reviews.chandlerc.com/D1339
llvm-svn: 193060
|
|
|
|
| |
llvm-svn: 192990
|
|
|
|
|
|
| |
save space
llvm-svn: 192980
|
|
|
|
|
|
| |
the stack depot
llvm-svn: 192979
|
|
|
|
| |
llvm-svn: 192973
|
|
|
|
| |
llvm-svn: 192960
|
|
|
|
| |
llvm-svn: 192956
|
|
|
|
|
|
| |
valloc() on OSX.
llvm-svn: 192901
|
|
|
|
| |
llvm-svn: 192892
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
This fixes a deadlock which happens in lsan
on a large memalign-allocated chunk that resides in lsan's root set.
Reviewers: samsonov, earthdok
Reviewed By: earthdok
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D1957
llvm-svn: 192885
|
|
|
|
| |
llvm-svn: 192870
|
|
|
|
| |
llvm-svn: 192793
|
|
|
|
|
|
|
| |
The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've
got a lit_test that covers this.
llvm-svn: 192777
|