ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.user.jdk23u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.user.jdk23u, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
A DESCRIPTION OF THE PROBLEM :
When running testcase with the jdk compiled from the source code downloaded from the jdk23u GitHub repo, the jdk crashes. The frequency of problem occurrence is approximately 8 times every 10 executions. jdk17u cannot reproduce this issue, and using the - XComp option cannot effectively and stably reproduce it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
javac Test.java && java Test
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exit after normal execution, no output
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk23u/src/hotspot/share/opto/type.hpp:1962), pid=2662411, tid=2662425
# assert((bt == T_INT && _base == Int) || (bt == T_LONG && _base == Long)) failed: Not an Int
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.jdk23u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.jdk23u, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x891b46] ConstraintCastNode::optimize_integer_cast(PhaseGVN*, BasicType)+0x2e6
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /data/user/proj/toreport/352/reduce/core.2662411)
#
# An error report file with more information is saved as:
# /data/user/proj/toreport/352/reduce/hs_err_pid2662411.log
[thread 2662433 also had an error]
#
# Compiler replay data is saved as:
# /data/user/proj/toreport/352/reduce/replay_pid2662411.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
timeout: the monitored command dumped core
---------- BEGIN SOURCE ----------
class Test {
int a = 6;
long b;
int[] iArr9 = { 1, 2 };
void f() {
int o = -158;
int j[] = new int[a];
for (long e = 7; e < 91; ++e)
b -= 0;
for (int d = 3; d > -1; d--) {
int i13 = d;
try {
for (int i0 = 5; i0 < 15; i0++) {
for (int i11 = o - 1; i11 >= 0; i11--)
d = iArr9[i11];
}
} finally {
d = i13;
}
for (o = 0; o < 2; ++o) ;
}
}
public static void main(String[] l) {
try {
Test m = new Test();
for (int i = 0; i < 1000000; i++)
m.f();
} catch (Exception ex) {
}
}
}
---------- END SOURCE ----------
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.user.jdk23u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.user.jdk23u, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
A DESCRIPTION OF THE PROBLEM :
When running testcase with the jdk compiled from the source code downloaded from the jdk23u GitHub repo, the jdk crashes. The frequency of problem occurrence is approximately 8 times every 10 executions. jdk17u cannot reproduce this issue, and using the - XComp option cannot effectively and stably reproduce it.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
javac Test.java && java Test
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Exit after normal execution, no output
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/data/jdk23u/src/hotspot/share/opto/type.hpp:1962), pid=2662411, tid=2662425
# assert((bt == T_INT && _base == Int) || (bt == T_LONG && _base == Long)) failed: Not an Int
#
# JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-internal-adhoc.jdk23u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-internal-adhoc.jdk23u, mixed mode, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
# Problematic frame:
# V [libjvm.so+0x891b46] ConstraintCastNode::optimize_integer_cast(PhaseGVN*, BasicType)+0x2e6
#
# Core dump will be written. Default location: Core dumps may be processed with "/usr/share/apport/apport -p%p -s%s -c%c -d%d -P%P -u%u -g%g -- %E" (or dumping to /data/user/proj/toreport/352/reduce/core.2662411)
#
# An error report file with more information is saved as:
# /data/user/proj/toreport/352/reduce/hs_err_pid2662411.log
[thread 2662433 also had an error]
#
# Compiler replay data is saved as:
# /data/user/proj/toreport/352/reduce/replay_pid2662411.log
#
# If you would like to submit a bug report, please visit:
# https://bugreport.java.com/bugreport/crash.jsp
#
timeout: the monitored command dumped core
---------- BEGIN SOURCE ----------
class Test {
int a = 6;
long b;
int[] iArr9 = { 1, 2 };
void f() {
int o = -158;
int j[] = new int[a];
for (long e = 7; e < 91; ++e)
b -= 0;
for (int d = 3; d > -1; d--) {
int i13 = d;
try {
for (int i0 = 5; i0 < 15; i0++) {
for (int i11 = o - 1; i11 >= 0; i11--)
d = iArr9[i11];
}
} finally {
d = i13;
}
for (o = 0; o < 2; ++o) ;
}
}
public static void main(String[] l) {
try {
Test m = new Test();
for (int i = 0; i < 1000000; i++)
m.f();
} catch (Exception ex) {
}
}
}
---------- END SOURCE ----------
- duplicates
-
JDK-8334647 C2: CastII added by PhaseIdealLoop::add_template_assertion_predicate() should have control
- Resolved
- relates to
-
JDK-8288022 c2: Transform (CastLL (AddL into (AddL (CastLL when possible
- Resolved