JDK-8293851 : hs_err should print more stack in hex dump
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 11,17,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-09-15
  • Updated: 2023-08-23
  • Resolved: 2022-09-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17 JDK 20
17.0.9Fixed 20 b16Fixed
Related Reports
Relates :  
Relates :  
Description
Similar to JDK-8217879, the debugging would be easier if we dump more stack in the hex dump. This is especially convenient when debugging Loom and seeing more of the raw stack in the crash log. Reading farther from current SP is generally safe, since stack banging mechanism provides us with accessible stack at all times for normal SPs. In fact, many platforms already read significantly more stack than x86. We can homogenize the stack printing across all architectures.

As the safeguard, JDK-8217994 gives us the facility to read the memory much more safely, so we can dump more stack without elevated risk of secondary crash, in case the stack is not readable.
Comments
Fix Request (17u) Improves post-mortem crash logs, and provides the cleaner ground for more backports in this area. Applies cleanly. Builds and tests pass.
21-08-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1677 Date: 2023-08-21 09:51:21 +0000
21-08-2023

Changeset: cbd0688b Author: Aleksey Shipilev <shade@openjdk.org> Date: 2022-09-19 07:38:06 +0000 URL: https://git.openjdk.org/jdk/commit/cbd0688b321ff88a405be4f7929d6862e543ab50
19-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10282 Date: 2022-09-15 10:44:24 +0000
15-09-2022