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

Show register content in hs-err file on assert

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 10
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b10

      Description

      At SAP we added a small feature to retrieve the current context when an assert happens and make that part of the hs-err file.
      That works similar to the SafeFetch logic: when an assert happens, we trigger a segfault and in the signal handler we squirrel the ucontext away, before continuing with error reporting.

      We do this right after the assert condition was evaluated, within the assert macro itself, as to preserve the context as close to the assertion point as possible.

      A short poll on hotspot-runtime-dev [1] indicated that there is interest we contribute this feature.

      [1] http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2017-October/025018.html

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stuefe Thomas Stuefe
              Reporter:
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: