| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
| |
OpenFile.
This is to fix mapping coverage files into memory on OSX.
llvm-svn: 232936
|
| |
|
|
| |
llvm-svn: 229948
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Patch by Sagar Thakur
Reviewers: petarj, earthdok, kcc.
Subscribers: samsonov, dsanders, mohit.bhakkad, Anand.Takale, llvm-commits.
Differential Revision: http://reviews.llvm.org/D7013
llvm-svn: 229830
|
| |
|
|
|
|
| |
GetTls is not defined in Go mode.
llvm-svn: 229395
|
| |
|
|
| |
llvm-svn: 227851
|
| |
|
|
|
|
| |
This reverts commit r227633. SetEnv was prematurely deleted.
llvm-svn: 227665
|
| |
|
|
| |
llvm-svn: 227634
|
| |
|
|
| |
llvm-svn: 227633
|
| |
|
|
|
|
| |
move GetRSS to sanitizer_linux_libcdep.cc (no change in the function itself)
llvm-svn: 227416
|
| |
|
|
|
|
|
|
|
| |
See https://code.google.com/p/address-sanitizer/issues/detail?id=361
It's still not clear whether the values are correct in all cases, but at least
this should unbreak our bots.
llvm-svn: 226938
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary: No functionality change.
Test Plan: make check-all
Reviewers: kcc
Reviewed By: kcc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D6472
llvm-svn: 223164
|
| |
|
|
|
|
|
|
|
|
| |
MSanDR is a dynamic instrumentation tool that can instrument the code
(prebuilt libraries and such) that could not be instrumented at compile time.
This code is unused (to the best of our knowledge) and unmaintained, and
starting to bit-rot.
llvm-svn: 222232
|
| |
|
|
| |
llvm-svn: 221936
|
| |
|
|
|
|
|
|
|
| |
We may as well just use Symbolizer::GetOrInit() in all the cases.
Don't call Symbolizer::Get() early in tools initialization: these days
it doesn't do any important setup work, and we may as well create the
symbolizer the first time it's actually needed.
llvm-svn: 217558
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D5166
llvm-svn: 217148
|
| |
|
|
| |
llvm-svn: 216885
|
| |
|
|
|
|
|
|
|
| |
sanitizer_unwind_posix.cc
This allows the slow unwinder to be used on OSX (it's disabled for now, see
https://code.google.com/p/address-sanitizer/issues/detail?id=137 for details)
llvm-svn: 216877
|
| |
|
|
|
|
| |
Differential Revision: http://reviews.llvm.org/D4656
llvm-svn: 213940
|
| |
|
|
| |
llvm-svn: 212272
|
| |
|
|
| |
llvm-svn: 210649
|
| |
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
partially based on patch by H.J. Lu
llvm-svn: 209279
|
| |
|
|
|
|
| |
hacks to TSan
llvm-svn: 206423
|
| |
|
|
| |
llvm-svn: 204595
|
| |
|
|
|
|
|
| |
If the user requests OS default stack size, do not adjust it to our minimum
stack size (which is usually much less than the OS default).
llvm-svn: 204173
|
| |
|
|
|
|
|
|
|
|
|
| |
Make behavior introduced in r202820 conditional (under legacy_pthread_cond flag).
The new issue that we've hit with the satellite pthread_cond_t struct is
that pthread_condattr_getpshared does not work (satellite data is not shared between processes).
The idea is that most processes do not use pthread 2.2.5.
The rare ones that use (2.2.5 is dated by 2002) must specify legacy_pthread_cond=1
on their own risk.
llvm-svn: 204032
|
| |
|
|
| |
llvm-svn: 204029
|
| |
|
|
|
|
|
|
|
| |
if the thread is cancelled in pthread_cond_wait, it locks the mutex before
processing pthread_cleanup stack
but tsan was missing that, thus reporting false double-lock/wrong-unlock errors
see the test for details
llvm-svn: 203648
|
| |
|
|
| |
llvm-svn: 203238
|
| |
|
|
|
|
| |
Patch by Viktor Kutuzov!
llvm-svn: 203235
|
| |
|
|
| |
llvm-svn: 202837
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
This will be covered by null_deref.cc test (requires one more fix to pass).
llvm-svn: 201325
|
| |
|
|
| |
llvm-svn: 201212
|
| |
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
exporting them (gold complained)
llvm-svn: 200844
|
| |
|
|
|
|
| |
http://gcc.gnu.org/PR60038, the hardcoded sizeof(struct thread); patch by Jakub Jelinek
llvm-svn: 200733
|
| |
|
|
|
|
|
|
| |
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: 200549
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
Currently fails with:
gotsan.cc:7686:40: error: the address of 'int __sanitizer_pthread_attr_getstack(void*, void**, size_t*)' will always evaluate as 'true' [-Werror=address]
llvm-svn: 198261
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A helper function is a C++ function, and so even though one of the two
definitions is weak, it still technically triggers the ODR. Perhaps
these two definitions are ODR equivalent, but I'm not even confident in
that.
Instead, just define the function once, declare it as weak, and use
a wrapper that is clearly file-local. This avoids two definitions. Also
make the function extern "C" so that we can't even mess up the type
signature somehow or otherwise fail to match up the weak declaration
here with the interceptor defined elsewhere.
llvm-svn: 198253
|
| |
|
|
|
|
|
| |
Use this to implement GetListOfModules() on Mac and on Android
(on Linux we use dl_iterate_phdr).
llvm-svn: 198004
|
| |
|
|
| |
llvm-svn: 197806
|
| |
|
|
| |
llvm-svn: 197799
|
| |
|
|
| |
llvm-svn: 197232
|
| |
|
|
| |
llvm-svn: 197226
|
| |
|
|
|
|
| |
Instead of "if (common_flags()->verbosity) Report(...)" we now have macros.
llvm-svn: 196497
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Summary:
Call real pthread_attr_getstack instead of the interceptor
when we do intercept pthread_attr_getstack.
Reviewers: samsonov, eugenis
Reviewed By: samsonov
CC: llvm-commits
Differential Revision: http://llvm-reviews.chandlerc.com/D2237
llvm-svn: 195441
|
| |
|
|
| |
llvm-svn: 194805
|