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

[Graal] Exception raised in scope JVMCI CompilerThread0.Compiling.GraalCompiler.FrontEnd.MidTier.LoopPartialUnrollPhase: java.lang.AssertionError: 342|ValuePhi(47 383, i32)

    Details

      Description

      The generated test fails with graal enabled for JDK11/18 .Full trace is:
       Thread[JVMCI CompilerThread0,9,system]: Compilation of Test.mainTest(String[]) failed: java.lang.AssertionError: 169|ValuePhi(26 187, i32)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.LoopFragmentInside.insertWithinAfter(LoopFragmentInside.java:181)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.LoopFragmentInside.insertWithinAfter(LoopFragmentInside.java:155)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopTransformations.partialUnroll(LoopTransformations.java:156)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:67)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:34)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.PhaseSuite.run(PhaseSuite.java:210)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.emitFrontEnd(GraalCompiler.java:259)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:178)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:163)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:188)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:201)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:179)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:96)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:167)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:328)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:141)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:108)
      > at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:443)
      > To disable compilation failure notifications, set CompilationFailureAction to Silent (e.g., -Dgraal.CompilationFailureAction=Silent).
      > To print a message for a compilation failure without retrying the compilation, set CompilationFailureAction to Print (e.g., -Dgraal.CompilationFailureAction=Print).
      > Retrying compilation of Test.mainTest(String[])
      >
      > [thread:5] scope: JVMCI CompilerThread0
      > [thread:5] scope: JVMCI CompilerThread0.Compiling.GraalCompiler
      > Context: StructuredGraph:120{HotSpotMethod<Test.mainTest(String[])>}
      > [thread:5] scope: JVMCI CompilerThread0.Compiling.GraalCompiler.FrontEnd.MidTier.LoopPartialUnrollPhase
      > Exception raised in scope JVMCI CompilerThread0.Compiling.GraalCompiler.FrontEnd.MidTier.LoopPartialUnrollPhase: java.lang.AssertionError: 342|ValuePhi(47 383, i32)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.LoopFragmentInside.insertWithinAfter(LoopFragmentInside.java:181)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.LoopFragmentInside.insertWithinAfter(LoopFragmentInside.java:155)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopTransformations.partialUnroll(LoopTransformations.java:156)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:67)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase.run(LoopPartialUnrollPhase.java:34)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.PhaseSuite.run(PhaseSuite.java:210)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:195)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.phases.BasePhase.apply(BasePhase.java:137)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.emitFrontEnd(GraalCompiler.java:259)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.compile(GraalCompiler.java:178)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.GraalCompiler.compileGraph(GraalCompiler.java:163)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileHelper(HotSpotGraalCompiler.java:188)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compile(HotSpotGraalCompiler.java:201)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:179)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask$HotSpotCompilationWrapper.performCompilation(CompilationTask.java:96)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.core.CompilationWrapper.run(CompilationWrapper.java:267)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.CompilationTask.runCompilation(CompilationTask.java:328)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:141)
      > at jdk.internal.vm.compiler@11-ea/org.graalvm.compiler.hotspot.HotSpotGraalCompiler.compileMethod(HotSpotGraalCompiler.java:108)
      > at jdk.internal.vm.ci/jdk.vm.ci.hotspot.HotSpotJVMCIRuntime.compileMethod(HotSpotJVMCIRuntime.java:443)
      >
      > Context obj org.graalvm.compiler.loop.phases.LoopPartialUnrollPhase@41365eed
      > Context obj org.graalvm.compiler.core.phases.MidTier@438e93c1
      > Context obj StructuredGraph:120{HotSpotMethod<Test.mainTest(String[])>}
      > Context obj jdk.vm.ci.hotspot.HotSpotCodeCacheProvider@7abd7b8d
      > Context obj DebugDumpScope[148]
      > Exiting VM after retry compilation of Test.mainTest(String[])

        Attachments

        1. FuzzerUtils.java
          13 kB
        2. graal_diagnostics_17371.zip
          504 kB
        3. LoopPartialUnrollPhase.zip
          932 kB
        4. Test.java
          6 kB

          Activity

            People

            • Assignee:
              never Tom Rodriguez
              Reporter:
              lmesnik Leonid Mesnik
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: