JDK-8279077 : JFR crashes on Linux ppc due to missing crash protector in signal handler
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 8-pool,11-pool,13-pool,15-pool
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: ppc
  • Submitted: 2021-12-21
  • Updated: 2022-12-15
  • Resolved: 2022-01-04
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 11 JDK 15 Other
11.0.15Fixed 15.0.7 b01Fixed na,openjdk8u332Resolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
Our customer reported JFR crashes on Linux ppc when filling stack trace.

My investigation points to that Linux ppc signal handle does not install crash protection callback, as other platforms do, etc. linux_x86.

This bug seems to be day 1 bug, probably during the porting. Thomas Stuefe refactored [1] relevant code during 16 time frame , so this bug is presented in 15 and earlier version.

[1] JDK-8255711

Comments
Changeset: 67f1d62d Author: Zhengyu Gu <zgu@openjdk.org> Date: 2022-01-04 16:29:42 +0000 URL: https://git.openjdk.org/shenandoah-jdk8u/commit/67f1d62d39bd97942d6baaf7e226b95ace39514d
01-09-2022

Changeset: 250ef7dd Author: Zhengyu Gu <zgu@openjdk.org> Date: 2022-01-04 16:29:42 +0000 URL: https://git.openjdk.java.net/jdk15u/commit/250ef7dd34d2622864a6d7f92b645405997fad98
02-02-2022

[~zgu] Please remember to push to the mono-repo for jdk8u-dev[1]. [1] https://hg.openjdk.java.net/jdk8u/monojdk8u-dev/
10-01-2022

Fix Request (8u) A clean backport to 8u. The patch fixes a fatal crash with jfr on Linux ppc. The code that protects JVM from crashing, misses on Linux ppc, but exists on other Linux platforms, so it is a low risk fix.
05-01-2022

Fix Request (11u) A clean backport to 11u. The patch fixes a fatal crash with jfr on Linux ppc. The code that protects JVM from crashing, misses on Linux ppc, but exists on other Linux platforms, so it is a low risk fix.
05-01-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/739 Date: 2022-01-04 20:36:40 +0000
04-01-2022

Changeset: 250ef7dd Author: Zhengyu Gu <zgu@openjdk.org> Date: 2022-01-04 16:29:42 +0000 URL: https://git.openjdk.java.net/jdk15u-dev/commit/250ef7dd34d2622864a6d7f92b645405997fad98
04-01-2022

Fix Request (15u) I would like to fix this bug in jdk15u. The patch fixes a fatal crash with jfr on Linux ppc. The code that protects JVM from crashing, misses on Linux ppc, but exists on other Linux platforms, so it is a low risk fix.
04-01-2022

The call to check_crash_protection was added by JDK-8254824 for JDK 16. You can see in the commit https://github.com/openjdk/jdk/commit/011dd0d8 that it was added to every os_linux_xxx.cpp other than ppc. The refactoring that moved the code to signals_posix.cpp was also done for JDK 16 by JDK-JDK-8255711, commit https://github.com/openjdk/jdk/commit/dd8e4ffb.
03-01-2022

[~zgu] Please add a link to the bug which refactored code in JDK 17 (and, thus, made this bug not applicable to 17+)
22-12-2021

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk15u-dev/pull/155 Date: 2021-12-21 20:34:14 +0000
21-12-2021

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk11u-dev/pull/729 Date: 2021-12-21 18:49:47 +0000
21-12-2021