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

gc/g1/TestHumongousCodeCacheRoots.java failed assert(stop_idx <= table->_size) failed: Must be

XMLWordPrintable

    • gc
    • x86_64
    • windows

      The following test failed in the JDK24 CI:

      gc/g1/TestHumongousCodeCacheRoots.java

      Here's a snippet from the log file:

      #section:driver
      ----------messages:(8/349)----------
      command: driver gc.g1.TestHumongousCodeCacheRoots
      reason: User specified action: run driver gc.g1.TestHumongousCodeCacheRoots
      started: Thu Jul 25 07:04:10 UTC 2024
      Mode: agentvm
      Agent id: 8
      Additional exports to unnamed modules from @modules: java.base/jdk.internal.misc
      finished: Thu Jul 25 07:04:20 UTC 2024
      elapsed time (seconds): 9.638
      ----------configuration:(15/1425)*----------

      <snip>

      ----------System.err:(35/1868)*----------
       stdout: [
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (c:\\sb\\prod\\1721871764\\workspace\\open\\src\\hotspot\\share\\utilities/concurrentHashTable.inline.hpp:1184), pid=24820, tid=19184
      # assert(stop_idx <= table->_size) failed: Must be
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0+8) (fastdebug build 24-ea+8-853)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-ea+8-853, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, windows-amd64)
      # Core dump will be written. Default location: C:\\sb\\prod\\1721890819\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_gc\\scratch\\2\\hs_err_pid24820.mdmp
      #
      Unsupported internal testing APIs have been used.

      # An error report file with more information is saved as:
      # C:\\sb\\prod\\1721890819\\testoutput\\test-support\\jtreg_open_test_hotspot_jtreg_tier1_gc\\scratch\\2\\hs_err_pid24820.log
      #
      # If you would like to submit a bug report, please visit:
      # https://bugreport.java.com/bugreport/crash.jsp
      #
      ];
       stderr: []
       exitValue = 1

      java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
      at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:521)
      at gc.g1.TestHumongousCodeCacheRoots.runWhiteBoxTest(TestHumongousCodeCacheRoots.java:110)
      at gc.g1.TestHumongousCodeCacheRoots.main(TestHumongousCodeCacheRoots.java:122)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      at java.base/java.lang.reflect.Method.invoke(Method.java:588)
      at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
      at java.base/java.lang.Thread.run(Thread.java:1575)

      JavaTest Message: Test threw exception: java.lang.RuntimeException
      JavaTest Message: shutting down test

      result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]

      Here's the crashing thread's stack:

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

      Current thread (0x000002e282e521a0): WorkerThread "GC Thread#0" [id=19184, stack(0x000000fc00a00000,0x000000fc00b00000) (1024K)]

      Stack: [0x000000fc00a00000,0x000000fc00b00000]
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [jvm.dll+0xc9e9b1] os::win32::platform_print_native_stack+0x101 (os_windows_x86.cpp:235)
      V [jvm.dll+0xf60acb] VMError::report+0x149b (vmError.cpp:1011)
      V [jvm.dll+0xf6316d] VMError::report_and_die+0x80d (vmError.cpp:1846)
      V [jvm.dll+0xf63864] VMError::report_and_die+0x64 (vmError.cpp:1611)
      V [jvm.dll+0x55ee9b] report_vm_error+0x5b (debug.cpp:193)
      V [jvm.dll+0x67c50a] ConcurrentHashTable<G1CodeRootSetHashTableConfig,5>::ScanTask::do_safepoint_scan<`G1CodeRootSetHashTable::iterate_at_safepoint'::`2'::<lambda_1> >+0x22a (concurrentHashTableTasks.inline.hpp:283)
      V [jvm.dll+0x67e21d] G1CodeRootSet::nmethods_do+0x5d (g1CodeRootSet.cpp:294)
      V [jvm.dll+0x6d7df9] G1HeapRegion::verify+0x349 (g1HeapRegion.cpp:716)
      V [jvm.dll+0x6e511a] VerifyRegionClosure::do_heap_region+0x15a (g1HeapVerifier.cpp:268)
      V [jvm.dll+0x6db2b6] G1HeapRegionManager::par_iterate+0x106 (g1HeapRegionManager.cpp:600)
      V [jvm.dll+0x6e6a97] G1VerifyTask::work+0x47 (g1HeapVerifier.cpp:310)
      V [jvm.dll+0xfb4d47] WorkerThread::run+0x97 (workerThread.cpp:201)
      V [jvm.dll+0xec2f97] Thread::call_run+0x1b7 (thread.cpp:230)
      V [jvm.dll+0xc9d016] thread_native_entry+0xd6 (os_windows.cpp:553)
      C [ucrtbase.dll+0x2268a] (no source info available)
      C [KERNEL32.DLL+0x17ac4] (no source info available)
      C [ntdll.dll+0x5a4e1] (no source info available)

            Unassigned Unassigned
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: