Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8042304 Fuzzing jdk9/dev/nashorn
  3. JDK-8047079

[delete this] fails with assertion error in LiteralNode

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P3
    • Resolution: Duplicate
    • Affects Version/s: 9
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      jjs -J-Djava.ext.dirs=$jdk9_dev/nashorn/dist -J-esa -J-ea

      jjs> [delete this]

      Exception in thread "main" java.lang.AssertionError: Failed generating bytecode for <shell>:1
      at jdk.nashorn.internal.codegen.CompilationPhase$11.transform(CompilationPhase.java:437)
      at jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:674)
      at jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:506)
      at jdk.nashorn.internal.runtime.Context.compile(Context.java:1106)
      at jdk.nashorn.internal.runtime.Context.eval(Context.java:580)
      at jdk.nashorn.tools.Shell.readEvalPrint(Shell.java:448)
      at jdk.nashorn.tools.Shell.run(Shell.java:158)
      at jdk.nashorn.tools.Shell.main(Shell.java:133)
      at jdk.nashorn.tools.Shell.main(Shell.java:112)
      Caused by: java.lang.AssertionError
      at jdk.nashorn.internal.ir.LiteralNode$ArrayLiteralNode.presetObjectArray(LiteralNode.java:743)
      at jdk.nashorn.internal.ir.LiteralNode$ArrayLiteralNode.getPresets(LiteralNode.java:853)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadArray(CodeGenerator.java:1995)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadLiteral(CodeGenerator.java:2199)
      at jdk.nashorn.internal.codegen.CodeGenerator.access$1800(CodeGenerator.java:181)
      at jdk.nashorn.internal.codegen.CodeGenerator$1.enterLiteralNode(CodeGenerator.java:824)
      at jdk.nashorn.internal.ir.LiteralNode$ArrayLiteralNode.accept(LiteralNode.java:884)
      at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
      at jdk.nashorn.internal.ir.LiteralNode$ArrayLiteralNode.accept(LiteralNode.java:879)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadExpression(CodeGenerator.java:686)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadExpression(CodeGenerator.java:662)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadExpressionAsType(CodeGenerator.java:658)
      at jdk.nashorn.internal.codegen.CodeGenerator$15.evaluate(CodeGenerator.java:3707)
      at jdk.nashorn.internal.codegen.CodeGenerator$Store.store(CodeGenerator.java:4297)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadASSIGN(CodeGenerator.java:3709)
      at jdk.nashorn.internal.codegen.CodeGenerator.access$500(CodeGenerator.java:181)
      at jdk.nashorn.internal.codegen.CodeGenerator$1.enterASSIGN(CodeGenerator.java:747)
      at jdk.nashorn.internal.ir.visitor.NodeOperatorVisitor.enterBinaryNode(NodeOperatorVisitor.java:113)
      at jdk.nashorn.internal.ir.BinaryNode.accept(BinaryNode.java:315)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadExpression(CodeGenerator.java:686)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadExpression(CodeGenerator.java:662)
      at jdk.nashorn.internal.codegen.CodeGenerator.loadAndDiscard(CodeGenerator.java:3539)
      at jdk.nashorn.internal.codegen.CodeGenerator.enterExpressionStatement(CodeGenerator.java:1512)
      at jdk.nashorn.internal.ir.ExpressionStatement.accept(ExpressionStatement.java:66)
      at jdk.nashorn.internal.ir.Node.accept(Node.java:268)
      at jdk.nashorn.internal.ir.Block.accept(Block.java:152)
      at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
      at jdk.nashorn.internal.ir.Block.accept(Block.java:386)
      at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:351)
      at jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
      at jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:46)
      at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:52)
      at jdk.nashorn.internal.codegen.CompilationPhase$11.transform(CompilationPhase.java:424)
      ... 8 more

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lagergren Marcus Lagergren
              Reporter:
              sundar Sundararajan Athijegannathan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: