History log of /external/compiler-rt/lib/asan/asan_stack.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2d1fdb26e458c4ddc04155c1d421bced3ba90cd0 29-May-2014 Stephen Hines <srhines@google.com> Update compiler-rt aosp/master for 3.5 (r209699) rebase.

Change-Id: I158a30186f0faea2e2400e9dfdd878db2eb40e90
/external/compiler-rt/lib/asan/asan_stack.cc
a96c4dc70efa6e45b27640cdd9812e0817c9a75d 01-Nov-2013 Alexey Samsonov <samsonov@google.com> Consistently use StackTrace::PrintStack in ASan, LSan and MSan

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193834 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
7996a2e2a1c461743c9216f13429c04d75050230 29-Oct-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags to turn on/off the symbolization

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193587 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
db92faf488988543b18aaac537ac5ee4f4ee68a5 28-Oct-2013 Dmitry Vyukov <dvyukov@google.com> asan/msan: separate different report blocks with new lines

this makes the reports consistent with tsan, and much more readable.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193520 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
547f9dd4c0302fe9a571e1811a4a92dd82ef89f6 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] fix stack trace printing on Mac

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192990 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
6d95869fa900da9ddd68e15e2aa065854cfa176b 18-Oct-2013 Kostya Serebryany <kcc@google.com> [asan] reduce the size of AsanThreadContext by storing the stack trace in the stack depot

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192979 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
90b0f1e3ba126bb2e92ab51ef379c98782c23d90 04-Oct-2013 Alexey Samsonov <samsonov@google.com> Refactor the usage of strip_path_prefix option and make it more consistent across sanitizers

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
3c80c6c574850106481f82b9e23d1c728458d4a9 13-Aug-2013 Timur Iskhodzhanov <timurrrr@google.com> Define SANITIZER_INTERFACE_ATTRIBUTE on Windows and fix all the places where SANITIZER_INTERFACE_ATTRIBUTE or SANITIZER_ATTRIBUTE_WEAK are used

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@188261 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
ed20ebe35c64b8c7043447f6a48b0e5adc89aded 06-May-2013 Sergey Matveev <earthdok@google.com> [asan] Common flags in ASan.

Some flags that are common to ASan/MSan/TSan/LSan have been moved to
sanitizer_common.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181193 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
24e13723f8477d8c42ab8b2a7f4f69fc089842f1 19-Mar-2013 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [sanitizer] Replace more platform checks with SANITIZER_ constants.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177400 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
c70fa28caaaec2134f2c2230821fcc0f0d7ac27e 31-Jan-2013 Alexey Samsonov <samsonov@google.com> [ASan] Split ASan interface header into private and public parts. Add a test that makes sure users can include interface header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174058 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
6a08d29b2020004b801ca69d8aea5872a7e67d72 07-Dec-2012 Alexey Samsonov <samsonov@google.com> ASan: change the strategy we use for installing malloc/free/symbolization hooks on Linux: don't provide a default no-op implementations for hooks in runtime, and optionally call hooks if they are provided by the user. Don't force weak interface functions into runtime.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@169641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
1ca535700966cf5019dcc6684a62a734a7b96974 02-Oct-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@165000 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
d865fecddccebf898ceed24d096fc58fb29a6e57 29-Aug-2012 Chandler Carruth <chandlerc@gmail.com> Relocate the external headers provided by ASan and the common sanitizer
library.

These headers are intended to be available to user code when built with
AddressSanitizer (or one of the other sanitizer's in the future) to
interface with the runtime library. As such, they form stable external
C interfaces, and the headers shouldn't be located within the
implementation.

I've pulled them out into what seem like fairly obvious locations and
names, but I'm wide open to further bikeshedding of these names and
locations.

I've updated the code and the build system to cope with the new
locations, both CMake and Makefile. Please let me know if this breaks
anyone's build.

The eventual goal is to install these headers along side the Clang
builtin headers when we build the ASan runtime and install it. My
current thinking is to locate them at:

<prefix>/lib/clang/X.Y/include/sanitizer/common_interface_defs.h
<prefix>/lib/clang/X.Y/include/sanitizer/asan_interface.h
<prefix>/lib/clang/X.Y/include/sanitizer/...

But maybe others have different suggestions?

Fixing the style of the #include between these headers at least unblocks
experimentation with installing them as they now should work when
installed in these locations.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162822 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
1b5ea8fbbef73f5d9b41dbb26a21b9a0f4d1445e 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] actually move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162757 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
cc347222d55967fdb775429a8a0a3a5d795b8b50 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] even more refactoring to move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162754 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
2b939c3abc8b7713ef28000bd768ca6d77445f45 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] more refactoring to move StackTrace to sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162752 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
c3390df6670cb166119b961eb27a033fb9073496 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] some renaming before we move StackTrace into sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
283c296b64bc55deec9698260b3427a9b050a925 28-Aug-2012 Kostya Serebryany <kcc@google.com> [asan] get rid of AsanPrintf in favor of Printf from sanitizer_common

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
e1f5dac9296df08ff83ae5fca51ce4da995b55cf 27-Aug-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rename ProcessMaps to MemoryMappingLayout and fix Windows build by providing stub implementation

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162671 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
c93d3e2bdfb1ad9cce26a6e8d66764ed97a6d6b4 22-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] get rid of ASAN_USE_EXTERNAL_SYMBOLIZER compiler def in favor of __asan_set_symbolize_callback interface function. Now the user doesn't have to recompile ASan runtime to provide its own symbolizer

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@162358 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
71d47fff39a675607933e84071b2e342cc989a0a 15-Aug-2012 Alexander Potapenko <glider@google.com> Patch the frame address regardless of the frame number.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161946 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
ec3b0732a62bd0a52da7bbfc4e227038ccf9372c 15-Aug-2012 Alexander Potapenko <glider@google.com> Use SANITIZER_INTERFACE_ATTRIBUTE instead of __attribute__((visibility("default")))
Export CheckFailed, asan_malloc, asan_free, asan_memalign, AsanStackTrace::CompressStack, AsanStackTrace::UncompressStack from the dynamic runtime library.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161943 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
4e21c6bc78bdc36736cd61639a160ea5f725b333 06-Aug-2012 Alexey Samsonov <samsonov@google.com> [ASan] add new ASan option 'strip_path_prefix' to remove useless prefices from filenames in stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@161321 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
08e80a43a4046f50270cc86b5ad3a16b94375f97 19-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] subtract one from PCs in ASan error reports (as they originally contain return addresses). Make output tests stricter.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@160508 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
cb8c4dce691097718d5af41b36899b72ef4b1d84 09-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] Use common flags parsing machinery.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159933 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
c2018c124e4b3fe463bb996e57a0d7aa552b12f4 04-Jul-2012 Alexey Samsonov <samsonov@google.com> [ASan] Minor fix in symbolizer output.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159709 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
a68633fb76208137ccb807914df52758ee5ca6f0 03-Jul-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@159652 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
fa82b0887fd558b77a856730a0656460d5bf078d 15-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] Use ProcessMaps in symbolizer to get module name and offset for instruction address

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
996651d09e56caa91ffcc33bf1a13a283cfcd5e2 14-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] don't include deleted header

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
6895adc39c4e09371154c8037366ad4464163ed0 07-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] __asan::AsanProcMaps -> __sanitizer::ProcessMaps.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158139 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
e954101f6602ac181a2c3accfbbad0ae51b0bf7c 06-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer]: Introduce a common internal printf function. For now, also use tool-specific wrappers TsanPrintf (its output is controlled by TSan flags) and AsanPrintf (which copies its results to the ASan-private buffer). Supported formats: %[z]{d,u,x}, %s, %p. Re-write all format strings in TSan according to this format (this should have no effect on 64-bit platforms).

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158065 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
b9a30e0799787a99147e2587ef5ecc8c5f224160 05-Jun-2012 Alexey Samsonov <samsonov@google.com> [Sanitizer] remove using namespace __sanitizer lines

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157999 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
e5f5895bda30f374b0b51412fd4d837fa59aed66 04-Jun-2012 Alexey Samsonov <samsonov@google.com> Remove file-type tags for .cc files in ASan run-time library

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157927 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
5f2fe37bd979f18703a6b3b5bf71d18fca19b245 04-Jun-2012 Alexey Samsonov <samsonov@google.com> [ASan] Use ASan option symbolize to turn on internal symbolizer (in development)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157924 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
ee3925515e4c7966f3ef489f687aa7e5692806a9 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157747 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
3f4c3875c42078e22c7e5356c5746fd18756d958 31-May-2012 Kostya Serebryany <kcc@google.com> [asan] more renaming

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@157746 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
739eb7984139d457216623347ae3b7a706c0aadf 21-Mar-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> [asan] Support for %z to Printf()

At the moment, asan internal Printf() uses %l modifier for printing
values of size_t and related types. This works, because we control
both the implementation of Printf and all its uses, but can be a
little misleading.

This change adds support for %z to Printf(). All callers that print
sizes and pointers as integers are switched to %zu / %zx.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@153177 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
40928f1ec8a8f43464a83b416f75fbe89f21f753 08-Mar-2012 Kostya Serebryany <kcc@google.com> [asan]: fix off-by-one error in stack unwinder (asan issue #44; reproduced thanks to 'csmith' fuzzer)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@152347 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
09672caefb5694f1981a1712fdefa44840a95e67 08-Feb-2012 Alexey Samsonov <samsonov@google.com> AddressSanitizer: replace all "real_X" calls with "REAL(X)"

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@150073 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
9cfa194cc62026fc7c6e82f7303eee8ad4d10cf4 19-Jan-2012 Evgeniy Stepanov <eugeni.stepanov@gmail.com> EHABI-based stack trace on ARM.

The change removes the unused FLAG_fast_unwind, and forces EHABI-based unwind
on ARM, and fast (FP-based) unwind everywhere else.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148468 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
1d483d4e933705971ff6285522fb5aecfb8a2e20 18-Jan-2012 Alexander Potapenko <glider@google.com> Delete sysinfo/* and all references to it.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@148386 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
73248e304bfa86596c667b30feda0bf3c61f6ac9 09-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] fix mac build once more

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147796 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
efb3fa36cf421c346e8e54054cdae4fd798edab7 06-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] use dl_iterate_phdr for pre-symbolization on linux instead of parsing /proc/self/maps

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147628 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
df499b44de81fc757a789878f07fcaf19ebb0016 05-Jan-2012 Kostya Serebryany <kcc@google.com> [asan] implement our own /proc/self/maps reader and use it on linux instead of sysinfo.h

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
0ffe35c08475334243f760128c5b4b987e5a274b 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] enable memset/memcpy/memmove interceptors in asan-rt (in addition to those in the compiler module)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147319 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
52fb238ccc45781e4e1d097ae1ee748c898b5825 28-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] interceptor for memcmp. Patch by samsonov@google.com

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@147315 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
c6f2223a8772262e5e682403f2d57f0b465a98fc 08-Dec-2011 Kostya Serebryany <kcc@google.com> [asan] move build-time config options from makefile to source (otherwise we need config options in all makefiles)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@146161 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc
1e172b4bdec57329bf904f063a29f99cddf2d85f 30-Nov-2011 Kostya Serebryany <kcc@google.com> AddressSanitizer run-time library. Not yet integrated with the compiler-rt build system, but can be built using the old makefile. See details in README.txt

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@145463 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/asan/asan_stack.cc