Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8189800

Add support for AddressSanitizer

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 10
    • Component/s: infrastructure
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b30
    • CPU:
      x86, x86_64
    • OS:
      linux, os_x

      Description

      From https://github.com/google/sanitizers/wiki/AddressSanitizer

      AddressSanitizer (aka ASan) is a memory error detector for C/C++. It finds:
      - Use after free (dangling pointer dereference)
      - Heap buffer overflow
      - Stack buffer overflow
      - Global buffer overflow
      - Use after return
      - Use after scope
      - Initialization order bugs
      - Memory leaks

      It might be useful to update configure/makefiles to support building JDK with ASan.

      AddressSanitizer is available in gcc 4.8 and clang 3.1.

        Attachments

          Activity

            People

            • Assignee:
              asmotrak Artem Smotrakov
              Reporter:
              asmotrak Artem Smotrakov
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: