Skip to content
Snippets Groups Projects
  • Anna Zaks's avatar
    376b8380
    [docs] Several updates to the Address Sanitizer webpage. · 376b8380
    Anna Zaks authored
     - Added the description of the interceptor suppression.
     - Re-organized a bit: grouped a few things under the Issue Suppression
       section, grouped IOC and leaks under a section, placed symbolication
       info into Symbolizing the Reports section..
     - In supported platforms: "MacOS" -> "OS X"; added "iOS Simulator"
     - Added a paragraph to the Usage section describing when DYLD_INSERT_LIBRARIES
       might need to be used.
     - "attribute((no_sanitize_address))" -> "__attribute__((no_sanitize("address")))"
     - Updated Leak Sanitizer page with most up to date info.
    ....
    
    http://reviews.llvm.org/D10559
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240725 91177308-0d34-0410-b5e6-96231b3b80d8
    376b8380
    History
    [docs] Several updates to the Address Sanitizer webpage.
    Anna Zaks authored
     - Added the description of the interceptor suppression.
     - Re-organized a bit: grouped a few things under the Issue Suppression
       section, grouped IOC and leaks under a section, placed symbolication
       info into Symbolizing the Reports section..
     - In supported platforms: "MacOS" -> "OS X"; added "iOS Simulator"
     - Added a paragraph to the Usage section describing when DYLD_INSERT_LIBRARIES
       might need to be used.
     - "attribute((no_sanitize_address))" -> "__attribute__((no_sanitize("address")))"
     - Updated Leak Sanitizer page with most up to date info.
    ....
    
    http://reviews.llvm.org/D10559
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@240725 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
LeakSanitizer.rst 925 B

LeakSanitizer

Introduction

LeakSanitizer is a run-time memory leak detector. It can be combined with :doc:`AddressSanitizer` to get both memory error and leak detection. LeakSanitizer does not introduce any additional slowdown when used in this mode. The LeakSanitizer runtime can also be linked in separately to get leak detection only, at a minimal performance cost.

Current status

LeakSanitizer is turned on by default, but it is only supported on x86_64 Linux.

The combined mode has been tested on fairly large software projects. The stand-alone mode has received much less testing.

There are plans to support LeakSanitizer in :doc:`MemorySanitizer` builds.

More Information

https://code.google.com/p/address-sanitizer/wiki/LeakSanitizer