-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
8, 11, 17, 21
-
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:+VerifyAliases -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=/memnode.cpp:4792
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/JVM/JVMs/LineCov/jdk11u/src/hotspot/share/opto/memnode.cpp:4792), pid=5182, tid=5194
# assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel
#
# 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.5182)
#
# An error report file with more information is saved as:
# /home/tmp/hs_err_pid5182.log
#
# Compiler replay data is saved as:
# /home/tmp/replay_pid5182.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 5194
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
```
Also, this will cause the JVM to crash on OpenJDK8.
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:+VerifyAliases -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=/memnode.cpp:4792
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/JVM/JVMs/LineCov/jdk11u/src/hotspot/share/opto/memnode.cpp:4792), pid=5182, tid=5194
# assert(alias_idx >= Compile::AliasIdxRaw) failed: must not disturb base_memory or sentinel
#
# 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.5182)
#
# An error report file with more information is saved as:
# /home/tmp/hs_err_pid5182.log
#
# Compiler replay data is saved as:
# /home/tmp/replay_pid5182.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 5194
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
```
Also, this will cause the JVM to crash on OpenJDK8.
FREQUENCY : always
- duplicates
-
JDK-8037084 -XX:+VerifyAliases is broken
- Open