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

CTW fails with assert(!method->method_holder()->is_not_initialized()) failed: method holder must be initialized

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10
    • Fix Version/s: 10
    • Component/s: hotspot
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      # Internal Error (/oracle/hs10/hotspot/src/share/vm/compiler/compileBroker.cpp:1050), pid=11285, tid=11286
      # assert(!method->method_holder()->is_not_initialized()) failed: method holder must be initialized

      Stack: [0x00007fc7885aa000,0x00007fc7886ab000], sp=0x00007fc7886a8d60, free space=1019k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x17e621f] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x18f
      V [libjvm.so+0x17e6fff] VMError::report_and_die(Thread*, char const*, int, char const*, char const*, __va_list_tag*)+0x2f
      V [libjvm.so+0xb489dd] report_vm_error(char const*, int, char const*, char const*, ...)+0xdd
      V [libjvm.so+0xab8d9e] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, DirectiveSet*, Thread*)+0x41e
      V [libjvm.so+0xab98e7] CompileBroker::compile_method(methodHandle const&, int, int, methodHandle const&, int, CompileTask::CompileReason, Thread*)+0x97
      V [libjvm.so+0x1839472] WhiteBox::compile_method(Method*, int, int, Thread*)+0xb2
      V [libjvm.so+0x1854362] WB_EnqueueInitializerForCompilation+0x2c2
      J 3044 sun.hotspot.WhiteBox.enqueueInitializerForCompilation0(Ljava/lang/Class;I)Z (0 bytes) @ 0x00007fc76f56eb48 [0x00007fc76f56ea00+0x0000000000000148]
      J 53177 c2 sun.hotspot.tools.ctw.Compiler.compileClass(Ljava/lang/Class;JLjava/util/concurrent/Executor;)V (275 bytes) @ 0x00007fc7710e2cc8 [0x00007fc7710e2c00+0x00000000000000c8]
      J 163482 c1 sun.hotspot.tools.ctw.PathHandler.processClass(Ljava/lang/String;)V (141 bytes) @ 0x00007fc7683860c4 [0x00007fc7683851c0+0x0000000000000f04]
      J 7150 c1 sun.hotspot.tools.ctw.ClassPathJimageEntry$$Lambda$41.accept(Ljava/lang/Object;)V (12 bytes) @ 0x00007fc76838fcfc [0x00007fc76838faa0+0x000000000000025c]
      J 125084 c2 java.util.stream.ReferencePipeline$2$1.accept(Ljava/lang/Object;)V java.base@10-internal (27 bytes) @ 0x00007fc7733f7910 [0x00007fc7733f75a0+0x0000000000000370]
      j java.util.Spliterators$ArraySpliterator.forEachRemaining(Ljava/util/function/Consumer;)V+53 java.base@10-internal
      j java.util.stream.AbstractPipeline.copyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)V+32 java.base@10-internal
      j java.util.stream.AbstractPipeline.wrapAndCopyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)Ljava/util/stream/Sink;+13 java.base@10-internal
      j java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Void;+3 java.base@10-internal
      j java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Object;+3 java.base@10-internal
      j java.util.stream.AbstractPipeline.evaluate(Ljava/util/stream/TerminalOp;)Ljava/lang/Object;+88 java.base@10-internal
      j java.util.stream.ReferencePipeline.forEach(Ljava/util/function/Consumer;)V+6 java.base@10-internal
      j sun.hotspot.tools.ctw.ClassPathJimageEntry.process()V+83
      j sun.hotspot.tools.ctw.CompileTheWorld.main([Ljava/lang/String;)V+126
      v ~StubRoutines::call_stub
      V [libjvm.so+0xeeefb5] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, Thread*)+0x875
      V [libjvm.so+0xf9cd23] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, Thread*) [clone .isra.125] [clone .constprop.164]+0x373
      V [libjvm.so+0xfbb8dc] jni_CallStaticVoidMethod+0x1fc
      C [libjli.so+0x4645] JavaMain+0xa25
      C [libpthread.so.0+0x8184] start_thread+0xc4

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                iignatyev Igor Ignatyev
                Reporter:
                thartmann Tobias Hartmann
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: