-
Bug
-
Resolution: Fixed
-
P4
-
17, 18, 19
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8286225 | 18u-cpu | Harold Seigel | P4 | Resolved | Fixed | master |
JDK-8285738 | 18.0.2 | Harold Seigel | P4 | Resolved | Fixed | b06 |
JDK-8285723 | 17.0.5-oracle | Harold Seigel | P4 | Resolved | Fixed | b01 |
JDK-8284817 | 17.0.4 | Thomas Stuefe | P4 | Resolved | Fixed | b01 |
java "-Xlog:gc*=trace,safepoint*=trace,class*=trace" -version
This results in a JVM crash:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (logOutput.cpp:266), pid=16136, tid=9219
# guarantee(n_selections > 0) failed: Cannot find maximal selection.
#
# JRE version: (17.0.2+8) (build )
# Java VM: OpenJDK 64-Bit Server VM (17.0.2+8-86, mixed mode, sharing, tiered, unknown gc, bsd-aarch64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /private/tmp/hs_err_pid16136.log
#
#
The complete hs_err log is attached to this issue.
The above error was reproduced on a Mac M1 with 12.2.1 version of the OS, against a Java 17 instance. This is also reproducible against latest master branch of JDK.
Do note that it's the combination of gc, class and safepoint tags which triggers this. Using each of them individually (like gc*=trace) or as a couple (like gc*=trace,safepoint*=trace) doesn't cause any crash.
- backported by
-
JDK-8284817 Launching java with "-Xlog:gc*=trace,safepoint*=trace,class*=trace" crashes the JVM
- Resolved
-
JDK-8285723 Launching java with "-Xlog:gc*=trace,safepoint*=trace,class*=trace" crashes the JVM
- Resolved
-
JDK-8285738 Launching java with "-Xlog:gc*=trace,safepoint*=trace,class*=trace" crashes the JVM
- Resolved
-
JDK-8286225 Launching java with "-Xlog:gc*=trace,safepoint*=trace,class*=trace" crashes the JVM
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/03eb709e
-
Commit openjdk/jdk18u/b2418d82
-
Commit openjdk/jdk/1ca0ede6
-
Review openjdk/jdk17u-dev/347
-
Review openjdk/jdk18u/112
-
Review openjdk/jdk/7978