Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252881

[JVMCI] ResolvedJavaType.resolveMethod fails in fastdebug when invoked with a constructor

    Details

    • Subcomponent:
    • Resolved In Build:
      b19

      Description

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/b/b/e/main/src/share/vm/interpreter/linkResolver.cpp:1103), pid=46334, tid=0x00007fe57d105700
      # assert(resolved_method->name() != vmSymbols::object_initializer_name()) failed: should have been checked in verifier
      #
      # JRE version: OpenJDK Runtime Environment (8.0_232-b07) (build 1.8.0_232-20191008104205.buildslave.jdk8u-src-tar--b07)
      # Java VM: OpenJDK 64-Bit GraalVM 20.0.0-dev (25.232-b07-jvmci-19.3-b06-dev-fastdebug mixed mode linux-amd64 compressed oops)
      # Core dump written. Default location: /b/b/e/main/core or core.46334
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- T H R E A D ---------------

      Current thread (0x00007fe578001000): JavaThread "ForkJoinPool-2-worker-6" daemon [_thread_in_vm, id=47515, stack(0x00007fe57c705000,0x00007fe57d106000)]

      Stack: [0x00007fe57c705000,0x00007fe57d106000], sp=0x00007fe57d102900, free space=10230k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1229e88] VMError::report_and_die()+0x148
      V [libjvm.so+0x7bd1fb] report_vm_error(char const*, int, char const*, char const*)+0x7b
      V [libjvm.so+0xd88d0f] LinkResolver::linktime_resolve_virtual_method(methodHandle&, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, Thread*) [clone .part.53]+0x6bf
      V [libjvm.so+0xd905c9] LinkResolver::resolve_virtual_call(CallInfo&, Handle, KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool, bool, Thread*)+0x1b9
      V [libjvm.so+0xd9073a] LinkResolver::resolve_virtual_call_or_null(KlassHandle, KlassHandle, Symbol*, Symbol*, KlassHandle, bool)+0x16a
      V [libjvm.so+0xba1233] c2v_resolveMethod(JNIEnv_*, _jobject*, _jobject*, _jobject*, _jobject*)+0x51a
      J 6073 jdk.vm.ci.hotspot.CompilerToVM.resolveMethod(Ljdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl;Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl;Ljdk/vm/ci/hotspot/HotSpotResolvedObjectTypeImpl;)Ljdk/vm/ci/hotspot/HotSpotResolvedJavaMethodImpl; (0 bytes) @ 0x00007fe88aa73b51 [0x00007fe88aa739e0+0x171]
      J 5780 C1 jdk.vm.ci.hotspot.HotSpotResolvedObjectTypeImpl.resolveMethod(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaType;)Ljdk/vm/ci/meta/ResolvedJavaMethod; (116 bytes) @ 0x00007fe88a91172c [0x00007fe88a910980+0xdac]
      j com.oracle.svm.hosted.substitute.InjectedFieldsType.resolveMethod(Ljdk/vm/ci/meta/ResolvedJavaMethod;Ljdk/vm/ci/meta/ResolvedJavaType;)Ljdk/vm/ci/meta/ResolvedJavaMethod;+6
      J 9679 C2 org.graalvm.compiler.java.BytecodeParser.appendInvoke(Lorg/graalvm/compiler/nodes/CallTargetNode$InvokeKind;Ljdk/vm/ci/meta/ResolvedJavaMethod;[Lorg/graalvm/compiler/nodes/ValueNode;)Lorg/graalvm/compiler/nodes/Invoke; (824 bytes) @ 0x00007fe88b45e3ec [0x00007fe88b45ac40+0x37ac]
      J 5234 C1 org.graalvm.compiler.java.BytecodeParser.genDynamicInvokeHelper(Ljdk/vm/ci/meta/ResolvedJavaMethod;II)Z (336 bytes) @ 0x00007fe88a60bce4 [0x00007fe88a609fa0+0x1d44]
      J 5248 C1 org.graalvm.compiler.java.BytecodeParser.genInvokeVirtual(Ljdk/vm/ci/meta/ResolvedJavaMethod;)V (52 bytes) @ 0x00007fe88a5f27e4 [0x00007fe88a5f26a0+0x144]
      J 9800 C1 org.graalvm.compiler.java.BytecodeParser.processBytecode(II)V (2672 bytes) @ 0x00007fe88b435ca4 [0x00007fe88b434780+0x1524]
      J 9631 C1 org.graalvm.compiler.java.BytecodeParser.iterateBytecodesForBlock(Lorg/graalvm/compiler/java/BciBlockMapping$BciBlock;)V (755 bytes) @ 0x00007fe88a038cfc [0x00007fe88a034880+0x447c]
      J 5514 C2 org.graalvm.compiler.java.BytecodeParser.processBlock(Lorg/graalvm/compiler/java/BciBlockMapping$BciBlock;)V (246 bytes) @ 0x00007fe88a79f26c [0x00007fe88a79ef80+0x2ec]
      J 9463 C2 org.graalvm.compiler.java.BytecodeParser.build(Lorg/graalvm/compiler/nodes/FixedWithNextNode;Lorg/graalvm/compiler/java/FrameStateBuilder;)V (1082 bytes) @ 0x00007fe88b37f218 [0x00007fe88b37cb00+0x2718]
      J 6517 C1 org.graalvm.compiler.java.BytecodeParser.buildRootMethod()V (186 bytes) @ 0x00007fe88acedae4 [0x00007fe88aced0a0+0xa44]
      J 6516 C1 org.graalvm.compiler.java.GraphBuilderPhase$Instance.run(Lorg/graalvm/compiler/nodes/StructuredGraph;)V (22 bytes) @ 0x00007fe88ace00b4 [0x00007fe88acdfdc0+0x2f4]
      J 5928 C1 org.graalvm.compiler.phases.Phase.run(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;)V (6 bytes) @ 0x00007fe88a9cd874 [0x00007fe88a9cd780+0xf4]
      J 5532 C1 org.graalvm.compiler.phases.BasePhase.apply(Lorg/graalvm/compiler/nodes/StructuredGraph;Ljava/lang/Object;Z)V (582 bytes) @ 0x00007fe88a7bc96c [0x00007fe88a7bac40+0x1d2c]
      J 8848 C1 com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.parse()Z (700 bytes) @ 0x00007fe88b103f4c [0x00007fe88b0fff00+0x404c]
      J 9801 C2 com.oracle.graal.pointsto.flow.MethodTypeFlowBuilder.apply()V (703 bytes) @ 0x00007fe88b50e03c [0x00007fe88b50df40+0xfc]
      J 8721 C1 com.oracle.graal.pointsto.flow.MethodTypeFlow.doParse(Lcom/oracle/graal/pointsto/BigBang;Lcom/oracle/graal/pointsto/flow/InvokeTypeFlow;)V (154 bytes) @ 0x00007fe88a2af2ac [0x00007fe88a2aef40+0x36c]
      J 8295 C1 com.oracle.graal.pointsto.flow.MethodTypeFlow.addContext(Lcom/oracle/graal/pointsto/BigBang;Lcom/oracle/graal/pointsto/flow/context/AnalysisContext;Lcom/oracle/graal/pointsto/flow/InvokeTypeFlow;)Lcom/oracle/graal/pointsto/flow/MethodFlowsGraph; (108 bytes) @ 0x00007fe88a9bb3ec [0x00007fe88a9bb2e0+0x10c]
      J 8776 C1 com.oracle.graal.pointsto.flow.StaticInvokeTypeFlow.update(Lcom/oracle/graal/pointsto/BigBang;)V (129 bytes) @ 0x00007fe88add8df4 [0x00007fe88add7c60+0x1194]
      J 9477 C2 com.oracle.graal.pointsto.BigBang$2.run(Lorg/graalvm/compiler/debug/DebugContext;)V (31 bytes) @ 0x00007fe8896e69ac [0x00007fe8896e6820+0x18c]
      J 8168 C2 com.oracle.graal.pointsto.util.CompletionExecutor.lambda$0(Lcom/oracle/graal/pointsto/util/CompletionExecutor$DebugContextRunnable;)V (450 bytes) @ 0x00007fe88a4bde20 [0x00007fe88a4bd600+0x820]
      J 8162 C2 java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Ljava/util/concurrent/ForkJoinTask;)V (86 bytes) @ 0x00007fe88a9bdbc4 [0x00007fe88a9bd860+0x364]
      J 8950% C1 java.util.concurrent.ForkJoinPool.runWorker(Ljava/util/concurrent/ForkJoinPool$WorkQueue;)V (77 bytes) @ 0x00007fe88b0fb51c [0x00007fe88b0fb400+0x11c]
      j java.util.concurrent.ForkJoinWorkerThread.run()V+24
      v ~StubRoutines::call_stub
      V [libjvm.so+0xabce4a] JavaCalls::call_helper(JavaValue*, methodHandle*, JavaCallArguments*, Thread*)+0x18aa
      V [libjvm.so+0xaba82b] JavaCalls::call_virtual(JavaValue*, KlassHandle, Symbol*, Symbol*, JavaCallArguments*, Thread*)+0x81b
      V [libjvm.so+0xabb07f] JavaCalls::call_virtual(JavaValue*, Handle, KlassHandle, Symbol*, Symbol*, Thread*)+0xbf
      V [libjvm.so+0xb500a0] thread_entry(JavaThread*, Thread*)+0xc0
      V [libjvm.so+0x1195f54] JavaThread::thread_main_inner()+0x1d4
      V [libjvm.so+0x119617b] JavaThread::run()+0x19b
      V [libjvm.so+0xf55512] java_start(Thread*)+0xf2
      C [libpthread.so.0+0x7aa1] start_thread+0xd1

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dnsimon Douglas Simon
                Reporter:
                dnsimon Douglas Simon
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: