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

Shenandoah: Default case invoked for: "MaxL" (bad AD file)

XMLWordPrintable

    • 23
    • b20

      Running dacapo benchmarks with Shenandoah crashes.

      ```
      ./build/linux-x86_64-server-fastdebug/jdk/bin/java -jar -XX:+UseShenandoahGC -Xmx4g -jar ~/benchmark-artifacts/dacapo-23.8-chopin-RC1.jar --scratch-directory /tmp/dacapo --no-validation --variance 5 --no-pre-iteration-gc --iterations 10 --size small avrora batik eclipse h2 jython luindex lusearch pmd sunflow xalan tomcat
      ```

      Usually encounter this crash by the time it gets to h2 or jython.

      ```
      Default case invoked for:
         opcode = 210, "MaxL"
      o5552 MaxL === _ o5408 o371 [[ o5404 ]]

      --N: o5552 MaxL === _ o5408 o371 [[ o5404 ]]

         --N: o5408 DivL === o5488 o31 o5411 [[ o5552 ]]
         RREGL 4000 divL_rReg
         NO_RAX_RDX_REGL 4000 divL_rReg
         RAX_REGL 4000 divL_rReg
         RCX_REGL 4000 divL_rReg
         RDX_REGL 4000 divL_rReg
         NO_RBP_R13_REGL 4000 divL_rReg
         STACKSLOTL 4100 storeSSL

            --N: o31 AddL === _ o12 o30 [[ o680 o4152 o678 o657 o623 o265 o85 o85 o475 o351 o322 o3373 o647 o463 o567 o370 o214 o445 o5408 o5416 ]]
            RREGL 0 RREGL
            NO_RAX_RDX_REGL 0 NO_RAX_RDX_REGL
            RAX_REGL 0 RAX_REGL
            RCX_REGL 0 RCX_REGL
            RDX_REGL 0 RDX_REGL
            NO_RBP_R13_REGL 0 NO_RBP_R13_REGL
            STACKSLOTL 100 storeSSL

            --N: o5411 SubL === _ o5413 o5412 [[ o5408 o5410 o5521 ]]
            RREGL 0 RREGL
            NO_RAX_RDX_REGL 0 NO_RAX_RDX_REGL
            RAX_REGL 0 RAX_REGL
            RCX_REGL 0 RCX_REGL
            RDX_REGL 0 RDX_REGL
            NO_RBP_R13_REGL 0 NO_RBP_R13_REGL
            STACKSLOTL 100 storeSSL

         --N: o371 ConL === o0 [[ o5552 o5553 o4218 o4288 ]] #long:1
         IMML 20 IMML
         IMML8 5 IMML8
         IMMUL32 10 IMMUL32
         IMML32 15 IMML32
         IMML_POW2 15 IMML_POW2
         IMML1 0 IMML1
         RREGL 70 loadConUL32
         NO_RAX_RDX_REGL 70 loadConUL32
         RAX_REGL 70 loadConUL32
         RCX_REGL 70 loadConUL32
         RDX_REGL 70 loadConUL32
         NO_RBP_R13_REGL 70 loadConUL32
         STACKSLOTL 170 storeSSL

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/ANT.AMAZON.COM/kemperw/Development/genshen/src/hotspot/share/opto/matcher.cpp:1727), pid=3275617, tid=3277838
      # assert(false) failed: bad AD file
      #
      # JRE version: OpenJDK Runtime Environment (23.0) (fastdebug build 23-kemperw-openjdk-master.4a11db8b606)
      # Java VM: OpenJDK 64-Bit Server VM (fastdebug 23-kemperw-openjdk-master.4a11db8b606, mixed mode, tiered, compressed oops, compressed class ptrs, shenandoah gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0x13a1677] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x507
      #
      ```

      Seems the `MaxL` node was introduced recently: https://bugs.openjdk.org/browse/JDK-8324655.

        1. hs_err_pid3306889.log
          565 kB
          William Kemper
        2. replay_pid3306889.log
          584 kB
          William Kemper

            jcao Joshua Cao
            wkemper William Kemper
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: