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

RISC-V: C2: assert(false) failed: bad AD file

    XMLWordPrintable

Details

    • 19
    • b24
    • riscv
    • linux

    Backports

      Description

        The same issue is encountered with RISC-V fastdebug build, when testing `compiler/types/TestSubTypeCheckMacroTrichotomy.java`.

        ```
        o1062 Conv2B === _ o961 [[ o949 ]]

        --N: o1062 Conv2B === _ o961 [[ o949 ]]

           --N: o961 PartialSubtypeCheck === o943 o116 o119 [[ o1062 ]]
           IREGP_R15 2100 partialSubtypeCheck
           _PartialSubtypeCheck_iRegP_R14_iRegP_R10 200 _PartialSubtypeCheck_iRegP_R14_iRegP_R10

              --N: o116 ConP === o0 [[ o121 o121 o427 o128 o406 o1424 o170 o170 o406 o191 o382 o365 o308 o263 o678 o679 o960 o961 o840 o841 o959 o1122 o1123 o1168 o1169 o1224 o1225 o1263 o1264 o1309 o1310 o1363 o1364 o1419 o1420 o1421 o1422 o1423 o1593 o1594 o1595 o1596 o1657 o1658 o1659 o1660 o1735 o1736 o1737 o1739 o1910 o1911 ]] #precise TestSubTypeCheckMacroTrichotomy$A: 0x00000040ac31b1c8:Constant:exact * Klass:precise TestSubTypeCheckMacroTrichotomy$A: 0x00000040ac31b1c8:Constant:exact *
              IMMP 0 IMMP
              IREGP 100 loadConP
              IREGPNOSP 100 loadConP
              IREGP_R10 100 loadConP
              IREGP_R11 100 loadConP
              IREGP_R12 100 loadConP
              IREGP_R13 100 loadConP
              IREGP_R14 100 loadConP
              IREGP_R15 100 loadConP
              IREGP_R16 100 loadConP
              IREGP_R28 100 loadConP
              JAVATHREAD_REGP 100 loadConP
              INDIRECT 100 loadConP
              INLINE_CACHE_REGP 100 loadConP
              MEMORY 100 INDIRECT
              IREGNORP 100 IREGP
              IREGILNP 100 IREGP
              IREGILNPNOSP 100 IREGPNOSP
              VMEMA 100 INDIRECT

              --N: o119 ConP === o0 [[ o124 o124 o308 o1424 o167 o167 o263 o174 o191 o961 o1421 o1422 o1423 o1737 o1739 ]] #precise TestSubTypeCheckMacroTrichotomy$B: 0x00000040ac31b318:Constant:exact * Klass:precise TestSubTypeCheckMacroTrichotomy$B: 0x00000040ac31b318:Constant:exact *
              IMMP 0 IMMP
              IREGP 100 loadConP
              IREGPNOSP 100 loadConP
              IREGP_R10 100 loadConP
              IREGP_R11 100 loadConP
              IREGP_R12 100 loadConP
              IREGP_R13 100 loadConP
              IREGP_R14 100 loadConP
              IREGP_R15 100 loadConP
              IREGP_R16 100 loadConP
              IREGP_R28 100 loadConP
              JAVATHREAD_REGP 100 loadConP
              INDIRECT 100 loadConP
              INLINE_CACHE_REGP 100 loadConP
              MEMORY 100 INDIRECT
              IREGNORP 100 IREGP
              IREGILNP 100 IREGP
              IREGILNPNOSP 100 IREGPNOSP
              VMEMA 100 INDIRECT

        # To suppress the following error report, specify this argument
        # after -XX: or in .hotspotrc: SuppressErrorAt=/matcher.cpp:1707
        #
        # A fatal error has been detected by the Java Runtime Environment:
        #
        # Internal Error (/jdk/src/hotspot/share/opto/matcher.cpp:1707), pid=577, tid=594
        # assert(false) failed: bad AD file
        #
        # JRE version: OpenJDK Runtime Environment (20.0) (fastdebug build 20-internal-adhoc..jdk)
        # Java VM: OpenJDK 64-Bit Server VM (fastdebug 20-internal-adhoc..jdk, mixed mode, compressed oops, compressed class ptrs, g1 gc, linux-riscv64)
        # Problematic frame:
        # V [libjvm.so+0xee4538] Matcher::Label_Root(Node const*, State*, Node*, Node*&)+0x3f2
        #
        # No core dump will be written. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
        #
        # An error report file with more information is saved as:
        # /jdk/jtregReportDir/workdir/scratch/0/hs_err_pid577.log
        #
        # Compiler replay data is saved as:
        # /jdk/jtregReportDir/workdir/scratch/0/replay_pid577.log
        #
        # If you would like to submit a bug report, please visit:
        # https://bugreport.java.com/bugreport/crash.jsp
        #
        ```

        Attachments

          Issue Links

            Activity

              People

                xlinzheng Xiaolin Zheng
                xlinzheng Xiaolin Zheng
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: