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

CTW tests crashed with assert(is_valid_method(o)) failed: should be valid jmethodid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • 18
    • 18
    • hotspot
    • aarch64
    • linux


      Test applications/ctw/modules/java_base.java

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13236/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b56cd58c-3c3b-4ab2-a308-c943a5618d35/runs/5f3c985d-a952-4e35-a27d-b8c01c51e5ce/workspace/open/src/hotspot/share/oops/method.cpp:2261), pid=3632051, tid=3632052
      # assert(is_valid_method(o)) failed: should be valid jmethodid
      #
      # JRE version: Java(TM) SE Runtime Environment (18.0+8) (fastdebug build 18-ea+8-293)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 18-ea+8-293, mixed mode, sharing, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0x1304b3c] Method::checked_resolve_jmethod_id(_jmethodID*)+0x8c
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/opt/core.sh %p" (or dumping to /opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13237/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2ce81740-9bc3-4a09-b35d-8be7546d407e/runs/8e5ecb19-bba5-4731-bc1c-d0b2952e1a90/testoutput/test-support/jtreg_open_test_hotspot_jtreg_ctw_2/scratch/2/core.3632051)
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

      --------------- S U M M A R Y ------------

      Command Line: -XX:MaxRAMPercentage=6.25 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/35546316-ed70-4084-8244-d672e7734fd1-S13237/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/2ce81740-9bc3-4a09-b35d-8be7546d407e/runs/8e5ecb19-bba5-4731-bc1c-d0b2952e1a90/testoutput/test-support/jtreg_open_test_hotspot_jtreg_ctw_2/tmp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -Djava.awt.headless=true -Xbatch -XX:-UseCounterDecay -XX:-ShowMessageBoxOnError -XX:+UnlockDiagnosticVMOptions -XX:+DisplayVMOutputToStderr -DCompileTheWorldStartAt=0 -DCompileTheWorldStopAt=3190 -XX:+WhiteBoxAPI -Xbootclasspath/a:. --add-exports=java.base/jdk.internal.jimage=ALL-UNNAMED --add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED --add-exports=java.base/jdk.internal.access=ALL-UNNAMED -XX:+LogCompilation -XX:LogFile=hotspot_modules_java_base_0_%p.log -XX:ErrorFile=hs_err_modules_java_base_0_%p.log -XX:ReplayDataFile=replay_modules_java_base_0_%p.log -XX:CompileCommand=exclude,java/lang/invoke/MethodHandle.* -XX:+IgnoreUnrecognizedVMOptions -XX:+StressLCM -XX:+StressGCM -XX:+StressIGVN -XX:+StressCCP -XX:StressSeed=1925493789902100501 sun.hotspot.tools.ctw.CompileTheWorld modules:java.base

      Host: AArch64, 8 cores, 46G, Oracle Linux Server release 8.3
      Time: Thu Jul 22 06:11:12 2021 UTC elapsed time: 55.781936 seconds (0d 0h 0m 55s)

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

      Current thread (0x0000fffcd802dbe0): JavaThread "main" [_thread_in_vm, id=3632052, stack(0x0000fffcdcc90000,0x0000fffcdce90000)]

      Stack: [0x0000fffcdcc90000,0x0000fffcdce90000], sp=0x0000fffcdce8d3f0, free space=2036k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x1304b3c] Method::checked_resolve_jmethod_id(_jmethodID*)+0x8c
      V [libjvm.so+0x181fb24] WB_EnqueueMethodForCompilation+0x1a4
      j sun.hotspot.WhiteBox.enqueueMethodForCompilation0(Ljava/lang/reflect/Executable;II)Z+0
      J 2655 c2 java.util.concurrent.ThreadPoolExecutor.execute(Ljava/lang/Runnable;)V java.base@18-ea (132 bytes) @ 0x0000fffccd950cc8 [0x0000fffccd950b00+0x00000000000001c8]
      J 9435 c2 sun.hotspot.tools.ctw.Compiler.compileClass(Ljava/lang/Class;JLjava/util/concurrent/Executor;)V (174 bytes) @ 0x0000fffccda90a08 [0x0000fffccda8ff80+0x0000000000000a88]
      J 3138 c2 sun.hotspot.tools.ctw.PathHandler$$Lambda$39+0x0000000801006be8.accept(Ljava/lang/Object;)V (16 bytes) @ 0x0000fffccdadf2b0 [0x0000fffccdade8c0+0x00000000000009f0]
      J 3865 c2 java.util.stream.DistinctOps$1$2.accept(Ljava/lang/Object;)V java.base@18-ea (24 bytes) @ 0x0000fffccd98ec74 [0x0000fffccd98eb40+0x0000000000000134]
      J 2605 c2 java.util.stream.ReferencePipeline$3$1.accept(Ljava/lang/Object;)V java.base@18-ea (23 bytes) @ 0x0000fffccdacc310 [0x0000fffccdacc280+0x0000000000000090]
      J 901 c2 java.util.stream.ReferencePipeline$2$1.accept(Ljava/lang/Object;)V java.base@18-ea (27 bytes) @ 0x0000fffccd981f1c [0x0000fffccd981e80+0x000000000000009c]
      J 2605 c2 java.util.stream.ReferencePipeline$3$1.accept(Ljava/lang/Object;)V java.base@18-ea (23 bytes) @ 0x0000fffccdacc310 [0x0000fffccdacc280+0x0000000000000090]
      j java.util.Iterator.forEachRemaining(Ljava/util/function/Consumer;)V+21 java.base@18-ea
      j java.util.Spliterators$IteratorSpliterator.forEachRemaining(Ljava/util/function/Consumer;)V+52 java.base@18-ea
      j java.util.stream.AbstractPipeline.copyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)V+32 java.base@18-ea
      j java.util.stream.AbstractPipeline.wrapAndCopyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)Ljava/util/stream/Sink;+13 java.base@18-ea
      j java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Void;+3 java.base@18-ea
      j java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Object;+3 java.base@18-ea
      j java.util.stream.AbstractPipeline.evaluate(Ljava/util/stream/TerminalOp;)Ljava/lang/Object;+88 java.base@18-ea
      j java.util.stream.ReferencePipeline.forEach(Ljava/util/function/Consumer;)V+6 java.base@18-ea
      j sun.hotspot.tools.ctw.PathHandler.process(Ljava/util/concurrent/Executor;)V+32
      j sun.hotspot.tools.ctw.CompileTheWorld.lambda$main$0(Ljava/util/concurrent/ExecutorService;Lsun/hotspot/tools/ctw/PathHandler;)V+2
      j sun.hotspot.tools.ctw.CompileTheWorld$$Lambda$22+0x0000000801002920.accept(Ljava/lang/Object;)V+8
      j java.util.stream.ForEachOps$ForEachOp$OfRef.accept(Ljava/lang/Object;)V+5 java.base@18-ea
      j java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Ljava/util/function/Consumer;)V+95 java.base@18-ea
      j java.util.stream.ReferencePipeline$Head.forEach(Ljava/util/function/Consumer;)V+12 java.base@18-ea
      j java.util.stream.ReferencePipeline$7$1.accept(Ljava/lang/Object;)V+41 java.base@18-ea
      j java.util.stream.ReferencePipeline$3$1.accept(Ljava/lang/Object;)V+17 java.base@18-ea
      j java.util.Spliterators$ArraySpliterator.forEachRemaining(Ljava/util/function/Consumer;)V+53 java.base@18-ea
      j java.util.stream.AbstractPipeline.copyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)V+32 java.base@18-ea
      j java.util.stream.AbstractPipeline.wrapAndCopyInto(Ljava/util/stream/Sink;Ljava/util/Spliterator;)Ljava/util/stream/Sink;+13 java.base@18-ea
      j java.util.stream.ForEachOps$ForEachOp.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Void;+3 java.base@18-ea
      j java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(Ljava/util/stream/PipelineHelper;Ljava/util/Spliterator;)Ljava/lang/Object;+3 java.base@18-ea
      j java.util.stream.AbstractPipeline.evaluate(Ljava/util/stream/TerminalOp;)Ljava/lang/Object;+88 java.base@18-ea
      j java.util.stream.ReferencePipeline.forEach(Ljava/util/function/Consumer;)V+6 java.base@18-ea
      j sun.hotspot.tools.ctw.CompileTheWorld.main([Ljava/lang/String;)V+125
      v ~StubRoutines::call_stub
      V [libjvm.so+0xdb8e8c] JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x58c
      V [libjvm.so+0xee7bc0] jni_invoke_static(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*) [clone .constprop.1]+0x1bc
      V [libjvm.so+0xeeb0b0] jni_CallStaticVoidMethod+0x1a0
      C [libjli.so+0x4830] JavaMain+0xc50
      C [libjli.so+0x778c] ThreadJavaMain+0xc
      C [libpthread.so.0+0x7738] start_thread+0x198

            stuefe Thomas Stuefe
            dholmes David Holmes
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: