Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [Sanitizer] Refactor symbolization interface: use class instead of several ↵ | Alexey Samsonov | 2013-09-10 | 2 | -8/+8 |
| | | | | | | functions. Move some code around to get rid of extra source files llvm-svn: 190410 | ||||
* | Delete unused variables. | Eli Friedman | 2013-09-10 | 1 | -1/+0 |
| | | | | llvm-svn: 190383 | ||||
* | [tsan] make calloc crash instead of returning 0 on overflow (controlled by ↵ | Kostya Serebryany | 2013-09-06 | 5 | -4/+74 |
| | | | | | | the allocator_may_return_null flag) llvm-svn: 190135 | ||||
* | [tsan] add colors to tsan output | Kostya Serebryany | 2013-09-05 | 1 | -2/+43 |
| | | | | llvm-svn: 190045 | ||||
* | tsan: catch races on condition variables | Dmitry Vyukov | 2013-09-03 | 3 | -0/+95 |
| | | | | llvm-svn: 189816 | ||||
* | [TSan] fixup for r189791: don't put ; on the newline | Alexey Samsonov | 2013-09-03 | 1 | -3/+1 |
| | | | | llvm-svn: 189792 | ||||
* | tsan: add suppressions for true/false positives in standard libraries | Dmitry Vyukov | 2013-09-03 | 1 | -0/+14 |
| | | | | llvm-svn: 189791 | ||||
* | [TSan] Move the /proc/self/maps parsing logic to sanitizer_common | Alexander Potapenko | 2013-09-03 | 1 | -57/+20 |
| | | | | | | Provide a generic way for the tools to generate memory profiles from contents of /proc/self/maps llvm-svn: 189789 | ||||
* | tsan: properly intercept pthread_cond functions | Dmitry Vyukov | 2013-09-02 | 5 | -41/+91 |
| | | | | llvm-svn: 189767 | ||||
* | [TSan] Add a couple of compiler warnings to TSan runtime compile flags | Alexey Samsonov | 2013-08-29 | 1 | -5/+9 |
| | | | | llvm-svn: 189581 | ||||
* | [TSan] Move build rules a bit to ensure correct dependencies of check-tsan ↵ | Alexey Samsonov | 2013-08-29 | 2 | -53/+51 |
| | | | | | | command llvm-svn: 189579 | ||||
* | Properly generate lists of exported symbols for sanitizer runtimes | Alexey Samsonov | 2013-08-27 | 5 | -66/+17 |
| | | | | | | | | | This change adds a Python script that is invoked for the just-built sanitizer runtime to generate the list of exported symbols passed to the linker. By default, it contains interceptors and sanitizer interface functions, but can be extended with tool-specific lists. llvm-svn: 189356 | ||||
* | tsan: better report formatting for Go | Dmitry Vyukov | 2013-08-16 | 3 | -14/+32 |
| | | | | | | | Say that gorotuine 1 is main goroutine. Remove excessive new line. llvm-svn: 188542 | ||||
* | tsan: intercept getaddrinfo | Dmitry Vyukov | 2013-08-13 | 1 | -0/+15 |
| | | | | | | | This is necessary to prevent false positives, see: https://code.google.com/p/thread-sanitizer/issues/detail?id=25 llvm-svn: 188291 | ||||
* | tsan/msan: add halt_on_error flag | Dmitry Vyukov | 2013-08-13 | 5 | -1/+33 |
| | | | | | | If halt_on_error==true, program terminates after reporting first error. llvm-svn: 188279 | ||||
* | [*San/RTL] Fix minor breakage | Timur Iskhodzhanov | 2013-08-13 | 1 | -8/+10 |
| | | | | | Grumbling: this hasn't been caught by running 'make check-{a,l,t}san check-sanitizer' llvm-svn: 188262 | ||||
* | Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where ↵ | Timur Iskhodzhanov | 2013-08-13 | 4 | -58/+64 |
| | | | | | | SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used llvm-svn: 188261 | ||||
* | Add "CHECK-" prefix to un-break buildbot failure. | Rui Ueyama | 2013-08-12 | 1 | -2/+2 |
| | | | | | | | After r188221, the prefix given by --check-prefix must match with the label as a whole. Substring is not considered to be a correct label anymore. llvm-svn: 188227 | ||||
* | [sanitizer] Intercept poll/ppoll. | Evgeniy Stepanov | 2013-08-12 | 3 | -7/+3 |
| | | | | llvm-svn: 188177 | ||||
* | [sanitizer] Intercept getgroups. | Evgeniy Stepanov | 2013-08-12 | 2 | -0/+2 |
| | | | | llvm-svn: 188167 | ||||
* | [tests] Update to use lit_config and lit package, as appropriate. | Daniel Dunbar | 2013-08-09 | 4 | -16/+20 |
| | | | | llvm-svn: 188116 | ||||
* | [sanitizer] Intercept scandir/scandir64. | Evgeniy Stepanov | 2013-08-08 | 2 | -0/+4 |
| | | | | llvm-svn: 187982 | ||||
* | [sanitizer] Intercept strerror and strerror_r. | Evgeniy Stepanov | 2013-08-08 | 2 | -0/+4 |
| | | | | llvm-svn: 187978 | ||||
* | [TSan] Fix free_race.c by removing `not` from the test invocation that ↵ | Alexander Potapenko | 2013-08-07 | 1 | -3/+2 |
| | | | | | | doesn't fail. llvm-svn: 187889 | ||||
* | [TSan] Let the users suppress use-after-free errors using the "race:" ↵ | Alexander Potapenko | 2013-08-07 | 3 | -10/+18 |
| | | | | | | | | | | | | | | | suppressions. If there's a race between a memory access and a free() call in the client program, it can be reported as a use-after-free (if the access occurs after the free()) or an ordinary race (if free() occurs after the access). We've decided to use a single "race:" prefix for both cases instead of introducing a "use-after-free:" one, because in many cases this allows us to keep a single suppression for both the use-after-free and free-after-use. This may be misleading if the use-after-free occurs in a non-racy way (e.g. in a single-threaded program). But normally such bugs shall not be suppressed. llvm-svn: 187885 | ||||
* | [sanitizer] Intercept sched_getaffinity. | Evgeniy Stepanov | 2013-08-07 | 2 | -0/+2 |
| | | | | | | Re-applying with a more reliable test case. llvm-svn: 187876 | ||||
* | Enable pipefail for TSan tests | Alexey Samsonov | 2013-08-07 | 65 | -66/+64 |
| | | | | llvm-svn: 187875 | ||||
* | Revert "[sanitizer] Intercept sched_getaffinity." | David Blaikie | 2013-08-07 | 2 | -2/+0 |
| | | | | | | | | | | | | This reverts commit r187788. The test case is unreliable (as the test may be run in a situation in which it has no affinity with cpu0). This can be recommitted with a more reliable test - possibly using CPU_COUNT != 0 instead (I wasn't entirely sure that a process was guaranteed to have at least one affinity, though it seems reasonable, or I'd have made the change myself). llvm-svn: 187841 | ||||
* | [sanitizer] Intercept sched_getaffinity. | Evgeniy Stepanov | 2013-08-06 | 2 | -0/+2 |
| | | | | llvm-svn: 187788 | ||||
* | [msan] Intercept confstr. | Evgeniy Stepanov | 2013-07-30 | 2 | -0/+2 |
| | | | | llvm-svn: 187412 | ||||
* | Disable pipefail for ThreadSanitizer. | Rafael Espindola | 2013-07-26 | 1 | -0/+2 |
| | | | | llvm-svn: 187272 | ||||
* | Use --driver-mode=g++ instead of -ccc-cxx; required after Clang r186605 | Hans Wennborg | 2013-07-18 | 1 | -1/+1 |
| | | | | llvm-svn: 186607 | ||||
* | tsan: treat SIGSYS as synchronous signal | Dmitry Vyukov | 2013-07-18 | 1 | -1/+2 |
| | | | | | | | | It is required for chromium sandboxing code. From the description it seems to be indeed synchronous -- called back on syscall with incorrect arguments, but seems to be unused in practice. So this should be fine. llvm-svn: 186579 | ||||
* | tsan: disable one more interceptor that causes recursion | Dmitry Vyukov | 2013-07-17 | 1 | -0/+1 |
| | | | | llvm-svn: 186497 | ||||
* | [Sanitizer] move strcpy and strncpy to common interceptors | Alexey Samsonov | 2013-07-16 | 1 | -26/+0 |
| | | | | llvm-svn: 186408 | ||||
* | tsan: support sigsuspend() call | Dmitry Vyukov | 2013-07-16 | 4 | -0/+46 |
| | | | | | | Intercepting it makes it process pending signal before return. llvm-svn: 186400 | ||||
* | [sanitizer] Support GLOB_ALTDIRFUNC in glob interceptor. | Evgeniy Stepanov | 2013-07-09 | 1 | -3/+6 |
| | | | | llvm-svn: 185932 | ||||
* | [sanitizer] Intercept realpath and canonicalize_file_name. | Evgeniy Stepanov | 2013-07-09 | 2 | -0/+4 |
| | | | | | | Handle realpath(path, NULL) form. llvm-svn: 185921 | ||||
* | [sanitizer] Intercept tcgetattr. | Evgeniy Stepanov | 2013-07-04 | 2 | -0/+2 |
| | | | | llvm-svn: 185626 | ||||
* | [sanitizer] More interceptors. | Evgeniy Stepanov | 2013-07-04 | 2 | -0/+16 |
| | | | | | | | | | bcopy strtoimax, strtoumax mbstowcs, mbsrtowcs, mbsnrtowcs wcstombs, wcsrtombs, wcsnrtombs llvm-svn: 185624 | ||||
* | [sanitizer] Intercept mbtowc, mbrtowc, get_current_dir_name. | Evgeniy Stepanov | 2013-07-02 | 2 | -0/+4 |
| | | | | | | Move getcwd to common interceptors. llvm-svn: 185424 | ||||
* | [sanitizer] Intercept setlocale. | Evgeniy Stepanov | 2013-07-02 | 2 | -0/+2 |
| | | | | llvm-svn: 185416 | ||||
* | [sanitizer] Intercept getnameinfo. | Evgeniy Stepanov | 2013-07-01 | 2 | -0/+2 |
| | | | | llvm-svn: 185338 | ||||
* | Hide mlock/munlock info message under verbosity flag. | Alexey Samsonov | 2013-07-01 | 1 | -1/+2 |
| | | | | llvm-svn: 185314 | ||||
* | Define the path to llvm-symbolizer tool in a common config to reduce copy-paste | Alexey Samsonov | 2013-06-30 | 1 | -5/+2 |
| | | | | llvm-svn: 185286 | ||||
* | Fix typo found by Clang fix for extern "C" function handling. | Richard Smith | 2013-06-28 | 1 | -1/+1 |
| | | | | llvm-svn: 185234 | ||||
* | [sanitizer] Intercept ptrace. | Evgeniy Stepanov | 2013-06-28 | 2 | -0/+2 |
| | | | | llvm-svn: 185142 | ||||
* | tsan: revert dynamic symbols file to the old incorrect one | Dmitry Vyukov | 2013-06-27 | 2 | -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 file | Dmitry Vyukov | 2013-06-27 | 2 | -13/+10 |
| | | | | llvm-svn: 185077 | ||||
* | [TSan] try to fix Go build | Alexey Samsonov | 2013-06-27 | 1 | -0/+1 |
| | | | | llvm-svn: 185063 |