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

PPC64: Check for branch to illegal address before checking for mem serialization

    Details

    • Subcomponent:
    • Introduced In Build:
      b08
    • Introduced In Version:
    • Resolved In Build:
      b02
    • CPU:
      ppc
    • OS:
      linux

      Description

      Even after JDK-8220794 was downported [0] to 11u the JVM still crashes on controlled crash #13 (e.i. ./java -XX:-UseSIGTRAP -XX:-CreateCoredumpOnCrash -XX:ErrorHandlerTest=13) because UseMemBar is not obsoleted on 11u (change JDK-8213436 is not applied [1] to 11u), hence on PPC we still check for memory serialization in the signal handler on a SIGSEGV without checking if it's due to a Data Storage interruption (a case in which it's valid to check for mem serialization) or due to a Instruction Storage interruption (a case in which is _not_ valid to check for a mem serialization instructions, like a branch to an illegal address).

      The fix is similar to JDK-8220794, which consists in filtering out the invalid case (Instruction Storage interruption) before calling is_memory_serialization() in the SIGSEGV.

      [0] https://bugs.openjdk.java.net/browse/JDK-8221834
      [1] https://bugs.openjdk.java.net/browse/JDK-8213436

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gromero Gustavo Romero
                Reporter:
                gromero Gustavo Romero
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: