-
Bug
-
Resolution: Fixed
-
P4
-
8, 11, 18, 19
-
b03
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
OS: ubuntu18.04
$ java -version
openjdk version "11.0.15-internal" 2022-04-19
OpenJDK Runtime Environment (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode
A DESCRIPTION OF THE PROBLEM :
Run arbitrary program with -XX:-TwoOperandLIRForm, VM crashes with bug report:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk11u/src/hotspot/share/c1/c1_LIR.hpp:413), pid=52625, tid=52792
# assert(is_single_cpu() && !is_virtual()) failed: type check
#
# JRE version: OpenJDK Runtime Environment (11.0.15) (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
Host: wen-PowerEdge-R740, Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz, 96 cores, 251G, Ubuntu 18.04.6 LTS
Time: Thu Mar 17 09:47:45 2022 CST elapsed time: 0.234313 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007f8518694800): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=52792, stack(0x00007f849f16a000,0x00007f849f26b000)]
Current CompileTask:
C1: 234 5 b 3 java.lang.invoke.MethodHandleStatics::<clinit> (204 bytes)
Stack: [0x00007f849f16a000,0x00007f849f26b000], sp=0x00007f849f268b40, free space=1018k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x18de9ca] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1ca
V [libjvm.so+0x18dfabf] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
V [libjvm.so+0xb4cb80] report_vm_error(char const*, int, char const*, char const*, ...)+0x100
V [libjvm.so+0x7a49c0] LIR_OprDesc::as_register() const+0x60
V [libjvm.so+0x7c68ac] LIR_Assembler::logic_op(LIR_Code, LIR_OprDesc*, LIR_OprDesc*, LIR_OprDesc*)+0x2ec
V [libjvm.so+0x7b3196] LIR_Assembler::emit_lir_list(LIR_List*)+0xb6
V [libjvm.so+0x7b40c8] LIR_Assembler::emit_code(BlockList*)+0x158
V [libjvm.so+0x7505c3] Compilation::emit_code_body()+0x1e3
V [libjvm.so+0x750d8d] Compilation::compile_java_method()+0x59d
V [libjvm.so+0x751a94] Compilation::compile_method()+0x1d4
V [libjvm.so+0x752667] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, DirectiveSet*)+0x357
V [libjvm.so+0x75485c] Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x14c
V [libjvm.so+0xa7e2d0] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x390
V [libjvm.so+0xa7f298] CompileBroker::compiler_thread_loop()+0x418
V [libjvm.so+0x181006b] JavaThread::thread_main_inner()+0x20b
V [libjvm.so+0x180bea5] Thread::call_run()+0x75
V [libjvm.so+0x151cb06] thread_native_entry(Thread*)+0x106
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -Xcomp -XX:-TwoOperandLIRForm -version
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
openjdk version "11.0.15-internal" 2022-04-19
OpenJDK Runtime Environment (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode
ACTUAL -
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/c1_LIR.hpp:413
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk11u/src/hotspot/share/c1/c1_LIR.hpp:413), pid=97885, tid=98076
# assert(is_single_cpu() && !is_virtual()) failed: type check
#
# JRE version: OpenJDK Runtime Environment (11.0.15) (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
FREQUENCY : always
OS: ubuntu18.04
$ java -version
openjdk version "11.0.15-internal" 2022-04-19
OpenJDK Runtime Environment (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode
A DESCRIPTION OF THE PROBLEM :
Run arbitrary program with -XX:-TwoOperandLIRForm, VM crashes with bug report:
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk11u/src/hotspot/share/c1/c1_LIR.hpp:413), pid=52625, tid=52792
# assert(is_single_cpu() && !is_virtual()) failed: type check
#
# JRE version: OpenJDK Runtime Environment (11.0.15) (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
Host: wen-PowerEdge-R740, Intel(R) Xeon(R) Gold 6248R CPU @ 3.00GHz, 96 cores, 251G, Ubuntu 18.04.6 LTS
Time: Thu Mar 17 09:47:45 2022 CST elapsed time: 0.234313 seconds (0d 0h 0m 0s)
--------------- T H R E A D ---------------
Current thread (0x00007f8518694800): JavaThread "C1 CompilerThread0" daemon [_thread_in_native, id=52792, stack(0x00007f849f16a000,0x00007f849f26b000)]
Current CompileTask:
C1: 234 5 b 3 java.lang.invoke.MethodHandleStatics::<clinit> (204 bytes)
Stack: [0x00007f849f16a000,0x00007f849f26b000], sp=0x00007f849f268b40, free space=1018k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x18de9ca] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x1ca
V [libjvm.so+0x18dfabf] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
V [libjvm.so+0xb4cb80] report_vm_error(char const*, int, char const*, char const*, ...)+0x100
V [libjvm.so+0x7a49c0] LIR_OprDesc::as_register() const+0x60
V [libjvm.so+0x7c68ac] LIR_Assembler::logic_op(LIR_Code, LIR_OprDesc*, LIR_OprDesc*, LIR_OprDesc*)+0x2ec
V [libjvm.so+0x7b3196] LIR_Assembler::emit_lir_list(LIR_List*)+0xb6
V [libjvm.so+0x7b40c8] LIR_Assembler::emit_code(BlockList*)+0x158
V [libjvm.so+0x7505c3] Compilation::emit_code_body()+0x1e3
V [libjvm.so+0x750d8d] Compilation::compile_java_method()+0x59d
V [libjvm.so+0x751a94] Compilation::compile_method()+0x1d4
V [libjvm.so+0x752667] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*, DirectiveSet*)+0x357
V [libjvm.so+0x75485c] Compiler::compile_method(ciEnv*, ciMethod*, int, DirectiveSet*)+0x14c
V [libjvm.so+0xa7e2d0] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x390
V [libjvm.so+0xa7f298] CompileBroker::compiler_thread_loop()+0x418
V [libjvm.so+0x181006b] JavaThread::thread_main_inner()+0x20b
V [libjvm.so+0x180bea5] Thread::call_run()+0x75
V [libjvm.so+0x151cb06] thread_native_entry(Thread*)+0x106
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
java -Xcomp -XX:-TwoOperandLIRForm -version
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
openjdk version "11.0.15-internal" 2022-04-19
OpenJDK Runtime Environment (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
OpenJDK 64-Bit Server VM (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode
ACTUAL -
# To suppress the following error report, specify this argument
# after -XX: or in .hotspotrc: SuppressErrorAt=/c1_LIR.hpp:413
#
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/home/user/jdk_source/jdk11u/src/hotspot/share/c1/c1_LIR.hpp:413), pid=97885, tid=98076
# assert(is_single_cpu() && !is_virtual()) failed: type check
#
# JRE version: OpenJDK Runtime Environment (11.0.15) (fastdebug build 11.0.15-internal+0-adhoc.user.jdk11u)
# Java VM: OpenJDK 64-Bit Server VM (fastdebug 11.0.15-internal+0-adhoc.user.jdk11u, compiled mode, tiered, compressed oops, g1 gc, linux-amd64)
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
FREQUENCY : always