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

[Graal] Compilation fails with StackOverflowError

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:

      Description

      The code is attached. Graal failed with:
      hread[JVMCI CompilerThread0,9,system]: Compilation of Test.vMeth(double) failed: java.lang.StackOverflowError
              at jdk.internal.vm.ci/jdk.vm.ci.meta.NullConstant.isNull(NullConstant.java:40)
              at jdk.internal.vm.ci/jdk.vm.ci.meta.JavaConstant.isNonNull(JavaConstant.java:76)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.nodes.StaticDeoptimizingNode.computePriority(StaticDeoptimizingNode.java:68)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:169)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)
              at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase.propagateFixed(ConvertDeoptimizeToGuardPhase.java:182)

        Attachments

        1. FuzzerUtils.java
          13 kB
        2. rt_out
          326 kB
        3. Test.java
          6 kB

          Issue Links

            Activity

              People

              • Assignee:
                aprokopec Aleksandar Prokopec
                Reporter:
                lmesnik Leonid Mesnik
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: