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

C2 crashes with assert(i < _max) failed: oob: i=1, _max=1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 24
    • hotspot

      The test
      vmTestbase/nsk/monitoring/LoggingMXBean/getLoggerLevel/getloggerlevel002/TestDescription.java
      executing with
      '-XX:+UseZGC -XX:-ZGenerational -Xcomp'
      crashes with
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/System/Volumes/Data/mesos/work_dir/slaves/f5c641a8-8835-4313-b2e9-9724f4dc0f29-S3338/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/db8323ac-cddc-44c6-9b75-400b6db9ca49/runs/e0f06715-3dfc-438a-b870-40816611ca00/workspace/open/src/hotspot/share/opto/node.hpp:410), pid=72314, tid=43011
      # assert(i < _max) failed: oob: i=1, _max=1
      #
      # JRE version: Java(TM) SE Runtime Environment (24.0) (fastdebug build 24-internal-2024-10-17-2147406.yudi.zheng.jdk)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 24-internal-2024-10-17-2147406.yudi.zheng.jdk, compiled mode, sharing, tiered, compressed class ptrs, z gc, bsd-amd64)
      ...
      Time: Mon Oct 21 00:35:30 2024 GMT elapsed time: 23.005873 seconds (0d 0h 0m 23s)

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

      Current thread (0x00007fc8ae821a10): JavaThread "C2 CompilerThread0" daemon [_thread_in_native, id=43011, stack(0x0000700005a60000,0x0000700005b60000) (1024K)]


      Current CompileTask:
      C2:23006 4509 b 4 jdk.internal.classfile.impl.StackMapGenerator::processBlock (2201 bytes)

      Stack: [0x0000700005a60000,0x0000700005b60000], sp=0x0000700005b5bed0, free space=1007k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.dylib+0x12bebb1] VMError::report_and_die(int, char const*, char const*, __va_list_tag*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x5a1 (node.hpp:410)
      V [libjvm.dylib+0x12bf368] VMError::report_and_die(Thread*, void*, char const*, int, char const*, char const*, __va_list_tag*)+0x38
      V [libjvm.dylib+0x69e474] report_vm_error(char const*, int, char const*, char const*, ...)+0xb4
      V [libjvm.dylib+0x759c25] PhaseIdealLoop::Dominators()+0xa95
      V [libjvm.dylib+0xda8f71] PhaseIdealLoop::build_and_optimize()+0x331
      V [libjvm.dylib+0x5e706a] PhaseIdealLoop::optimize(PhaseIterGVN&, LoopOptsMode)+0x5a
      V [libjvm.dylib+0x5dfc58] Compile::Optimize()+0x968
      V [libjvm.dylib+0x5ddb76] Compile::Compile(ciEnv*, ciMethod*, int, Options, DirectiveSet*)+0x1626
      V [libjvm.dylib+0x4a3108] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1b8
      V [libjvm.dylib+0x5fe40f] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xacf
      V [libjvm.dylib+0x5fd537] CompileBroker::compiler_thread_loop()+0x357
      V [libjvm.dylib+0x9fd925] JavaThread::thread_main_inner()+0x1a5
      V [libjvm.dylib+0x1200b5c] Thread::call_run()+0xbc
      V [libjvm.dylib+0xf5c303] thread_native_entry(Thread*)+0x123
      C [libsystem_pthread.dylib+0x6259] _pthread_start+0x7d
      C [libsystem_pthread.dylib+0x1c7b] thread_start+0xf
      Lock stack of current Java thread (top to bottom):

            Unassigned Unassigned
            lmesnik Leonid Mesnik
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: