History log of /external/compiler-rt/lib/lsan/lsan_common.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5d71de26cedae3dafc17449fe0182045c0bd20e8 21-Jul-2014 Stephen Hines <srhines@google.com> Update compiler-rt for rebase to r212749.

Includes a cherry-pick of:
r213309 - fixes umodsi3

Change-Id: Ic7367e3586b6af7ef74bee6a8cf437d5f28d975a
/external/compiler-rt/lib/lsan/lsan_common.cc
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/lsan/lsan_common.cc
28e41fed078ce7a457a1ab8de1b07407266695fb 25-Nov-2013 Sergey Matveev <earthdok@google.com> Merging r195652:
------------------------------------------------------------------------
r195652 | smatveev | 2013-11-25 19:54:31 +0400 (Mon, 25 Nov 2013) | 3 lines

[lsan] Unbreak lsan_testlib.cc.

Also, add missing logging output.
------------------------------------------------------------------------


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/branches/release_34@195668 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
2fb08720b11b4c339e191b90d85477c6a2dd74db 01-Nov-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Unify summary reporting across all sanitizers.

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".


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193864 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.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/lsan/lsan_common.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/lsan/lsan_common.cc
c1a1ed62228288155459d39194995a36aca4a8a6 26-Oct-2013 Peter Collingbourne <peter@pcc.me.uk> Overhaul the symbolizer interface.

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193448 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
b1907c71402e01deb6fa3909a75dbc674bfd907b 23-Oct-2013 Nick Lewycky <nicholas@mxc.ca> Continue to keep 'SUMMARY: ' prefix in lsan. Whoops!


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193232 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
137a9b84c25f1ad7d68a14f138cf270a03a738cb 21-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] When detect_leaks=false, be completely silent.

In particular, don't make a fuss if we're passed a malformed suppressions file,
or if we have trouble identifying ld.so. Also, make LSan interface functions
no-ops in this case.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193108 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
e852e41d345c4be4ca28962cbc6c6d59717759c7 15-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix bug when discovering indirectly leaked objects.

If an object contains pointers to itself, that doesn't make it indirectly
leaked. D'oh!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192716 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
c519335c2d6d32acaac32c0595f08a05081567e7 14-Oct-2013 Sergey Matveev <earthdok@google.com> [lsan] Support ASan's stack-use-after-return mode in LSan.

Treat the fake stack as live memory.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192593 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.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/lsan/lsan_common.cc
2946f13d6ca0cfc46d74c12e97dc40a17a7d232f 30-Sep-2013 Alexey Samsonov <samsonov@google.com> [LSan] Rework r191522 - treat allocations with short stack traces as live

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191662 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
4430fdb4b04ae28d22cc6b24eab762afdb2fa0b7 27-Sep-2013 Alexey Samsonov <samsonov@google.com> [LSan] Don't report leaks with single-frame stack traces

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191522 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
7847d77b246635211c3bf465421d49d7af5226c1 10-Sep-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
650c7d44b659ddfb4af471dc2ad79a727b7de939 03-Sep-2013 Sergey Matveev <earthdok@google.com> [lsan] Colorize LSan reports.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189804 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.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/lsan/lsan_common.cc
62519eb72ec1005d794685c1ec09df7c37631b27 22-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Make __lsan_do_leak_check() honor the detect_leaks flag.

Also move detect_leaks to common flags.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186821 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
841b6f29df24642cfbaa6e6fba5632d1712569ae 22-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Print direct leaks first.

Direct leaks are higher priority, so it makes sense to have them on top.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186819 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
f93fa97b9fb49c6aaeeadf94fc54c76374b580bd 18-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Add __lsan_do_leak_check() to the public interface.

Let users override the normal behavior to run leak checking earlier in
the process. Also fix a couple nits here and there.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186581 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
bac1f7b034d9b3bb15d98db755a2bc091c8ce005 12-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Increase the hardcoded limit on number of leaks.

We never expected to see so many leaks in the real world. Until we did.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@186157 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
c6ac98d7fcc81768b2ef7ddc785c27e3fc1bdef6 08-Jul-2013 Sergey Matveev <earthdok@google.com> [lsan] Handle fork() correctly.

Update the main thread's os_id on every pthread_create, and before
initiating leak checking. This ensures that we have the correct os_id even if we
have forked after Init().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185815 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
99560bf109ca14b1a48e1ae1206bcc11cdb7eae4 08-Jul-2013 Alexey Samsonov <samsonov@google.com> [LSan] Use overridable hook to report error summary

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185805 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
9b4ba948f1c19adafde8e78c520ce30ac7bb1033 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] When verbosity > 1, always print suppressions and summary (even if no leaks found).

Also fix an output bug.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185153 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
b33cfeb6004d3a93e6d35749c14db0190c6c2b4c 28-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Add suppression support.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185152 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
9fbfd96608070eb71e11fbfe42ec9e84016429ae 27-Jun-2013 Alexey Samsonov <samsonov@google.com> [LSan] Add the way to disable LSan at link time

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@185066 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ac78d0087281e9b40bb043f827fbde8c05c6505a 24-Jun-2013 Sergey Matveev <earthdok@google.com> Revert to C-style callbacks for iteration over allocator chunks.

Also clean up LSan code, fix some comments and replace void* with uptr
to bring down the number of reinterpret_casts.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184700 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
21e024eb4f1aa3c42bb9dbd1d93a4299807f9555 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Try REALLY hard to fix Win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184557 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
2439cd96e9af5004f82f0a954c55b0e4d9600b52 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] This time really fix Win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184556 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ca74cff8d0f3c003a3c379bc88cc1771d8bbe1be 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Fix win build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184555 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ef89d6b576bd8f5084b70e2d908cd53c37fab9f9 21-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Increase allocator space; minor fixes.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184554 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
200afbd8ba4904241c1ebcef4fa79d739ca01f73 21-Jun-2013 Sergey Matveev <earthdok@google.com> [asan] Move lsan_disabled out of thread context.

Fix for the case where disabler is used in pthread key destructor.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184553 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
9b618a7ec2ec78e602d8897008c6f02cba673794 20-Jun-2013 Sergey Matveev <earthdok@google.com> [asan] Define LSan annotations as no-ops if leak detection is not supported.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184422 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
c085fe807836b566b4fce7ccdfb307bb025693c5 19-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Move symbolization and reporting out of StopTheWorld callback.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@184303 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
dbeb48d34bb6447c33a0ef99aaf9ba36f7f4b852 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [LSan] Use a typedef for frontier vector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183973 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
a64d4359902f1f64992aedfe10d8882ae7c66f40 14-Jun-2013 Alexey Samsonov <samsonov@google.com> [Sanitizer] Rename InternalVector to InternalMmapVector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183972 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
b3b46dad13a2111a51fb1a67f36c8b633410e9b7 11-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Harmonized some naming inconsistencies.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183748 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
46ed75f54f1c3b7863ae74aec8c2c015d572f027 06-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Put SANITIZER_INTERFACE_ATTRIBUTE on LSan interface functions.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183429 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
cd571e07fd1179383188c70338fa0dc1c452cb19 06-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Implement __lsan_ignore_object().

Leak annotation similar to HeapChecker's IgnoreObject().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183412 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
5e719a705666988781b9735d62cafc808ade60e2 03-Jun-2013 Sergey Matveev <earthdok@google.com> [lsan] Add __lsan_disable() and __lsan_enable().

Objects allocated after a call to __lsan_disable() will be treated as
live memory. Also add a ScopedDisabler.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183099 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ba2169a467abf86c15d4b19a5ed4d978c584a98e 31-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Use the fast version of GetBlockBegin for leak checking in LSan and ASan.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182994 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ebe3a3608be122e799e264931f9cecf4cbc84edd 27-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Begin converting LSan tests to output tests.

In this CL all old tests are removed and one LIT test is added.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182730 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
f5a9ace4904e9daf3d962274cbbcb702ebc5450e 24-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Allow the ignored TLS range to be empty.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182657 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
8e66cf5e2b56214996185fce37cd704898d8bc9b 24-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Minor adjustments to LSan messages.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182648 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
6c3634b1d5eeb0bffea01df10caa7168c48c8c5d 24-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Prettify LSan reports and add a summary.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182646 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
969b529914f5bc17e4810076dccbaadf563d584c 24-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Add exitcode flag. Kill the process if leaks are found.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182641 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
0bc81775b75f2c8c6c8c0e1af4008771d5b882ab 21-May-2013 Sergey Matveev <earthdok@google.com> [asan] Do not invoke LSan hooks unless CAN_SANITIZE_LEAKS.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182389 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
9bdf7802d403b53baee3433ddddc220f457e039c 21-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Change CMakeLists to build the common LSan module for ASan.
Also, define CAN_SANITIZE_LEAKS.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182383 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
29b756851c04df07f1584dfd77021dd2f37a7391 20-May-2013 Sergey Matveev <earthdok@google.com> [lsan] GetUserBegin() in LSan.

Separate the notions of user-visible chunk and allocator chunk, to facilitate
ASan integration.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182256 91177308-0d34-0410-b5e6-96231b3b80d8
/external/compiler-rt/lib/lsan/lsan_common.cc
ab0f74438abd73342a9d09e1d8b687461cf18da1 20-May-2013 Sergey Matveev <earthdok@google.com> [lsan] Common leak checking module.

Leak checking functionality which will be shared between
LSan/ASan/MSan.

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