aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-09-10Merge up through LLVM r163557.android-sdk-support_r11android-cts-4.2_r2android-cts-4.2_r1android-4.2_r1android-4.2.2_r1.2android-4.2.2_r1.1android-4.2.2_r1android-4.2.1_r1.2android-4.2.1_r1.1android-4.2.1_r1tools_r22jb-mr1.1-releasejb-mr1.1-dev-plus-aospjb-mr1.1-devjb-mr1-releasejb-mr1-dev-plus-aospjb-mr1-devStephen Hines
Updated Android.mk source file for asan and fixed up test setup (thanks to Evgeniy for the starter patch). Change-Id: I4dcf13130505f4c1e2eed191a3b403ccab5e5e26
2012-09-10Merge branch 'upstream' into merge-2012_09_10Stephen Hines
Conflicts: lib/sanitizer_common/sanitizer_allocator.cc Change-Id: Ic93702aa92d9d4d582b25b33dfc14f6176d6b8a8
2012-09-10build/clang_darwin: Add the ASAN dynamic library.Daniel Dunbar
- Now with spelling fix for -lstdc++. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163527 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-10Revert r163415 in an attempt to bring back the buildbots.Chad Rosier
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163522 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-10[asan] There is no __libc_malloc on Android.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163498 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-10Allow to call strchr() from __asan_init().Alexander Potapenko
Fixes PR13794. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163493 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07build/clang_darwin: Add the ASAN dynamic library.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163415 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[asan] Use a relative include path instead of requiring build system ↵Daniel Dunbar
involvement. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163414 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07build: Teach Makefile build system about asan/dynamic subdir.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163413 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07build: Add support for building dylibs.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163412 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[asan] Suppress some bogus -Winvalid-noreturn diagnostics.Daniel Dunbar
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163411 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07tsan: ignore destruction of global mutexes (causes a lot of non-interesting ↵Dmitry Vyukov
reports) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163400 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07Remove the infinite recursion check for now, as we don't have __thread on ↵Alexander Potapenko
Mac, and TSD is an overkill. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163393 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07Two minor changes:Alexander Potapenko
-- exit from infinite recursion in CHECK() -- print a verbose message if mapping of the shadow memory has failed. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163391 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[asan] Raise quarantine size a bit with ASAN_LOW_MEMORY.Evgeniy Stepanov
Our tests expect that a 16M block will fit in the quarantine. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163384 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[ASan] hack initialization-bug test so that it stably passes on both Linux ↵Alexey Samsonov
and Mac: make the bug appear independent of the translation unit order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163381 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[ASan] add Linux-specific test for initialization order that checks that we ↵Alexey Samsonov
find a bug independently of translation units order git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163379 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-07[Sanitizer] add --demangle option to llvm-symbolizer (for now just assume ↵Alexey Samsonov
that __cxa_demangle option is available) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163376 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: fix code styleDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163326 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: increase max shadow stack size + reduce memory consumption at the same ↵Dmitry Vyukov
time (by not memorizing full stacks in traces) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163322 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06tsan: fix Go build scriptDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163320 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06Fix two compiler warnings: must use at least one argument for "..." in a ↵Alexander Potapenko
variadic macros, signed vs. unsigned comparison. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163314 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[asan] Use __ANDROID__ guard in asan_test.Evgeniy Stepanov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163313 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06Use the return value of dladdr() to avoid Clang warning.Alexander Potapenko
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163311 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[asan] increase max stack size to 256 (+test)Kostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163308 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06Add "movsbl %dh, %ecx" and "testb %r8, %r8" to mach_override.Alexander Potapenko
This should fix http://code.google.com/p/address-sanitizer/issues/detail?id=105 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163301 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[ASan] actually remove old makefileAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163300 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[TSan] add support for running external symbolizer other than addr2line (for ↵Alexey Samsonov
testing purposes) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163297 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[Sanitizer] remove unused fieldAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163296 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[ASan] Nuke output_tests/ in favor of lit_tests/. Stop using Makefile.old.Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163294 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-06[asan] increase the maximal size of malloc/free stackKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163291 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[Sanitizer] implement readlink as syscall on LinuxAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163213 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[ASan] Hack ASan lit config to allow running lit on tests manuallyAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163209 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[asan] added tests for asan-initialization-order, patch by Reid WatsonKostya Serebryany
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163207 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[ASan] hoist more compile flags to SANITIZER_COMMON_CFLAGS var and add the ↵Alexey Samsonov
rest of flags/defs from old Makefile to CMake git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163204 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[ASan] Add CMake support for building ASan benchmarksAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163201 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[ASan] Add print_full_thread_history runtime option (on by default) that ↵Alexey Samsonov
prints all full thread creation paths for threads involved in ASan error report git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163200 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-05[Sanitizer] Remove implicit conversion of InternalScopedBuffer<T> to T*Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163197 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-04[Sanitizer] Support for reading inlined frames from llvm-symbolizerAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163140 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-04[compiler-rt] Recurse into 'utils' directory in CMake build of compiler-rt, ↵Alexey Samsonov
enable build of llvm-symbolizer binary (currently for one target only) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163138 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-04[Sanitizer] llvm-symbolizer util: make it more conforming to LLVM code ↵Alexey Samsonov
style, and support fetching inlining info git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163133 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: do not crash with obscure message if a user passes invalid arguments ↵Dmitry Vyukov
to malloc/free/memset/etc git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163092 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: insert cfi directives into assembly (not fully working for now, though)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163090 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-02tsan: more robust current thread stack restorationDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163089 91177308-0d34-0410-b5e6-96231b3b80d8
2012-09-01tsan: better diagnostics for mutex misuseDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163060 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix crash when users pass insane mutex addresses in dynamic annotationsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163016 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: add "as if synchronized via sleep" featureDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@163006 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix windows build (2)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162997 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: fix windows build (1)Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162996 91177308-0d34-0410-b5e6-96231b3b80d8
2012-08-31tsan: slightly optimize mutex unlock Dmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162995 91177308-0d34-0410-b5e6-96231b3b80d8