-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
11
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
We found that in the development version of Hotspot in JDK11, there exists an option that will crash the JVM as long as it is specified.
For example, for any test program like:
```java
public class Test {
public static void main(String[] args) {
System.out.println("Success Loaded!");
}
}
```
If we run this program on Ubuntu with OpenJDK8 or OpenJDK11 using the following command:
```java
pathTo/jdk11u/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:-UseExactTypes -cp . Test
```
The output of the above command is:
```java
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/graphKit.cpp:2817
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/JVM/JVMs/LineCov/jdk11u/src/hotspot/share/opto/graphKit.cpp:2817), pid=5115, tid=5150
# Error: assert(recv_xtype->klass_is_exact()) failed
#
# JRE version: OpenJDK Runtime Environment (11.0.21) (fastdebug build 11.0.21-internal+0-adhoc.root.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.21-internal+0-adhoc.root.jdk11u, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/tmp/core.5115)
#
# An error report file with more information is saved as:
# /home/tmp/hs_err_pid5115.log
[thread 5151 also had an error]
[thread 5127 also had an error]
[thread 5152 also had an error]
[thread 5153 also had an error]
[thread 5154 also had an error]
#
# Compiler replay data is saved as:
# /home/tmp/replay_pid5115.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 5150
Dumping core ...
Aborted (core dumped)
```
Ubuntu Version:
```java
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
```
FREQUENCY : always
We found that in the development version of Hotspot in JDK11, there exists an option that will crash the JVM as long as it is specified.
For example, for any test program like:
```java
public class Test {
public static void main(String[] args) {
System.out.println("Success Loaded!");
}
}
```
If we run this program on Ubuntu with OpenJDK8 or OpenJDK11 using the following command:
```java
pathTo/jdk11u/build/linux-x86_64-normal-server-fastdebug/jdk/bin/java -XX:-UseExactTypes -cp . Test
```
The output of the above command is:
```java
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/graphKit.cpp:2817
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/JVM/JVMs/LineCov/jdk11u/src/hotspot/share/opto/graphKit.cpp:2817), pid=5115, tid=5150
# Error: assert(recv_xtype->klass_is_exact()) failed
#
# JRE version: OpenJDK Runtime Environment (11.0.21) (fastdebug build 11.0.21-internal+0-adhoc.root.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.21-internal+0-adhoc.root.jdk11u, mixed mode, tiered, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport %p %s %c %d %P" (or dumping to /home/tmp/core.5115)
#
# An error report file with more information is saved as:
# /home/tmp/hs_err_pid5115.log
[thread 5151 also had an error]
[thread 5127 also had an error]
[thread 5152 also had an error]
[thread 5153 also had an error]
[thread 5154 also had an error]
#
# Compiler replay data is saved as:
# /home/tmp/replay_pid5115.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 5150
Dumping core ...
Aborted (core dumped)
```
Ubuntu Version:
```java
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
```
FREQUENCY : always
- duplicates
-
JDK-8248234 Disabling UseExactTypes crashes C2
- Resolved