summaryrefslogtreecommitdiffstats
path: root/compiler-rt/test/sanitizer_common
Commit message (Collapse)AuthorAgeFilesLines
...
* [sanitizer] More string interceptors: strstr, strcasestr, strspn, strcspn, ↵Yury Gribov2015-05-285-0/+68
| | | | | | | | | | strpbrk. Patch by Maria Guseva. Differential Revision: http://reviews.llvm.org/D9017 llvm-svn: 238406
* [sanitizer][MIPS] Add --target flag for MIPS32Sagar Thakur2015-05-191-0/+1
| | | | | | | | | | Without the --target flag, clang uses the mips64 triple which selects the n64 abi. We need to add --target=mips-linux-gnu, so that clang can select the correct abi for mips32r2. Reviewers: dsanders, kcc, samsonov Subscribers: llvm-commits, mohit.bhakkad, jaydeep Differential Revision: http://reviews.llvm.org/D9249 llvm-svn: 237675
* [asan] under handle_abort=1 option intercept SIGABRT in addition to ↵Kostya Serebryany2015-05-051-0/+24
| | | | | | SIGSEGV/SIGBUS. Among other things this will allow to set up a death callback for SIGABRT and thus properly handle assert() in lib/Fuzzer llvm-svn: 236474
* [Sanitizer] Fix getpwnam test on ppc64le Fedora 21.Jay Foad2015-04-231-1/+2
| | | | | | | | | | | | | | | | Summary: On ppc64le Fedora 21, getpwnam_r("no-such-user", ...) returns ENOENT instead of 0. Tolerate this in the test case. Reviewers: eugenis Reviewed By: eugenis Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9233 llvm-svn: 235654
* tsan: fix signal handling during stop-the-worldDmitry Vyukov2015-03-051-0/+41
| | | | | | | | | | | | | | | | | | | | | Long story short: stop-the-world briefly resets SIGSEGV handler to SIG_DFL. This breaks programs that handle and continue after SIGSEGV (namely JVM). See the test and comments for details. This is reincarnation of reverted r229678 (http://reviews.llvm.org/D7722). Changed: - execute TracerThreadDieCallback only on tracer thread - reset global data in TracerThreadSignalHandler/TracerThreadDieCallback - handle EINTR from waitpid Add 3 new test: - SIGSEGV during leak checking - StopTheWorld operation during signal storm from an external process - StopTheWorld operation when the program generates and handles SIGSEGVs http://reviews.llvm.org/D8032 llvm-svn: 231367
* [Sanitizer] Run test/sanitizer_common lit tests on all supported architectures.Alexey Samsonov2015-03-022-7/+19
| | | | llvm-svn: 231025
* [Sanitizer] Restrict open_memstream to x86_64. Fixes PR22714.Alexey Samsonov2015-03-021-0/+1
| | | | llvm-svn: 230996
* [MSan][MIPS] Fix for some failing tests on MIPS64Mohit K. Bhakkad2015-02-181-3/+11
| | | | | | | | | | | | | | Enabling internal ptrace for mips, which fixes some ptrace related tests. Along with this fixing some other failures. Reviewers: Reviewers: eugenis, kcc, samsonov Subscribers: dsanders, sagar, lldb-commits Differential Revision: http://reviews.llvm.org/D7332 llvm-svn: 229656
* [asan] use getrusage as an alternative to reading /proc/self/statm. Also ↵Kostya Serebryany2015-01-292-1/+7
| | | | | | move GetRSS to sanitizer_linux_libcdep.cc (no change in the function itself) llvm-svn: 227416
* [sanitizer] Move sched_getparam test under Linux/.Evgeniy Stepanov2015-01-221-0/+0
| | | | llvm-svn: 226832
* [sanitizer] Intercept sched_getparam.Evgeniy Stepanov2015-01-221-0/+13
| | | | llvm-svn: 226827
* [sanitizer] Make unrecognized flags not fatal.Evgeniy Stepanov2015-01-191-2/+10
| | | | | | Print a warning at verbosity=1 and higher instead of dying immediately. llvm-svn: 226458
* [sanitizer] Move options-related tests to sanitizer_common.Evgeniy Stepanov2015-01-193-0/+36
| | | | | | And handle help=1 in standalone LSan. llvm-svn: 226438
* [asan] make a test consume 2x less RAM (we observe flaky bot failures that ↵Kostya Serebryany2015-01-081-10/+10
| | | | | | seem like OOMs) llvm-svn: 225478
* [asan] add a flag soft_rss_limit_mbKostya Serebryany2015-01-061-0/+62
| | | | llvm-svn: 225323
* [asan] new flag: hard_rss_limit_mbKostya Serebryany2014-12-161-0/+35
| | | | llvm-svn: 224353
* [asan] introduce __sanitizer_set_death_callback, deprecate ↵Kostya Serebryany2014-12-151-0/+49
| | | | | | __asan_set_death_callback llvm-svn: 224286
* [Sanitizer] Introduce "stack_trace_format" runtime flag.Alexey Samsonov2014-11-061-10/+10
| | | | | | | | | | | | | | | | This flag can be used to specify the format of stack frames - user can now provide a string with placeholders, which should be printed for each stack frame with placeholders replaced with actual data. For example "%p" will be replaced by PC, "%s" will be replaced by the source file name etc. "DEFAULT" value enforces default stack trace format currently used in all the sanitizers except TSan. This change also implements __sanitizer_print_stack_trace interface function in TSan. llvm-svn: 221469
* Disable XFAIL on ARM since the x86_64 specific code is isolatedRenato Golin2014-11-051-2/+0
| | | | llvm-svn: 221347
* Get the Linux ptrace test working on PowerPC64Jay Foad2014-11-051-1/+18
| | | | | | | | | | | | | | The test refers to user_regs_struct.rip so it can only ever have worked on x86-64. Put this code inside an appropriate #if, and add a similar case for PowerPC64. (If we do likewise for ARM we can probably remove the XFAILs, but I have no way of testing that.) Those changes are enough to get the test working for me on big-endian PowerPC64 Fedora 19. Differential Revision: http://reviews.llvm.org/D6108 llvm-svn: 221337
* Add runtime flag 'symbolize_inline_frames' to disable symbolization of ↵Alexey Samsonov2014-10-242-4/+13
| | | | | | inlined frames done in llvm-symbolizer llvm-svn: 220582
* Mark sanitizer tests XFAIL on ARMv7Renato Golin2014-10-081-0/+1
| | | | | | | | | ASAN, UBSAN and profile tests that don't work with arm-linux-gnueabi and android also don't work on armv7l-linux-gnueabihf. Some of the tests have known causes, others not yet. In order to get a green bot, I'm disabling those tests for now and will investigate when the priority rises. llvm-svn: 219343
* Custom wrappers for DFSanitizing sprintf & snprintf.Lorenzo Martignoni2014-10-081-1/+0
| | | | | | Differential Revision: http://reviews.llvm.org/D5561 llvm-svn: 219293
* Use "-gline-tables-only" instead of "-g" in sanitizer test suites.Alexey Samsonov2014-09-052-2/+2
| | | | | | | We are interested in verifying that -gline-tables-only provides enough debug information for verbose error reports and symbolized stack traces. llvm-svn: 217284
* [lsan] Implement the public allocator interface in standalone LSan.Sergey Matveev2014-08-261-2/+2
| | | | llvm-svn: 216459
* [lsan] Implement __sanitizer_print_stack_trace() in standalone LSan.Sergey Matveev2014-08-261-1/+1
| | | | llvm-svn: 216454
* [sanitizer] move mlock interceptor from asan/tsan/msan to common; no ↵Kostya Serebryany2014-08-251-0/+13
| | | | | | functionality change intended llvm-svn: 216407
* Add regression test for PR15823Alexey Samsonov2014-08-181-0/+11
| | | | llvm-svn: 215941
* [TSan] Initialize flags as early as possible. Disables back coredump, ↵Alexey Samsonov2014-08-151-0/+16
| | | | | | accidentally enabled in r215479. Add a test. llvm-svn: 215763
* [sanitizer] Intercept timerfd_settime, timerfd_gettime.Evgeniy Stepanov2014-08-071-0/+52
| | | | llvm-svn: 215112
* [sanitizer] De-flake one test.Evgeniy Stepanov2014-07-151-2/+1
| | | | llvm-svn: 213054
* [sanitizer] Intercept getpass.Evgeniy Stepanov2014-07-141-0/+33
| | | | llvm-svn: 212937
* [Sanitizer] Move test for malloc/free hooks under test/sanitizer_commonAlexey Samsonov2014-07-071-0/+38
| | | | llvm-svn: 212474
* [sanitizer] support c11 aligned_alloc, Linux only for nowKostya Serebryany2014-07-044-1/+12
| | | | llvm-svn: 212322
* Remove ARM XFAIL from passing testGreg Fitzgerald2014-06-241-1/+0
| | | | llvm-svn: 211608
* [sanitizer] Intercept pthread_*attr_get*.Evgeniy Stepanov2014-06-191-0/+20
| | | | | | This is a resubmit of r211166 reverted due to osx breakage. llvm-svn: 211264
* Revert "[sanitizer] Intercept pthread_*attr_get*."Arnold Schwaighofer2014-06-181-20/+0
| | | | | | This reverts commit r211166. It broke public mac os x bots. llvm-svn: 211206
* [sanitizer] Intercept pthread_*attr_get*.Evgeniy Stepanov2014-06-181-0/+20
| | | | llvm-svn: 211166
* Un-xfail passing ARM Android testsGreg Fitzgerald2014-06-061-1/+1
| | | | llvm-svn: 210360
* [MSan] Implement __sanitizer_print_stack_trace().Sergey Matveev2014-05-262-0/+22
| | | | llvm-svn: 209625
* XFAIL ptrace test on armGreg Fitzgerald2014-05-201-0/+1
| | | | | | | | | | | | | | | | | | The patch adds better target_triple and target_arch defaults for lit tests, which allows us to XFAIL tests based on architecture. Was: target_triple = LLVM_DEFAULT_TARGET_TRIPLE target_arch = HOST_ARCH Now: target_triple = COMPILER_RT_TEST_TARGET_TRIPLE , otherwise LLVM_DEFAULT_TARGET_TRIPLE target_arch = first item in COMPILER_RT_TEST_TARGET_TRIPLE Differential Revision: http://reviews.llvm.org/D3855 llvm-svn: 209256
* Run common and profile tests in cross-compiled builds.Greg Fitzgerald2014-05-201-1/+1
| | | | | | Route target_cflags to common and profile tests llvm-svn: 209248
* [sanitizer] Fix crash in getgrnam_r and similar interceptors.Evgeniy Stepanov2014-05-141-0/+19
| | | | | | | When no matching record is found, getgrnam_r return 0 but sets result to NULL. Should fix PR19734. llvm-svn: 208773
* [sanitizer] Move open_memstream test under Linux.Evgeniy Stepanov2014-05-141-0/+0
| | | | llvm-svn: 208755
* [msan] Better open_memstream support.Evgeniy Stepanov2014-05-131-0/+57
| | | | | | | | Move fflush and fclose interceptors to sanitizer_common. Use a metadata map to keep information about the external locations that must be updated when the file is written to. llvm-svn: 208676
* Mark ptrace test as Linux-specificAlexey Samsonov2014-05-132-0/+9
| | | | llvm-svn: 208643
* Restrict the set of sanitizers that should run tests from test/sanitizer_commonAlexey Samsonov2014-05-121-1/+10
| | | | llvm-svn: 208639
* [Sanitizer] Add the machinery to run the same test under several sanitizersAlexey Samsonov2014-05-094-4/+113
| | | | llvm-svn: 208378
* [Sanitizer] Move lit config for sanitizer_common unit tests under Unit/ dir ↵Alexey Samsonov2014-05-082-3/+3
| | | | | | for consistency. llvm-svn: 208373
* Move config for sanitizer_common tests under test/ for consistencyAlexey Samsonov2014-02-202-0/+24
llvm-svn: 201779
OpenPOWER on IntegriCloud