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

[lworld] assert(i < _max) failed: oob: i=16, _max=16

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: repo-valhalla
    • Fix Version/s: repo-valhalla
    • Component/s: hotspot
    • Labels:

      Description

      The converted test compiler/valhalla/TestNullableArrays.java failed with the following assertion in CI testing:

      Could not reproduce this locally.

      Steps: Checkout latest state of the new IR test framework:
      https://github.com/openjdk/valhalla/commit/d9de2f9e4a4141a9393a23e29afd35f558068698
      CI flags used: -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -server -XX:-TieredCompilation -XX:+DeoptimizeALot

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79172/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/b29da65e-5e7a-4f0b-ad9d-cfa8edd2f809/runs/ce146023-aba4-4a8d-b463-2e1b91a4cbbd/workspace/open/src/hotspot/share/opto/node.hpp:389), pid=12381, tid=12406
      # assert(i < _max) failed: oob: i=16, _max=16
      #
      # JRE version: Java(TM) SE Runtime Environment (17.0) (fastdebug build 17-lworld3ea+0-2021-04-14-1222070.christian.hagedorn.valhalla)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (fastdebug 17-lworld3ea+0-2021-04-14-1222070.christian.hagedorn.valhalla, compiled mode, sharing, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x9efac7] PhaseAggressiveCoalesce::insert_copies(Matcher&)+0xe57
      ...............
      Command Line: -Djava.library.path=/opt/mach5/mesos/work_dir/jib-master/install/2021-04-14-1222070.christian.hagedorn.valhalla/linux-x64-debug.test/hotspot/jtreg/native -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:MaxRAMPercentage=4 -Djava.io.tmpdir=/opt/mach5/mesos/work_dir/slaves/3c846bae-ce30-4a97-93ee-9fef4497ccb6-S79137/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/ccaf5eb3-0543-49dc-9a3e-59b3d445205b/runs/90feaec2-db13-4aae-bc1c-9698474664e3/testoutput/test-support/jtreg_open_test_hotspot_jtreg_hotspot_valhalla_ir_framework/tmp -Xcomp -XX:+CreateCoredumpOnCrash -ea -esa -XX:CompileThreshold=100 -XX:+UnlockExperimentalVMOptions -XX:-TieredCompilation -XX:+DeoptimizeALot -XX:+IgnoreUnrecognizedVMOptions -XX:-UseACmpProfile -XX:-UseCompressedOops -XX:FlatArrayElementMaxOops=5 -XX:FlatArrayElementMaxSize=-1 -XX:-UseArrayLoadStoreProfile -XX:InlineFieldMaxFlatSize=-1 -XX:-InlineTypePassFieldsAsArgs -XX:-InlineTypeReturnedAsFields -XX:-BackgroundCompilation -XX:CompileCommand=quiet -DWarmup=251 -Dir.framework.server.port=37481 jdk.test.lib.hotspot.ir_framework.TestFrameworkExecution compiler.valhalla.inlinetypes.TestNullableArrays compiler.valhalla.inlinetypes.MyValue1 compiler.valhalla.inlinetypes.MyValue2 compiler.valhalla.inlinetypes.MyValue2Inline
      ..............
      Current CompileTask:
      C2: 26117 3844 b compiler.valhalla.inlinetypes.TestNullableArrays::verify (58 bytes)

      Stack: [0x00007f65a03fc000,0x00007f65a04fd000], sp=0x00007f65a04f7ec0, free space=1007k
      Native frames: (J=compiled Java code, A=aot compiled Java code, j=interpreted, Vv=VM code, C=native code)
      V [libjvm.so+0x9efac7] PhaseAggressiveCoalesce::insert_copies(Matcher&)+0xe57
      V [libjvm.so+0x8d690e] PhaseChaitin::Register_Allocate()+0x2be
      V [libjvm.so+0xa45234] Compile::Code_Gen()+0x314
      V [libjvm.so+0xa50530] Compile::Compile(ciEnv*, ciMethod*, int, bool, bool, bool, bool, DirectiveSet*)+0x1b50
      V [libjvm.so+0x8650e8] C2Compiler::compile_method(ciEnv*, ciMethod*, int, bool, DirectiveSet*)+0x1f8
      V [libjvm.so+0xa60331] CompileBroker::invoke_compiler_on_method(CompileTask*)+0xf21
      V [libjvm.so+0xa60fd8] CompileBroker::compiler_thread_loop()+0x5a8
      V [libjvm.so+0x1924a61] JavaThread::thread_main_inner()+0x271
      V [libjvm.so+0x192c920] Thread::call_run()+0x100
      V [libjvm.so+0x15eed66] thread_native_entry(Thread*)+0x116

        Attachments

          Activity

            People

            Assignee:
            thartmann Tobias Hartmann
            Reporter:
            chagedorn Christian Hagedorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: