| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
can't build anything here.
llvm-svn: 202297
|
|
|
|
|
|
|
|
|
|
|
|
| |
C99/C++11."
This reverts commit r201910.
While __func__ may be standard in C++11, it was only recently added to
MSVC in 2013 CTP, and LLVM supports MSVC 2012. __FUNCTION__ may not be
standard, but it's *very* portable.
llvm-svn: 201916
|
|
|
|
| |
llvm-svn: 201910
|
|
|
|
|
|
|
|
| |
Symbolizer::IsExternalAvailable with Symbolizer::CanReturnFileLineInfo.
Remove now redundant checks in symbolizer initialization in TSan and MSan.
llvm-svn: 198000
|
|
|
|
| |
llvm-svn: 197569
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Fix race on report_fd/report_fd_pid between the parent process and the
tracer task.
Reviewers: samsonov
Reviewed By: samsonov
CC: llvm-commits, kcc, dvyukov
Differential Revision: http://llvm-reviews.chandlerc.com/D2306
llvm-svn: 196385
|
|
|
|
|
|
|
|
| |
I still don't know what is causing our bootstrapped LTO buildbots to fail,
but llvm r194701 seems to be OK and I can't imagine that these changes could
cause the problem.
llvm-svn: 194790
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 194702
|
|
|
|
|
|
|
|
| |
This reduces the number of "write" syscalls performed to print a single
stack frame description, and makes sanitizer output less intermixed with
program output. Also, add a number of unit tests.
llvm-svn: 194686
|
|
|
|
|
|
| |
doesn't need them)
llvm-svn: 194685
|
|
|
|
| |
llvm-svn: 193873
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
__sanitizer_report_error_summary to ReportErrorSummary.
llvm-svn: 193231
|
|
|
|
|
|
|
| |
Currently tests fail with:
Check failed: 'AAA' == 'AAA ==26017==Could not detach from thread 361395 (errno 3).'
llvm-svn: 192711
|
|
|
|
| |
llvm-svn: 192692
|
|
|
|
|
|
| |
across sanitizers
llvm-svn: 191943
|
|
|
|
|
|
| |
functions. Move some code around to get rid of extra source files
llvm-svn: 190410
|
|
|
|
|
|
|
|
|
| |
Visual Studio appears to close stderr before launching a non-console
win32 program. This means we don't see any sanitizer reports. If
stderr printing fails, call OutputDebugStringA to get the reports into
the Visual Studio debugger console.
llvm-svn: 190030
|
|
|
|
|
|
|
|
|
| |
Handle calls to Die() from the tracer thread. Fixes a bug where a CHECK
could fail in the tracer thread, resulting in a call to AsanDie. The tracer
thread then exited and the parent process continued execution despite its
address space being in an unusable state.
llvm-svn: 189216
|
|
|
|
|
|
|
|
|
|
| |
Before, we had an unused internal_getpid function for Linux, and a
platform-independent GetPid function. To make the naming conventions
consistent for syscall-like functions, the GetPid syscall wrapper
in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is
renamed to internal_getpid, bringing the Linux variant into use.
llvm-svn: 182132
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
library
Introduce a new object library, RTSanitizerCommonLibc, which will contain
the subset of sanitizer_common with libc dependencies. RTSanitizerCommon
contains the remainder of sanitizer_common, and is intended to have no
libc dependencies. Begin moving code to RTSanitizerCommonLibc, starting
with sanitizer_common.cc, whose libc-dependent portion is moved to
sanitizer_common_libcdep.cc, the first member of the new library.
This split affects the CMake build only. The makefile build continues
to produce the full sanitizer_common library.
llvm-svn: 182118
|
|
|
|
| |
llvm-svn: 181698
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change moves to a model where the error value of a system call is
potentially contained in the return value itself rather than being
implicit in errno. The helper function internal_iserror can be used
to extract the error value from a return value. On platforms other
than Linux/x86_64 this still uses errno, but other platforms are free
to port their error handling to this new model.
Differential Revision: http://llvm-reviews.chandlerc.com/D756
llvm-svn: 181436
|
|
|
|
|
|
|
|
|
|
|
| |
StopTheWorld puts the process in a suspended state before running the
user-supplied callback. To be used in TSan and in leak checking code.
Linux implementation provided.
Patch by Sergey Matveev (earthdok@google.com)
llvm-svn: 177156
|
|
|
|
| |
llvm-svn: 175622
|
|
|
|
|
|
| |
printing summary if debug info is missing. The tests will follow later once we establish the lit-like tests for msan.
llvm-svn: 174595
|
|
|
|
| |
llvm-svn: 174505
|
|
|
|
|
|
| |
Currently, works only if symbolization happens in-process.
llvm-svn: 174501
|
|
|
|
| |
llvm-svn: 174187
|
|
|
|
|
|
| |
tool name
llvm-svn: 174059
|
|
|
|
| |
llvm-svn: 172975
|
|
|
|
|
|
| |
child processes after fork().
llvm-svn: 172828
|
|
|
|
| |
llvm-svn: 172203
|
|
|
|
| |
llvm-svn: 169836
|
|
|
|
|
|
|
|
| |
should be used by
the client programs to notify the tools that sandboxing is about to be turned on.
llvm-svn: 169732
|
|
|
|
| |
llvm-svn: 169511
|
|
|
|
| |
llvm-svn: 169485
|
|
|
|
| |
llvm-svn: 169474
|
|
|
|
|
|
| |
it completely to support platforms with multiple possible page sizes.
llvm-svn: 168517
|
|
|
|
|
|
| |
determine whether error reports are printed to terminal
llvm-svn: 167298
|
|
|
|
| |
llvm-svn: 167296
|
|
|
|
| |
llvm-svn: 167291
|
|
|
|
|
|
| |
for error reports
llvm-svn: 167290
|
|
|
|
|
|
| |
file PATH.PID instead of stderr
llvm-svn: 163872
|
|
|
|
|
|
| |
runtimes: implement tool-specific Die and CheckFailed functions via callbacks
llvm-svn: 163603
|
|
|
|
|
|
| |
malloc, which leads to deadlock in ASan allocator
llvm-svn: 160262
|
|
|
|
|
|
|
| |
First, placement new from standard library conflicts with our own.
Second, we are in trouble if user uses the same function (we either get instrumented code in runtime, or non-instrumented code in user program).
llvm-svn: 159738
|
|
|
|
| |
llvm-svn: 158496
|
|
|
|
| |
llvm-svn: 158138
|