-
Bug
-
Resolution: Unresolved
-
P3
-
8u401
-
x86_64
-
linux_ubuntu
ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
A DESCRIPTION OF THE PROBLEM :
When I ran this code on jdk 8u402, the JVM reported an error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi".
After further experimentation, I found that using a while-style statement tends to more easily result in the error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Proj", whereas using a for-style statement tends to more easily result in the error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi".
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/superword.cpp:1691), pid=69815, tid=0x00007fc055343700
# assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi
#
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java Test
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
continuously running
ACTUAL -
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/superword.cpp:1691
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/superword.cpp:1691), pid=11003, tid=0x00007f6faec5c700
# assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi
#
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. 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:
# hs_err_pid11003.log
[thread 140117651347200 also had an error]
#
# Compiler replay data is saved as:
# replay_pid11003.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 140117650294528
Dumping core ...
---------- BEGIN SOURCE ----------
The source code file and hs_err file are available at the URL:
https://drive.google.com/file/d/132lkTwOC_Z1sDnOP44ZFereQB698yPNp/view?usp=drive_link
---------- END SOURCE ----------
FREQUENCY : always
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
A DESCRIPTION OF THE PROBLEM :
When I ran this code on jdk 8u402, the JVM reported an error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi".
After further experimentation, I found that using a while-style statement tends to more easily result in the error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Proj", whereas using a for-style statement tends to more easily result in the error "assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi".
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/superword.cpp:1691), pid=69815, tid=0x00007fc055343700
# assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi
#
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java Test
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
continuously running
ACTUAL -
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/superword.cpp:1691
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk8u/hotspot/src/share/vm/opto/superword.cpp:1691), pid=11003, tid=0x00007f6faec5c700
# assert(n_tail->is_Mem()) failed: unexpected node for memory slice: Phi
#
# JRE version: OpenJDK Runtime Environment (8.0_402) (build 1.8.0_402-internal-fastdebug-2024_01_14_17_51-b00)
# Java VM: OpenJDK 64-Bit Server VM (25.402-b00-fastdebug mixed mode linux-amd64 compressed oops)
# Failed to write core dump. 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:
# hs_err_pid11003.log
[thread 140117651347200 also had an error]
#
# Compiler replay data is saved as:
# replay_pid11003.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
Current thread is 140117650294528
Dumping core ...
---------- BEGIN SOURCE ----------
The source code file and hs_err file are available at the URL:
https://drive.google.com/file/d/132lkTwOC_Z1sDnOP44ZFereQB698yPNp/view?usp=drive_link
---------- END SOURCE ----------
FREQUENCY : always