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

Trace exceptions with a complete call-stack

XMLWordPrintable

      Unfortunately, it happens sometimes that applications implement bad practices in the code like swallowing java.lang.Throwable (includes java.lang.VirtualMachineError and java.lang.StackOverflowError) and continue execution with no intention to stop the application. This often results in secondary issues, as JVM is considered broken at this time.
      The debug flag "-Xlog:exceptions=log" (or the TraceException flag before it was converted to Unified Logging in JDK9) helps troubleshooting such applications. However, this log prints only the last activation record.
      It would be very desirable to get a full call stack instead. Also enable this for a selected exception class only.
      E.g. "print full stack only for exceptions of type java.lang.StackOverflowError" or "print full stack for all exceptions that derive from java.lang.VirtualMachineError", etc.

            Unassigned Unassigned
            mcadizolivar Mario Cadiz Olivares
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: