summaryrefslogtreecommitdiffstats
path: root/compiler-rt
Commit message (Collapse)AuthorAgeFilesLines
* [lsan] Add suppression support.Sergey Matveev2013-06-2811-13/+182
| | | | llvm-svn: 185152
* [sanitizer] Disable all ptrace-related definitions on Android.Evgeniy Stepanov2013-06-282-3/+3
| | | | llvm-svn: 185150
* [ASan] Migrate lit tests to external symbolizer from asan_symbolize.py scriptAlexey Samsonov2013-06-282-16/+7
| | | | llvm-svn: 185148
* Demangle names using pluggable internal symbolizer if possibleAlexey Samsonov2013-06-283-8/+34
| | | | llvm-svn: 185146
* [sanitizer] Fix an unfortunate typo and disable ptrace interception on Android.Evgeniy Stepanov2013-06-283-3/+3
| | | | llvm-svn: 185145
* Pass --default-arch flag to external symbolizer. Fix line lengths.Alexey Samsonov2013-06-282-3/+13
| | | | llvm-svn: 185144
* [sanitizer] Intercept ptrace.Evgeniy Stepanov2013-06-2810-8/+191
| | | | llvm-svn: 185142
* [ASan][OSX] Make sure the zones created by malloc_create_zone() are ↵Alexander Potapenko2013-06-282-0/+24
| | | | | | | | write-protected. Add a test. llvm-svn: 185140
* [ASan][OSX] Fix the incorrect malloc_create_zone() implementation that led ↵Alexander Potapenko2013-06-282-1/+55
| | | | | | | | | to out-of-bounds mprotect()s (https://code.google.com/p/address-sanitizer/issues/detail?id=203) Add a test. llvm-svn: 185138
* Revert hack that omits errno on Darwin platforms. We now have an acceptable ↵Bill Wendling2013-06-271-9/+0
| | | | | | 'errno' header. llvm-svn: 185106
* Declare 'strerror' so that we can use it with errno.Bill Wendling2013-06-271-0/+21
| | | | llvm-svn: 185105
* Add 'errno.h' to the Darwin SDK.Bill Wendling2013-06-272-0/+48
| | | | llvm-svn: 185104
* [sanitizer] Support padding with spaces in Printf.Sergey Matveev2013-06-272-35/+65
| | | | llvm-svn: 185082
* [lsan] Fix flaky test.Sergey Matveev2013-06-271-2/+3
| | | | llvm-svn: 185079
* tsan: revert dynamic symbols file to the old incorrect oneDmitry Vyukov2013-06-272-382/+5
| | | | | | | full proper list of dynamic symbols crashes old gold (see bug 16468). the culprit is 'memcpy' function, if it's added to syms file, gold crashes llvm-svn: 185078
* tsan: remove non-existent functions from syms fileDmitry Vyukov2013-06-272-13/+10
| | | | llvm-svn: 185077
* [msan] Optionally disable 2 tests (dlopen & gethostbyname).Evgeniy Stepanov2013-06-271-12/+20
| | | | llvm-svn: 185076
* [sanitizer] Fix dirent interceptors.Evgeniy Stepanov2013-06-273-14/+47
| | | | | | The new version reads d_reclen for (struct dirent) size. llvm-svn: 185067
* [LSan] Add the way to disable LSan at link timeAlexey Samsonov2013-06-274-0/+41
| | | | llvm-svn: 185066
* [TSan] try to fix Go buildAlexey Samsonov2013-06-271-0/+1
| | | | llvm-svn: 185063
* [MSan] Rename __msan_unpoision_param to __msan::UnpoisonParam - it shouldn't ↵Alexey Samsonov2013-06-274-9/+8
| | | | | | be in interface llvm-svn: 185062
* [tsan] Fix build.Sergey Matveev2013-06-261-1/+1
| | | | llvm-svn: 184963
* Revert "Temporarily disable building the armv7 variants of profile_ios on"Bob Wilson2013-06-261-6/+1
| | | | | | | This reverts commit r184816. With Chandler's change in r184929, this should no longer be necessary. llvm-svn: 184961
* [tsan] Move some suppressions-related code to common.Sergey Matveev2013-06-2611-271/+362
| | | | | | Factor out code to be reused in LSan. Also switch from linked list to vector. llvm-svn: 184957
* [sanitizer] readdir and readdir_r interceptors.Evgeniy Stepanov2013-06-268-19/+86
| | | | llvm-svn: 184950
* [asan] initialize fake_stack lazily and increase its maximal size. This ↵Kostya Serebryany2013-06-265-19/+29
| | | | | | makes -fsanitize=address,use-after-return more robust: all SPEC tests pass now. In the default mode thread stacks become a bit smaller. llvm-svn: 184934
* Revert the Darwin half of r184805: "Remove the sysroot (or isysroot)Chandler Carruth2013-06-261-12/+8
| | | | | | | | | | | restriction from the GCDAProfile.c" Bill added a much more effective way of coping with the use of errno and other system interactions for Darwin for now by disabling it on that platform. Building against the SDK stuff is more fundamental to the darwin build process. llvm-svn: 184929
* [sanitizer] Reformat line >80 chars.Evgeniy Stepanov2013-06-261-1/+2
| | | | llvm-svn: 184926
* [sanitizer] Fix build with OSS4 kernel headers.Evgeniy Stepanov2013-06-263-11/+31
| | | | | | This fixes PR16453. llvm-svn: 184925
* Fix a use after free I introduced and that Bill caught in code reviewChandler Carruth2013-06-261-14/+13
| | | | | | | | | (thanks!) by deferring the free of the filename until we finish writing the coverage data to that file. Bill, let me know if you'd prefer a different approach! llvm-svn: 184895
* Don't use 'errno.h' on Apple just yet. This breaks for some of our buildbots.Bill Wendling2013-06-251-0/+9
| | | | llvm-svn: 184878
* tsan: add missing __attribute__((visibility("default"))) to interface functionsDmitry Vyukov2013-06-251-0/+30
| | | | llvm-svn: 184858
* [lsan] Define interceptors more correctly. Also, always clear allocated memory.Sergey Matveev2013-06-251-24/+52
| | | | llvm-svn: 184849
* [sanitizer] Move log_path to common flag and use it in MSan.Evgeniy Stepanov2013-06-255-5/+7
| | | | llvm-svn: 184836
* Temporarily disable building the armv7 variants of profile_ios onChandler Carruth2013-06-251-1/+6
| | | | | | | | | | | | | | | | | | | darwin. After talking with Jim Grosbach pretty extensively, he was OK with me punting on this to the Apple folks. We agreed that the correct fix is either to extend the fake SDK headers in compiler-rt to support the rest of libc needed by GCDAProfiling.c or to teach the make build to test for the existence of a suitable SDK on the system prior to building it. Both of these require someone with access to the SDK which I don't have, and the latter (my preferred solution) requires understanding the strange compiler-rt make build system. Punting to Dan Dunbar or one of the others who support this stuff on ios to write the appropriate fix, and we can let the build bots proceed in the mean time. llvm-svn: 184816
* Remove the sysroot (or isysroot) restriction from the GCDAProfile.cChandler Carruth2013-06-252-12/+14
| | | | | | | | | | | | | runtime in the Makefile build system as well. Sorry for the temporary fallout, it took me a while to find these bits. Bill, I'm not at all confident of the change for Darwin and iOS, but as discussed we're completely blocked on fixing this. Anyways, please review and let me know if this will work for you guys. If necessary, I can work with you to rig up an errno.h stub for Darwin, but I expect that to be... moderately challenging. llvm-svn: 184805
* Address a few of the issues in GCDAProfiling I noted when lookingChandler Carruth2013-06-251-7/+37
| | | | | | | | | | | | | | | | through Bill's patch: 1) Correctly test the file descriptor after the sceond attempt at creating the file. 2) Make the filename a global so that we can issue error messages from other routines. 3) Check errno in several places and print it out so that errors are easier to track down. I don't really expect any of these to fix the current failures I'm seeing, but I'm hopeful they'll at least let me debug them. llvm-svn: 184799
* Remove the sysroot restriction from building GCDAProfiling.c.Chandler Carruth2013-06-251-3/+3
| | | | | | | | | | | | | | We really need the C standard library to be available to implement the profiling runtime library reasonably, and replicating everything in the SDKs tree really isn't addressing any problems we have. Notably, all of the sanitizer runtimes take the same approach, and this isn't a library which could end up in a bootstrapping problem where the system headers aren't even available. This will hopefully prevent subsequent changes which start using various other bits of C standard library to make things more debuggable. llvm-svn: 184798
* tsan: make the test more robustDmitry Vyukov2013-06-241-2/+8
| | | | | | | | currently it episodically fails the hypothesis it is due to racy race detection algorithm the sleep should make it more robust llvm-svn: 184752
* tsan: update dynamic export syms fileDmitry Vyukov2013-06-243-3/+441
| | | | | | | now it includes proper functions (including interceptors) and does not include local functions that lead to build failures llvm-svn: 184747
* [sanitizer] Intercept sysinfo.Evgeniy Stepanov2013-06-247-1/+30
| | | | llvm-svn: 184739
* [sanitizer] Fix TSan build.Evgeniy Stepanov2013-06-242-0/+2
| | | | llvm-svn: 184736
* [sanitizer] Intercept inet_aton.Evgeniy Stepanov2013-06-245-1/+34
| | | | llvm-svn: 184735
* [msan] Unpoison param-tls in signal handler wrapper.Evgeniy Stepanov2013-06-241-0/+1
| | | | | | This an entry point from uninstrumented code. llvm-svn: 184734
* [sanitizer] Intercept readv, preadv, writev, pwritev.Evgeniy Stepanov2013-06-247-47/+217
| | | | llvm-svn: 184717
* [lsan] Fix android build.Sergey Matveev2013-06-241-1/+1
| | | | llvm-svn: 184704
* Revert to C-style callbacks for iteration over allocator chunks.Sergey Matveev2013-06-248-206/+129
| | | | | | | Also clean up LSan code, fix some comments and replace void* with uptr to bring down the number of reinterpret_casts. llvm-svn: 184700
* Add cmake rules for building LSan common on Mac OSAlexey Samsonov2013-06-224-6/+10
| | | | llvm-svn: 184639
* [lsan] Try REALLY hard to fix Win build.Sergey Matveev2013-06-212-9/+5
| | | | llvm-svn: 184557
* [lsan] This time really fix Win build.Sergey Matveev2013-06-211-1/+1
| | | | llvm-svn: 184556
OpenPOWER on IntegriCloud