-
Bug
-
Resolution: Duplicate
-
P4
-
8, 11
-
generic
-
generic
ADDITIONAL SYSTEM INFORMATION :
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
A DESCRIPTION OF THE PROBLEM :
I ran a modified regression test case on JDK8u392 and found that the JVM crashed with -Xcomp options.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc2063f6ccb, pid=34507, tid=0x00007fc0a8636700
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x61dccb] methodHandle::methodHandle(Thread*, Method*)+0x2b
#
# 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 -Xcomp compiler.c1.TestValueNumberingNullObject
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc2063f6ccb, pid=34507, tid=0x00007fc0a8636700
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x61dccb] methodHandle::methodHandle(Thread*, Method*)+0x2b
#
# 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:
# /home//repository//toreport/TestValueNumberingNullObject_09_25_10_43_16/hs_err_pid34507.log
#
# Compiler replay data is saved as:
# /home//repository//toreport/TestValueNumberingNullObject_09_25_10_43_16/replay_pid34507.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
---------- END SOURCE ----------
FREQUENCY : always
Stack: [0x00007fed98b93000,0x00007fed98c93000], sp=0x00007fed98c90a20, free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x618bdb] methodHandle::methodHandle(Thread*, Method*)+0x2b
V [libjvm.so+0xce44c1] LinkResolver::runtime_resolve_virtual_method(CallInfo&, methodHandle, KlassHandle, Handle, KlassHandle, bool, Thread*)+0x201
V [libjvm.so+0xce81c5] LinkResolver::resolve_virtual_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0x255
V [libjvm.so+0xce838a] LinkResolver::resolve_virtual_call_or_null(KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool)+0x15a
V [libjvm.so+0x6168a5] ciMethod::resolve_invoke(ciKlass*, ciKlass*, bool)+0x205
V [libjvm.so+0x4b98a3] GraphBuilder::invoke(Bytecodes::Code)+0x1123
V [libjvm.so+0x4bac5b] GraphBuilder::iterate_bytecodes_for_block(int)+0x124b
V [libjvm.so+0x4bbd39] GraphBuilder::iterate_all_blocks(bool)+0x109
V [libjvm.so+0x4bcaba] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x2aa
V [libjvm.so+0x4c54bf] IR::IR(Compilation*, ciMethod*, int)+0x7ff
V [libjvm.so+0x4994a0] Compilation::build_hir() [clone .part.85]+0x150
V [libjvm.so+0x49d6d8] Compilation::compile_java_method()+0x908
V [libjvm.so+0x49d83a] Compilation::compile_method()+0x7a
V [libjvm.so+0x49df31] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x381
V [libjvm.so+0x49e9f1] Compiler::compile_method(ciEnv*, ciMethod*, int)+0x171
V [libjvm.so+0x717bb2] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x942
V [libjvm.so+0x719198] CompileBroker::compiler_thread_loop()+0x858
V [libjvm.so+0x111faa8] JavaThread::thread_main_inner()+0x198
V [libjvm.so+0x111fdb0] JavaThread::run()+0x2c0
V [libjvm.so+0xeb5672] java_start(Thread*)+0x102
C [libpthread.so.0+0x8609] start_thread+0xd9
Current CompileTask:
C1: 2009 764 b 3 TestValueNumberingNullObject::testFieldAccess (54 bytes)
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
A DESCRIPTION OF THE PROBLEM :
I ran a modified regression test case on JDK8u392 and found that the JVM crashed with -Xcomp options.
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc2063f6ccb, pid=34507, tid=0x00007fc0a8636700
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x61dccb] methodHandle::methodHandle(Thread*, Method*)+0x2b
#
# 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 -Xcomp compiler.c1.TestValueNumberingNullObject
ACTUAL -
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x00007fc2063f6ccb, pid=34507, tid=0x00007fc0a8636700
#
# JRE version: OpenJDK Runtime Environment (8.0_392) (build 1.8.0_392-internal-fastdebug--b00)
# Java VM: OpenJDK 64-Bit Server VM (25.392-b00-fastdebug compiled mode linux-amd64 compressed oops)
# Problematic frame:
# V [libjvm.so+0x61dccb] methodHandle::methodHandle(Thread*, Method*)+0x2b
#
# 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:
# /home//repository//toreport/TestValueNumberingNullObject_09_25_10_43_16/hs_err_pid34507.log
#
# Compiler replay data is saved as:
# /home//repository//toreport/TestValueNumberingNullObject_09_25_10_43_16/replay_pid34507.log
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
---------- BEGIN SOURCE ----------
---------- END SOURCE ----------
FREQUENCY : always
Stack: [0x00007fed98b93000,0x00007fed98c93000], sp=0x00007fed98c90a20, free space=1014k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x618bdb] methodHandle::methodHandle(Thread*, Method*)+0x2b
V [libjvm.so+0xce44c1] LinkResolver::runtime_resolve_virtual_method(CallInfo&, methodHandle, KlassHandle, Handle, KlassHandle, bool, Thread*)+0x201
V [libjvm.so+0xce81c5] LinkResolver::resolve_virtual_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0x255
V [libjvm.so+0xce838a] LinkResolver::resolve_virtual_call_or_null(KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool)+0x15a
V [libjvm.so+0x6168a5] ciMethod::resolve_invoke(ciKlass*, ciKlass*, bool)+0x205
V [libjvm.so+0x4b98a3] GraphBuilder::invoke(Bytecodes::Code)+0x1123
V [libjvm.so+0x4bac5b] GraphBuilder::iterate_bytecodes_for_block(int)+0x124b
V [libjvm.so+0x4bbd39] GraphBuilder::iterate_all_blocks(bool)+0x109
V [libjvm.so+0x4bcaba] GraphBuilder::GraphBuilder(Compilation*, IRScope*)+0x2aa
V [libjvm.so+0x4c54bf] IR::IR(Compilation*, ciMethod*, int)+0x7ff
V [libjvm.so+0x4994a0] Compilation::build_hir() [clone .part.85]+0x150
V [libjvm.so+0x49d6d8] Compilation::compile_java_method()+0x908
V [libjvm.so+0x49d83a] Compilation::compile_method()+0x7a
V [libjvm.so+0x49df31] Compilation::Compilation(AbstractCompiler*, ciEnv*, ciMethod*, int, BufferBlob*)+0x381
V [libjvm.so+0x49e9f1] Compiler::compile_method(ciEnv*, ciMethod*, int)+0x171
V [libjvm.so+0x717bb2] CompileBroker::invoke_compiler_on_method(CompileTask*)+0x942
V [libjvm.so+0x719198] CompileBroker::compiler_thread_loop()+0x858
V [libjvm.so+0x111faa8] JavaThread::thread_main_inner()+0x198
V [libjvm.so+0x111fdb0] JavaThread::run()+0x2c0
V [libjvm.so+0xeb5672] java_start(Thread*)+0x102
C [libpthread.so.0+0x8609] start_thread+0xd9
Current CompileTask:
C1: 2009 764 b 3 TestValueNumberingNullObject::testFieldAccess (54 bytes)
- duplicates
-
JDK-8237894 CTW: C1 compilation fails with assert(x->type()->tag() == f->type()->tag()) failed: should have same type
- Resolved