| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
llvm-svn: 210649
|
|
|
|
|
|
|
|
| |
Use caller pc of __sanitizer_cov_module_init to figure out
when 2 sequential calls are from the same module; skip
.sancov.map file update in this case.
llvm-svn: 210267
|
|
|
|
|
|
|
|
|
|
| |
Reset coverage data on fork().
For memory-mapped mode (coverage_direct=1) this helps avoid loss of data
(before this change two processes would write to the same file simultaneously).
For normal mode, this reduces coverage dump size, because PCs from the parent
process are no longer inherited by the child.
llvm-svn: 210180
|
|
|
|
|
|
| |
Patch by Peter Bergner.
llvm-svn: 209879
|
|
|
|
|
|
|
|
|
|
|
| |
This way does not require a __sanitizer_cov_dump() call. That's
important on Android, where apps can be killed at arbitrary time.
We write raw PCs to disk instead of module offsets; we also write
memory layout to a separate file. This increases dump size by the
factor of 2 on 64-bit systems.
llvm-svn: 209653
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Generalize StackDepot and create a new specialized instance of it to
efficiently (i.e. without duplicating stack trace data) store the
origin history tree.
This reduces memory usage for chained origins roughly by an order of
magnitude.
Most importantly, this new design allows us to put two limits on
stored history data (exposed in MSAN_OPTIONS) that help avoid
exponential growth in used memory on certain workloads.
See comments in lib/msan/msan_origin.h for more details.
llvm-svn: 209284
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Sandboxed code may now pass additional arguments to
__sanitizer_sandbox_on_notify() to force all coverage data to be dumped to a
single file (the default is one file per module). The user may supply a file or
socket to write to. The latter option can be used to broker out the file writing
functionality. If -1 is passed, we pre-open a file.
llvm-svn: 209121
|
|
|
|
|
|
| |
Fixes https://code.google.com/p/thread-sanitizer/issues/detail?id=56
llvm-svn: 207114
|
|
|
|
| |
llvm-svn: 206178
|
|
|
|
|
|
| |
VPrintf uses common_flags()
llvm-svn: 202974
|
|
|
|
|
|
| |
Patch by Viktor Kutuzov!
llvm-svn: 202801
|
|
|
|
| |
llvm-svn: 202249
|
|
|
|
|
|
|
|
|
| |
code so it seems it should have more generic name and moved to a common scope.
Renamed to AdjustStackSize.
Patch by Viktor Kutuzov.
llvm-svn: 202011
|
|
|
|
|
|
| |
LeastSignificantSetBitIndex in bit vector (to iterate bits in increasing order)
llvm-svn: 201339
|
|
|
|
|
|
|
|
|
|
| |
Because of the way Bionic sets up signal stack frames, libc unwinder is unable
to step through it, resulting in broken SEGV stack traces.
Luckily, libcorkscrew.so on Android implements an unwinder that can start with
a signal context, thus sidestepping the issue.
llvm-svn: 201151
|
|
|
|
|
|
|
|
| |
https://code.google.com/p/address-sanitizer/issues/detail?id=261
If pthread_get_stacksize_np() returns 512K for the main thread on Mavericks, obtain the stack size from the current stack rlimit.
llvm-svn: 200703
|
|
|
|
| |
llvm-svn: 200550
|
|
|
|
|
|
|
| |
This change is a part of refactoring intended to have common signal handling behavior in all tools.
This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan.
llvm-svn: 200542
|
|
|
|
|
|
|
| |
This change is a part of refactoring intended to have common signal handling behavior in all tools.
Note that this particular change doesn't enable use_sigaltstack support in every tool.
llvm-svn: 200310
|
|
|
|
|
|
| |
This change duplicates all ASan output to system log on Android.
llvm-svn: 199887
|
|
|
|
| |
llvm-svn: 199883
|
|
|
|
|
|
| |
SANITIZER_CAN_USE_ALLOCATOR64=0). No functionality change by default is intended
llvm-svn: 198044
|
|
|
|
| |
llvm-svn: 197799
|
|
|
|
|
|
| |
uar_noreserve=1 will save some memory but also negatively affect performance
llvm-svn: 197233
|
|
|
|
| |
llvm-svn: 197232
|
|
|
|
| |
llvm-svn: 197226
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by their authors.
This may break builds where others added code relying on these patches,
but please *do not* revert this commit. Instead, we will prepare patches
which fix the failures.
Reverts the following commits:
r168306: "[asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu"
r168356: "[asan] more support for powerpc, patch by Peter Bergner"
r196489: "[sanitizer] fix the ppc32 build (patch by Jakub Jelinek)"
llvm-svn: 196802
|
|
|
|
|
|
| |
Instead of "if (common_flags()->verbosity) Report(...)" we now have macros.
llvm-svn: 196497
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 196263
|
|
|
|
| |
llvm-svn: 196112
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 193308
|
|
|
|
|
|
|
| |
Currently tests fail with:
Check failed: 'AAA' == 'AAA ==26017==Could not detach from thread 361395 (errno 3).'
llvm-svn: 192711
|
|
|
|
|
|
| |
Treat the fake stack as live memory.
llvm-svn: 192593
|
|
|
|
| |
llvm-svn: 192453
|
|
|
|
|
|
| |
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
|
|
|
|
| |
llvm-svn: 189804
|
|
|
|
| |
llvm-svn: 189799
|
|
|
|
|
|
|
| |
Add a class that holds a snapshot of the StackDepot optimized for querying by
ID. This allows us to speed up LSan dramatically.
llvm-svn: 189217
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used
llvm-svn: 188261
|
|
|
|
| |
llvm-svn: 186393
|
|
|
|
| |
llvm-svn: 183972
|