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

[JVMCI] guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized

XMLWordPrintable

    • b17


      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/b/b/e/main/jdk_tlda/open/src/hotspot/share/runtime/deoptimization.cpp:950), pid=1251, tid=1522
      # guarantee(ik->is_initialized()) failed: java/lang/Long$LongCache must be initialized
      #
      # JRE version: Java(TM) SE Runtime Environment GraalVM LIBGRAAL_EE 23.0.0-dev (20.0.1+8) (fastdebug build 20.0.1+8-jvmci-23.0-b09)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM GraalVM LIBGRAAL_EE 23.0.0-dev (fastdebug 20.0.1+8-jvmci-23.0-b09, mixed mode, jvmci, jvmci compiler, compressed oops, compressed class ptrs, g1 gc, linux-aarch64)
      # Problematic frame:
      # V [libjvm.so+0xaa1fc4] BoxCache<long, java_lang_Long_LongCache, java_lang_Long>::BoxCache(Thread*)+0xa4
      #
      # No core dump will be written. 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:
      # https://bugreport.java.com/bugreport/crash.jsp
      #

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

      Command Line: -XX:ThreadPriorityPolicy=1 -XX:+UnlockExperimentalVMOptions -XX:+EnableJVMCIProduct -XX:-UnlockExperimentalVMOptions -Dtest.vm.opts=-Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/buildslave/e/main/jib/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -Djava.io.tmpdir=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/tmp -fastdebug -ea -esa -Dtest.tool.vm.opts=-J-Xmx768m -J-XX:MaxRAMPercentage=1.5625 -J-Dtest.boot.jdk=/buildslave/e/main/jib/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -J-Djava.io.tmpdir=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/tmp -J-fastdebug -J-ea -J-esa -Dtest.compiler.opts= -Dtest.java.opts= -Dtest.jdk=/buildslave/e/main/graalvm-jdk20-linux-aarch64 -Dcompile.jdk=/buildslave/e/main/graalvm-jdk20-linux-aarch64 -Dtest.timeout.factor=4.0 -Dtest.nativepath=/sc/bb/downloads/labsjdk-ee-20.0.1+8-jvmci-23.0-b09-tests-linux-aarch64_cad483fb9f/labsjdk-ee-20.0.1-jvmci-23.0-b09/jdk/jtreg/native -Dtest.root=/buildslave/e/main/labsjdk/open/test/jdk -Dtest.name=jdk/incubator/concurrent/ScopedValue/StressStackOverflow.java -Dtest.file=/buildslave/e/main/labsjdk/open/test/jdk/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.java -Dtest.src=/buildslave/e/main/labsjdk/open/test/jdk/jdk/incubator/concurrent/ScopedValue -Dtest.src.path=/buildslave/e/main/labsjdk/open/test/jdk/jdk/incubator/concurrent/ScopedValue -Dtest.classes=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/classes/5/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.d -Dtest.class.path=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/classes/5/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.d -Dtest.class.path.prefix=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/classes/5/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.d:/buildslave/e/main/labsjdk/open/test/jdk/jdk/incubator/concurrent/ScopedValue -Dtest.modules=jdk.incubator.concurrent --add-modules=jdk.incubator.concurrent -Xmx768m -XX:MaxRAMPercentage=1.5625 -Dtest.boot.jdk=/buildslave/e/main/jib/install/jdk/19/36/bundles/linux-aarch64/jdk-19_linux-aarch64_bin.tar.gz/jdk-19 -Djava.io.tmpdir=/buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/tmp -ea -esa -Djava.library.path=/sc/bb/downloads/labsjdk-ee-20.0.1+8-jvmci-23.0-b09-tests-linux-aarch64_cad483fb9f/labsjdk-ee-20.0.1-jvmci-23.0-b09/jdk/jtreg/native -XX:-TieredCompilation --enable-preview com.sun.javatest.regtest.agent.MainWrapper /buildslave/e/main/labsjdk/open/build/run-test-prebuilt/test-support/jtreg_open_test_jdk_jdk_loom/jdk/incubator/concurrent/ScopedValue/StressStackOverflow.d/main.0.jta

      Host: 13688cda4749, AArch64, 32 cores, 255G, Oracle Linux Server release 7.4
      Time: Thu Mar 9 15:34:38 2023 UTC elapsed time: 7.072245 seconds (0d 0h 0m 7s)

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

      Current thread (0x00004000d4758c80): JavaThread "MainThread" [_thread_in_vm, id=1522, stack(0x000040011fc30000,0x000040011fe30000)]

      Stack: [0x000040011fc30000,0x000040011fe30000], sp=0x000040011fc7eb50, free space=314k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0xaa1fc4] BoxCache<long, java_lang_Long_LongCache, java_lang_Long>::BoxCache(Thread*)+0xa4 (deoptimization.cpp:950)
      V [libjvm.so+0xa96c48] Deoptimization::get_cached_box(AutoBoxObjectValue*, frame*, RegisterMap*, JavaThread*)+0x368
      V [libjvm.so+0xa973a8] Deoptimization::realloc_objects(JavaThread*, frame*, RegisterMap*, GrowableArray<ScopeValue*>*, JavaThread*)+0x364
      V [libjvm.so+0xa9b01c] rematerialize_objects(JavaThread*, int, CompiledMethod*, frame&, RegisterMap&, GrowableArray<compiledVFrame*>*, bool&)+0x35c
      V [libjvm.so+0xa9d4e0] Deoptimization::fetch_unroll_info_helper(JavaThread*, int)+0xbbc
      V [libjvm.so+0xaa01bc] Deoptimization::uncommon_trap(JavaThread*, int, int)+0x38
      v ~DeoptimizationBlob 0x00004000e2ce4754
      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      v ~DeoptimizationBlob 0x00004000e2ce4754
      J 155 jvmci StressStackOverflow$DeepRecursion.run()V (275 bytes) @ 0x00004000e2d61a40 [0x00004000e2d5e640+0x0000000000003400]
      J 81 jvmci StressStackOverflow.fibonacci_pad1(ILjava/lang/Runnable;)J (34 bytes) @ 0x00004000e2d30afc [0x00004000e2d30780+0x000000000000037c]
      J 81 jvmci StressStackOverflow.fibonacci_pad1(ILjava/lang/Runnable;)J (34 bytes) @ 0x00004000e2d30824 [0x00004000e2d30780+0x00000000000000a4]
      J 81 jvmci StressStackOverflow.fibonacci_pad1(ILjava/lang/Runnable;)J (34 bytes) @ 0x00004000e2d30824 [0x00004000e2d30780+0x00000000000000a4]

      The problem is that class initialization can fail for Long$LongCache (e.g. due to a StackOverflowError). Not surprisingly, the latter is quite likely to happen in a test named "StressStackOverflow".

            dnsimon Douglas Simon
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: