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

Bailout in Conv2B::Ideal when type of cmp input is not supported

XMLWordPrintable

    • b26

      C2 crashes/asserts in `Conv2BNode::Ideal` in a release/debug builds if the type of the Conv2BNode input is not INT or PTR (e.g., TOP). See error message further below.

      Creating a small test case to reproduce the issue is being a bit challenging so this ticket is to simply address the issue by bailing out of the Conv2BNode::Ideal if the input type is unsupported. This other ticket https://bugs.openjdk.org/browse/JDK-8357885 will address creating a regression test for the problem.

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # Internal Error (/home/jenkins/node/workspace/Corretto21/generic_linux/x64/build/Corretto21Src/installers/linux/universal/tar/corretto-build/buildRoot/src/hotspot/share/opto/convertnode.cpp:77), pid=6117, tid=6133
      # assert(false) failed: Unrecognized comparison for Conv2B: Con
      #
      # JRE version: OpenJDK Runtime Environment Corretto-21.0.7.3.1 (21.0.7+3) (fastdebug build 21.0.7+3-Nightly)
      # Java VM: OpenJDK 64-Bit Server VM Corretto-21.0.7.3.1 (fastdebug 21.0.7+3-Nightly, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, linux-amd64)
      # Problematic frame:
      # V [libjvm.so+0xa4abfa] Conv2BNode::Ideal(PhaseGVN*, bool)+0xaaa
      #
      # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t 922337203685[477](https://github.com/detekt/detekt/actions/runs/15252155529/job/42935717044#step:6:478)5808 %h" (or dumping to /home/runner/work/detekt/detekt/detekt-rules-style/core.6117)
      #
      # An error report file with more information is saved as:
      # /home/runner/work/detekt/detekt/detekt-rules-style/hs_err_pid6117.log
      #
      # Compiler replay data is saved as:
      # /home/runner/work/detekt/detekt/detekt-rules-style/replay_pid6117.log
      #
      # If you would like to submit a bug report, please visit:
      # https://github.com/corretto/corretto-21/issues/
      #

            cslucas Cesar Soares
            cslucas Cesar Soares
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: