summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* [Sanitizer] Use same PC threshold in slow unwinder on all platformsAlexey Samsonov2013-11-131-2/+5
| | | | llvm-svn: 194580
* [Sanitizers] Share some stack walking code between Windows and LinuxTimur Iskhodzhanov2013-11-091-0/+13
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2126 llvm-svn: 194326
* [ASan] Kill use_stack_depot runtime flag and stack trace compression routines.Alexey Samsonov2013-11-011-105/+0
| | | | llvm-svn: 193868
* Consistently use StackTrace::PrintStack in ASan, LSan and MSanAlexey Samsonov2013-11-011-0/+6
| | | | llvm-svn: 193834
* [Sanitizer] Simplify StackTrace::PrintStack interface: prefer common flags ↵Alexey Samsonov2013-10-291-2/+2
| | | | | | to turn on/off the symbolization llvm-svn: 193587
* Overhaul the symbolizer interface.Peter Collingbourne2013-10-251-3/+4
| | | | | | | | | | | | | | | | | | | | | | This moves away from creating the symbolizer object and initializing the external symbolizer as separate steps. Those steps now always take place together. Sanitizers with a legacy requirement to specify their own symbolizer path should use InitSymbolizer to initialize the symbolizer with the desired path, and GetSymbolizer to access the symbolizer. Sanitizers with no such requirement (e.g. UBSan) can use GetOrInitSymbolizer with no need for initialization. The symbolizer interface has been made thread-safe (as far as I can tell) by protecting its member functions with mutexes. Finally, the symbolizer interface no longer relies on weak externals, the introduction of which was probably a mistake on my part. Differential Revision: http://llvm-reviews.chandlerc.com/D1985 llvm-svn: 193448
* [Sanitizer] Return implementation of StackTrace::CopyFrom to headerAlexey Samsonov2013-10-141-6/+0
| | | | llvm-svn: 192574
* [Sanitizer] Remove StackTrace::max_depth fieldAlexey Samsonov2013-10-121-3/+2
| | | | llvm-svn: 192534
* [Sanitizer] Turn GetStackTrace() into StackTrace::Unwind()Alexey Samsonov2013-10-121-2/+0
| | | | llvm-svn: 192533
* [Sanitizer] StackTrace: kill CopyTo and reimplement CopyFromAlexey Samsonov2013-10-111-0/+6
| | | | llvm-svn: 192441
* [Sanitizer] Simplify StackTrace::FastUnwindStack interface and fix a bug ↵Alexey Samsonov2013-10-111-2/+8
| | | | | | with one-frame stack traces llvm-svn: 192428
* Refactor the usage of strip_path_prefix option and make it more consistent ↵Alexey Samsonov2013-10-041-34/+11
| | | | | | across sanitizers llvm-svn: 191943
* [Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov2013-09-101-3/+3
| | | | | | functions. Move some code around to get rid of extra source files llvm-svn: 190410
* [sanitizer] Change strip_path_prefix flag behavior.Sergey Matveev2013-07-221-2/+3
| | | | | | | | Previously (in tools other than TSan) the entire prefix of the path had to mach the argument. With this change, only some suffix of the prefix has to match. This is the same way this flag works in TSan. llvm-svn: 186837
* [asan] fix a rare failure in fast unwinder, found by asan/clang bootstrapKostya Serebryany2013-06-181-0/+1
| | | | llvm-svn: 184190
* Use an address-of operator here to silence an MSVC warning.Peter Collingbourne2013-05-271-1/+1
| | | | llvm-svn: 182740
* [nolibc] Move symbolizer to RTSanitizerCommonLibc, and make it optional ↵Peter Collingbourne2013-05-211-1/+1
| | | | | | using a weak symbol. llvm-svn: 182372
* [sanitizer] while doing fast unwinding make sure that the frame pointer is ↵Kostya Serebryany2013-04-041-0/+1
| | | | | | aligned; fix lint llvm-svn: 178747
* [libsanitizer] Unmapping the old cache partially invalidates the memory ↵Alexander Potapenko2013-03-261-1/+1
| | | | | | | | | | layout, so add a flag to skip cache update for cases when that's unacceptable (e.g. lsan). Patch by Sergey Matveev (earthdok@google.com) llvm-svn: 178000
* [Sanitizer] Change MemoryMappingLayout methods to also report memory ↵Alexey Samsonov2013-03-131-1/+2
| | | | | | protection flags (for future use in leak checker). Patch by Sergey Matveev. llvm-svn: 176931
* [Sanitizer] Try to fix infinite loop in frame pointer unwinderReid Kleckner2013-02-201-2/+3
| | | | | | | | Using > instead of >= ensures that each frame deref makes progress and that we eventually terminate. Issue: https://code.google.com/p/address-sanitizer/issues/detail?id=162 llvm-svn: 175661
* [msan] add strip_path_prefix flag; print error summary; don't crash while ↵Kostya Serebryany2013-02-071-0/+1
| | | | | | printing summary if debug info is missing. The tests will follow later once we establish the lit-like tests for msan. llvm-svn: 174595
* [asan] print a short one-line report summary after the full report. ↵Kostya Serebryany2013-02-061-2/+2
| | | | | | Currently, works only if symbolization happens in-process. llvm-svn: 174501
* [Sanitizer] Expose StackTrace::GetPreviousInstructionPc() to get PC of call ↵Alexey Samsonov2012-12-181-5/+4
| | | | | | instruction from return address llvm-svn: 170424
* [asan] two more bits for __sparc__Kostya Serebryany2012-12-031-0/+2
| | | | llvm-svn: 169141
* [asan/tsan] get rid of kPageSize completely in favor of GetPageSizeCached(). ↵Kostya Serebryany2012-11-241-1/+1
| | | | | | This makes the code friendly to more platforms llvm-svn: 168537
* Allow PopStackFrames leave the stack empty.Evgeniy Stepanov2012-11-211-1/+1
| | | | llvm-svn: 168425
* [asan/tsan] do not use __WORDSIZE macro, as it is glibc-private thing. ↵Kostya Serebryany2012-11-211-4/+4
| | | | | | Instead, define our own SANITIZER_WORDSIZE llvm-svn: 168424
* [asan] more support for powerpc, patch by Peter BergnerKostya Serebryany2012-11-201-0/+13
| | | | llvm-svn: 168356
* [asan] support x32 mode in the fast stack unwinder. Patch by H.J. Lu Kostya Serebryany2012-11-191-7/+7
| | | | llvm-svn: 168306
* [Sanitizer] fall back to online symbolizer if user-provided callback failedAlexey Samsonov2012-10-181-1/+2
| | | | llvm-svn: 166177
* [Sanitizer] fix line widthAlexey Samsonov2012-10-021-1/+2
| | | | llvm-svn: 165009
* [Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. ↵Alexey Samsonov2012-10-021-22/+46
| | | | | | 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. llvm-svn: 165000
* Add a missing const qualifier.Evgeniy Stepanov2012-09-271-1/+1
| | | | llvm-svn: 164773
* [asan/tsan] use InternalScopedBuffer instead of stack arrays. Use mmap ↵Kostya Serebryany2012-08-291-8/+7
| | | | | | inseted of InternalAlloc in InternalScopedBuffer llvm-svn: 162834
* [asan] fix the cmake build (hopefully)Kostya Serebryany2012-08-281-6/+6
| | | | llvm-svn: 162760
* [asan] actually doing 'svn add' helpsKostya Serebryany2012-08-281-0/+223
llvm-svn: 162759
OpenPOWER on IntegriCloud