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

jdk/jfr/tool/TestPrintJSON.java fails due missing object id in pool jdk.types.Method

    Details

    • Subcomponent:
      jfr
    • CPU:
      x86_64
    • OS:
      linux

      Description

      The following test failed in the JDK14 CI:

      jdk/jfr/tool/TestPrintJSON.java

      jfr print: unexpected internal error, Missing object id=114294784 in pool jdk.types.Method. All ids should reference object
      java.lang.InternalError: Missing object id=114294784 in pool jdk.types.Method. All ids should reference object

      Here's a snippet from the failing log file:

      section:main
      ----------messages:(5/260)----------
      command: main jdk.jfr.tool.TestPrintJSON
      reason: User specified action: run main/othervm jdk.jfr.tool.TestPrintJSON
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules jdk.scripting.nashorn,jdk.jfr
      elapsed time (seconds): 8.657
      ----------configuration:(3/57)----------
      Boot Layer
        add modules: jdk.scripting.nashorn jdk.jfr

      ----------System.out:(25/2311)----------
      Command line: [/opt/mach5/mesos/work_dir/jib-master/install/jdk-14+27-1309/linux-x64-debug.jdk/jdk-14/fastdebug/bin/jfr print --json --stack-depth 999 /opt/mach5/mesos/work_dir/slaves/fcf4c0c4-d73e-4321-860c-6613427db92b-S1822/frameworks/1735e8a2-a1db-478c-8104-60c8b0af87dd-0196/executors/d226b760-2a02-4e05-98c9-6b5d958fe4a5/runs/15fa8af1-1409-4c4a-9975-49473367a96f/testoutput/test-support/jtreg_open_test_jdk_jdk_svc/scratch/3/profiling-recording15248604467094182577.jfr]
      [2019-12-11T13:38:29.057571Z] Gathering output for process 2729
      jfr print: unexpected internal error, Missing object id=114294784 in pool jdk.types.Method. All ids should reference object
      java.lang.InternalError: Missing object id=114294784 in pool jdk.types.Method. All ids should reference object
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.get(ConstantMap.java:100)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap$Reference.resolve(ConstantMap.java:56)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.resolve(ConstantMap.java:137)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.resolve(ConstantMap.java:143)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.resolve(ConstantMap.java:143)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.resolve(ConstantMap.java:143)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.get(ConstantMap.java:118)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.lambda$resolve$0(ConstantMap.java:151)
      at jdk.jfr/jdk.jfr.internal.LongMap.forEachKey(LongMap.java:227)
      at jdk.jfr/jdk.jfr.internal.consumer.ConstantMap.resolve(ConstantMap.java:151)
      at jdk.jfr/jdk.jfr.internal.consumer.ChunkParser.lambda$new$2(ChunkParser.java:149)
      at jdk.jfr/jdk.jfr.internal.LongMap.forEach(LongMap.java:236)
      at jdk.jfr/jdk.jfr.internal.consumer.ChunkParser.<init>(ChunkParser.java:149)
      at jdk.jfr/jdk.jfr.internal.consumer.ChunkParser.<init>(ChunkParser.java:116)
      at jdk.jfr/jdk.jfr.internal.consumer.ChunkParser.<init>(ChunkParser.java:112)
      at jdk.jfr/jdk.jfr.consumer.RecordingFile.findNext(RecordingFile.java:248)
      at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:87)
      at jdk.jfr/jdk.jfr.internal.tool.EventPrintWriter.print(EventPrintWriter.java:73)
      at jdk.jfr/jdk.jfr.internal.tool.Print.execute(Print.java:165)
      at jdk.jfr/jdk.jfr.internal.tool.Main.main(Main.java:84)

      ----------System.err:(45/3635)----------
      Warning: Nashorn engine is planned to be removed from a future JDK release
      javax.script.ScriptException: <eval>:1:17 Expected an operand but found eof
      var jsonObject =
                       ^ in <eval> at line number 1 at column number 17
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:477)
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:544)
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:531)
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:409)
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:162)
      at java.scripting/javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)
      at jdk.jfr.tool.TestPrintJSON.main(TestPrintJSON.java:72)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:832)
      Caused by: jdk.nashorn.internal.runtime.ParserException: <eval>:1:17 Expected an operand but found eof
      var jsonObject =
                       ^
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:297)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.AbstractParser.error(AbstractParser.java:282)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.unaryExpression(Parser.java:4462)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.expression(Parser.java:4620)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.conditionalExpression(Parser.java:4772)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.assignmentExpression(Parser.java:4711)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.variableDeclarationList(Parser.java:1633)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.variableStatement(Parser.java:1532)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.statement(Parser.java:1042)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.sourceElements(Parser.java:909)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.program(Parser.java:844)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Parser.java:325)
      at jdk.scripting.nashorn/jdk.nashorn.internal.parser.Parser.parse(Parser.java:285)
      at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compile(Context.java:1500)
      at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compileScript(Context.java:1467)
      at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.Context.compileScript(Context.java:750)
      at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.compileImpl(NashornScriptEngine.java:542)
      ... 11 more

      JavaTest Message: Test threw exception: javax.script.ScriptException: <eval>:1:17 Expected an operand but found eof
      var jsonObject =
                       ^ in <eval> at line number 1 at column number 17
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: javax.script.ScriptException: <eval>:1:17 Expected an operand but found eof var jsonObject = ^ in <eval> at line number 1 at column number 17
      ----------rerun:(38/6747)*----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mgronlun Markus Grönlund
                Reporter:
                dcubed Daniel Daugherty
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: