JDK-8293344 : JDK-8242181 broke stack printing for non-attached threads
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2022-09-05
  • Updated: 2022-09-13
  • Resolved: 2022-09-05
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 20
20 b14Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
https://bugs.openjdk.org/browse/JDK-8242181 gave us source infos in call stacks on Linux, which is really nice, but it made stack printing more vulnerable. We now require Thread::current, which makes stack printing fail and crash in non-attached threads. Causes truncated or missing stacks in hs-err file resp. crashes if stack printing is used outside error reporting.
Comments
Changeset: d4e3e695 Author: Thomas Stuefe <stuefe@openjdk.org> Date: 2022-09-05 13:08:14 +0000 URL: https://git.openjdk.org/jdk/commit/d4e3e69505db1b114afec2f6a61acf1261a8e69c
05-09-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/10158 Date: 2022-09-05 07:12:11 +0000
05-09-2022