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

[ubsan] Adjust signal handling

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 21, 25, 26
    • hotspot
    • None
    • master
    • generic
    • generic

      A couple of tests e.g. VendorInfoPluginsTest but also some Hotspot like runtime/ErrorHandling/CreateCoredumpOnCrash.java put (write) to special addresses like 0 to provoke crashs.
      However this does not work well with ubsan-enabled binaries on the clang based platforms (macOS, AIX).
      The mentioned tests generate a SIGSEGV.

      Some other tests generate a SIGBUS, e.g.
      runtime/memory/ReserveMemory.java
      runtime/memory/ReadFromNoaccessArea.java
      and this leads to similar issues with ubsan-enabled binaries.

      We should adjust the signal handling with the sanitizer options, how to do this is documented here :
      https://github.com/google/sanitizers/wiki/SanitizerCommonFlags

            mbaesken Matthias Baesken
            mbaesken Matthias Baesken
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: