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

[REDO] JDK-8164913: JVMTI.agent_load dcmd should show useful error message

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 9
    • Fix Version/s: tbd
    • Component/s: core-svc
    • Labels:

      Description

      The change for JDK-8164913 was backed out due to failing a large number of tests. We should look at doing this change properly in JDK 10.

      [2016-09-10T04:36:57.67] VirtualMachine.loadAgent(null)
      [2016-09-10T04:36:57.67] TargetApp (stderr): Error opening zip file or JAR manifest missing:
      [2016-09-10T04:36:57.68] TargetApp (stdout): Signal received: 'null'
      [2016-09-10T04:36:57.69] Exception in thread "main" nsk.share.Failure: Unexpected exception during test execution: java.lang.InternalError: instrument library is missing in target VM
      [2016-09-10T04:36:57.69] at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:144)
      [2016-09-10T04:36:57.69] at nsk.aod.VirtualMachine.VirtualMachine01.VirtualMachine01.main(VirtualMachine01.java:133)
      [2016-09-10T04:36:57.69] Caused by: java.lang.InternalError: instrument library is missing in target VM
      [2016-09-10T04:36:57.69] at sun.tools.attach.HotSpotVirtualMachine.loadAgent(jdk.attach@9-internal/HotSpotVirtualMachine.java:107)
      [2016-09-10T04:36:57.69] at com.sun.tools.attach.VirtualMachine.loadAgent(jdk.attach@9-internal/VirtualMachine.java:539)
      [2016-09-10T04:36:57.69] at nsk.aod.VirtualMachine.VirtualMachine01.VirtualMachine01.doTestActions(VirtualMachine01.java:69)
      [2016-09-10T04:36:57.69] at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:120)
      [2016-09-10T04:36:57.69] ... 1 more
      [2016-09-10T04:36:57.69] Caused by: com.sun.tools.attach.AgentLoadException: Failed to load agent library
      [2016-09-10T04:36:57.69] at sun.tools.attach.VirtualMachineImpl.execute(jdk.attach@9-internal/VirtualMachineImpl.java:214)
      [2016-09-10T04:36:57.69] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(jdk.attach@9-internal/HotSpotVirtualMachine.java:60)
      [2016-09-10T04:36:57.69] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(jdk.attach@9-internal/HotSpotVirtualMachine.java:81)
      [2016-09-10T04:36:57.69] at sun.tools.attach.HotSpotVirtualMachine.loadAgent(jdk.attach@9-internal/HotSpotVirtualMachine.java:105)

        Attachments

          Issue Links

          There are no Sub-Tasks for this issue.

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jprovino Joseph Provino (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated: