compiler/calls/fromCompiled/CompiledInvokeDynamic2NativeTest.java run with
"-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler" flags crashes with
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/scratch/opt/jprt/T/P1/083409.katya/s/hotspot/src/share/vm/runtime/sharedRuntime.cpp:1299), pid=4961, tid=4987
# assert((!is_virtual && invoke_code == Bytecodes::_invokestatic ) || (!is_virtual && invoke_code == Bytecodes::_invokespecial) || (!is_virtual && invoke_code == Bytecodes::_invokehandle ) || (!is_virtual && invoke_code == Bytecodes::_invokedynamic) || ( is_virtual && invoke_code != Bytecodes::_invokestatic )) failed: inconsistent bytecode
#
# JRE version: Java(TM) SE Runtime Environment (10.0) (fastdebug build 10-internal+0-2017-08-14-083409.katya.hs10-graal-new)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 10-internal+0-2017-08-14-083409.katya.hs10-graal-new, mixed mode, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/epavlova/tmp/JTwork/scratch/core.4961)
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.src=/scratch/epavlova/tmp/hotspot/test/compiler/calls/fromCompiled -Dtest.src.path=/scratch/epavlova/tmp/hotspot/test/compiler/calls/fromCompiled:/scratch/epavlova/tmp/test/lib:/scratch/epavlova/tmp/hotspot/test -Dtest.classes=/scratch/epavlova/tmp/JTwork/classes/compiler/calls/fromCompiled -Dtest.class.path=/scratch/epavlova/tmp/JTwork/classes/compiler/calls/fromCompiled:/scratch/epavlova/tmp/JTwork/classes/test/lib:/scratch/epavlova/tmp/JTwork/classes -Dtest.vm.opts= -Dtest.tool.vm.opts= -Dtest.compiler.opts= -Dtest.java.opts=-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Dtest.jdk=/scratch/epavlova/tmp/build -Dcompile.jdk=/scratch/epavlova/tmp/build -Dtest.timeout.factor=1.0 -Dtest.modules=java.base/jdk.internal.misc java.base/jdk.internal.org.objectweb.asm -Dtest.nativepath=/scratch/epavlova/tmp/./native --add-modules=java.base --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djava.library.path=/scratch/epavlova/tmp/./native -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. -Xbatch com.sun.javatest.regtest.agent.MainWrapper /scratch/epavlova/tmp/JTwork/compiler/calls/fromCompiled/CompiledInvokeDynamic2NativeTest.d/main.3.jta -compileCaller 4 -checkCallerCompileLevel 4 -nativeCallee
Host: bur00bjp.us.oracle.com, Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 4 cores, 14G, Oracle Linux Server release 7.1
Time: Mon Aug 14 09:44:50 2017 EDT elapsed time: 2 seconds (0d 0h 0m 2s)
--------------- T H R E A D ---------------
Current thread (0x00007fbc5c6e9000): JavaThread "MainThread" [_thread_in_vm, id=4987, stack(0x00007fbc1d2ff000,0x00007fbc1d400000)]
Stack: [0x00007fbc1d2ff000,0x00007fbc1d400000], sp=0x00007fbc1d3faa30, free space=1006k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x17506d2] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x162
V [libjvm.so+0x175149f] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
V [libjvm.so+0xae79cd] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
V [libjvm.so+0x157e7e5] SharedRuntime::resolve_sub_helper(JavaThread*, bool, bool, Thread*)+0x315
V [libjvm.so+0x157ef6e] SharedRuntime::resolve_helper(JavaThread*, bool, bool, Thread*)+0x4e
V [libjvm.so+0x158916d] SharedRuntime::resolve_opt_virtual_call_C(JavaThread*)+0x11d
v ~RuntimeStub::resolve_opt_virtual_call
J 618 jvmci compiler.calls.common.InvokeDynamic.caller()V (39 bytes) @ 0x00007fbc48d4c754 [0x00007fbc48d4c6e0+0x0000000000000074] (null)
j compiler.calls.common.CallsBase.runTest([Ljava/lang/String;)V+186
j compiler.calls.common.InvokeDynamic.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub
V [libjvm.so+0xe7cac6] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x846
V [libjvm.so+0x151d0b0] invoke(InstanceKlass*, methodHandle const&, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*)+0xb40
V [libjvm.so+0x151f9ac] Reflection::invoke_method(oop, Handle, objArrayHandle, Thread*)+0x1bc
V [libjvm.so+0xfc699d] JVM_InvokeMethod+0x21d
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@10-internal
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@10-internal
J 428 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (10 bytes) @ 0x00007fbc3f0228e4 [0x00007fbc3f022600+0x00000000000002e4]
J 427 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (65 bytes) @ 0x00007fbc3f021ec4 [0x00007fbc3f021580+0x0000000000000944]
j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
j java.lang.Thread.run()V+11 java.base@10-internal
v ~StubRoutines::call_stub
V [libjvm.so+0xe7cac6] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x846
V [libjvm.so+0xe79a1f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x41f
V [libjvm.so+0xe79c72] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0xa2
V [libjvm.so+0xfa0071] thread_entry(JavaThread*, Thread*)+0x91
V [libjvm.so+0x16b392e] JavaThread::thread_main_inner()+0x22e
V [libjvm.so+0x16b3bbe] JavaThread::run()+0x1ce
V [libjvm.so+0x13f500a] thread_native_entry(Thread*)+0xfa
C [libpthread.so.0+0x7dc5] start_thread+0xc5
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~RuntimeStub::resolve_opt_virtual_call
J 618 jvmci compiler.calls.common.InvokeDynamic.caller()V (39 bytes) @ 0x00007fbc48d4c754 [0x00007fbc48d4c6e0+0x0000000000000074] (null)
j compiler.calls.common.CallsBase.runTest([Ljava/lang/String;)V+186
j compiler.calls.common.InvokeDynamic.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@10-internal
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@10-internal
J 428 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (10 bytes) @ 0x00007fbc3f0228e4 [0x00007fbc3f022600+0x00000000000002e4]
J 427 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (65 bytes) @ 0x00007fbc3f021ec4 [0x00007fbc3f021580+0x0000000000000944]
j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
j java.lang.Thread.run()V+11 java.base@10-internal
v ~StubRoutines::call_stub
"-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler" flags crashes with
# A fatal error has been detected by the Java Runtime Environment:
#
# Internal Error (/scratch/opt/jprt/T/P1/083409.katya/s/hotspot/src/share/vm/runtime/sharedRuntime.cpp:1299), pid=4961, tid=4987
# assert((!is_virtual && invoke_code == Bytecodes::_invokestatic ) || (!is_virtual && invoke_code == Bytecodes::_invokespecial) || (!is_virtual && invoke_code == Bytecodes::_invokehandle ) || (!is_virtual && invoke_code == Bytecodes::_invokedynamic) || ( is_virtual && invoke_code != Bytecodes::_invokestatic )) failed: inconsistent bytecode
#
# JRE version: Java(TM) SE Runtime Environment (10.0) (fastdebug build 10-internal+0-2017-08-14-083409.katya.hs10-graal-new)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 10-internal+0-2017-08-14-083409.katya.hs10-graal-new, mixed mode, tiered, jvmci, jvmci compiler, compressed oops, g1 gc, linux-amd64)
# Core dump will be written. Default location: Core dumps may be processed with "/usr/libexec/abrt-hook-ccpp %s %c %p %u %g %t e" (or dumping to /scratch/epavlova/tmp/JTwork/scratch/core.4961)
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
#
--------------- S U M M A R Y ------------
Command Line: -Dtest.src=/scratch/epavlova/tmp/hotspot/test/compiler/calls/fromCompiled -Dtest.src.path=/scratch/epavlova/tmp/hotspot/test/compiler/calls/fromCompiled:/scratch/epavlova/tmp/test/lib:/scratch/epavlova/tmp/hotspot/test -Dtest.classes=/scratch/epavlova/tmp/JTwork/classes/compiler/calls/fromCompiled -Dtest.class.path=/scratch/epavlova/tmp/JTwork/classes/compiler/calls/fromCompiled:/scratch/epavlova/tmp/JTwork/classes/test/lib:/scratch/epavlova/tmp/JTwork/classes -Dtest.vm.opts= -Dtest.tool.vm.opts= -Dtest.compiler.opts= -Dtest.java.opts=-XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Dtest.jdk=/scratch/epavlova/tmp/build -Dcompile.jdk=/scratch/epavlova/tmp/build -Dtest.timeout.factor=1.0 -Dtest.modules=java.base/jdk.internal.misc java.base/jdk.internal.org.objectweb.asm -Dtest.nativepath=/scratch/epavlova/tmp/./native --add-modules=java.base --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.org.objectweb.asm=ALL-UNNAMED -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCI -XX:+TieredCompilation -XX:+UseJVMCICompiler -Djava.library.path=/scratch/epavlova/tmp/./native -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -Xbootclasspath/a:. -Xbatch com.sun.javatest.regtest.agent.MainWrapper /scratch/epavlova/tmp/JTwork/compiler/calls/fromCompiled/CompiledInvokeDynamic2NativeTest.d/main.3.jta -compileCaller 4 -checkCallerCompileLevel 4 -nativeCallee
Host: bur00bjp.us.oracle.com, Intel(R) Xeon(R) CPU E5-2690 0 @ 2.90GHz, 4 cores, 14G, Oracle Linux Server release 7.1
Time: Mon Aug 14 09:44:50 2017 EDT elapsed time: 2 seconds (0d 0h 0m 2s)
--------------- T H R E A D ---------------
Current thread (0x00007fbc5c6e9000): JavaThread "MainThread" [_thread_in_vm, id=4987, stack(0x00007fbc1d2ff000,0x00007fbc1d400000)]
Stack: [0x00007fbc1d2ff000,0x00007fbc1d400000], sp=0x00007fbc1d3faa30, free space=1006k
Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.so+0x17506d2] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x162
V [libjvm.so+0x175149f] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
V [libjvm.so+0xae79cd] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
V [libjvm.so+0x157e7e5] SharedRuntime::resolve_sub_helper(JavaThread*, bool, bool, Thread*)+0x315
V [libjvm.so+0x157ef6e] SharedRuntime::resolve_helper(JavaThread*, bool, bool, Thread*)+0x4e
V [libjvm.so+0x158916d] SharedRuntime::resolve_opt_virtual_call_C(JavaThread*)+0x11d
v ~RuntimeStub::resolve_opt_virtual_call
J 618 jvmci compiler.calls.common.InvokeDynamic.caller()V (39 bytes) @ 0x00007fbc48d4c754 [0x00007fbc48d4c6e0+0x0000000000000074] (null)
j compiler.calls.common.CallsBase.runTest([Ljava/lang/String;)V+186
j compiler.calls.common.InvokeDynamic.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub
V [libjvm.so+0xe7cac6] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x846
V [libjvm.so+0x151d0b0] invoke(InstanceKlass*, methodHandle const&, Handle, bool, objArrayHandle, BasicType, objArrayHandle, bool, Thread*)+0xb40
V [libjvm.so+0x151f9ac] Reflection::invoke_method(oop, Handle, objArrayHandle, Thread*)+0x1bc
V [libjvm.so+0xfc699d] JVM_InvokeMethod+0x21d
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@10-internal
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@10-internal
J 428 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (10 bytes) @ 0x00007fbc3f0228e4 [0x00007fbc3f022600+0x00000000000002e4]
J 427 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (65 bytes) @ 0x00007fbc3f021ec4 [0x00007fbc3f021580+0x0000000000000944]
j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
j java.lang.Thread.run()V+11 java.base@10-internal
v ~StubRoutines::call_stub
V [libjvm.so+0xe7cac6] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x846
V [libjvm.so+0xe79a1f] JavaCalls::call_virtual(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x41f
V [libjvm.so+0xe79c72] JavaCalls::call_virtual(JavaValue*, Handle, Klass*, Symbol*, Symbol*, Thread*)+0xa2
V [libjvm.so+0xfa0071] thread_entry(JavaThread*, Thread*)+0x91
V [libjvm.so+0x16b392e] JavaThread::thread_main_inner()+0x22e
V [libjvm.so+0x16b3bbe] JavaThread::run()+0x1ce
V [libjvm.so+0x13f500a] thread_native_entry(Thread*)+0xfa
C [libpthread.so.0+0x7dc5] start_thread+0xc5
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~RuntimeStub::resolve_opt_virtual_call
J 618 jvmci compiler.calls.common.InvokeDynamic.caller()V (39 bytes) @ 0x00007fbc48d4c754 [0x00007fbc48d4c6e0+0x0000000000000074] (null)
j compiler.calls.common.CallsBase.runTest([Ljava/lang/String;)V+186
j compiler.calls.common.InvokeDynamic.main([Ljava/lang/String;)V+8
v ~StubRoutines::call_stub
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Ljava/lang/reflect/Method;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+0 java.base@10-internal
j jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;+100 java.base@10-internal
J 428 c1 jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (10 bytes) @ 0x00007fbc3f0228e4 [0x00007fbc3f022600+0x00000000000002e4]
J 427 c1 java.lang.reflect.Method.invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; java.base@10-internal (65 bytes) @ 0x00007fbc3f021ec4 [0x00007fbc3f021580+0x0000000000000944]
j com.sun.javatest.regtest.agent.MainWrapper$MainThread.run()V+172
j java.lang.Thread.run()V+11 java.base@10-internal
v ~StubRoutines::call_stub
- duplicates
-
JDK-8192814 Update Graal
- Resolved