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

Attach on windows can fail with java.io.IOException: All pipe instances are busy

    Details

    • Subcomponent:
      svc
    • OS:
      windows

      Description

      The test attach002a fails when trying to load a native agent:

      [2014-01-09T04:04:53.61] Trying to load native agent: 'attach002aAgent00' (agent options: '-pathToNewByteCode=C:/local/aurora/sandbox/sca/vmsqe/testbase/vm/8/build/execution/vm//bin/newclass00 -agentName=NativeAgent-0')
      [2014-01-09T04:04:53.61] # ERROR: Unexpected IOException during agent loading: java.io.IOException: CreateNamedPipe failed
      [2014-01-09T04:04:53.61] java.io.IOException: CreateNamedPipe failed
      [2014-01-09T04:04:53.61] at sun.tools.attach.WindowsVirtualMachine.createPipe(Native Method)
      [2014-01-09T04:04:53.61] at sun.tools.attach.WindowsVirtualMachine.execute(WindowsVirtualMachine.java:85)
      [2014-01-09T04:04:53.61] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:58)
      [2014-01-09T04:04:53.61] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:79)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AgentsAttacher.tryToLoadAgent(AgentsAttacher.java:71)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AgentsAttacher.attachAgents(AgentsAttacher.java:48)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.doTestActions(AODTestRunner.java:63)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:116)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.main(AODTestRunner.java:163)
      [2014-01-09T04:04:53.61] Detaching from the VM 'sun.tools.attach.WindowsAttachProvider@132e575: 1362408'
      [2014-01-09T04:04:53.61] Exception in thread "main" nsk.share.Failure: Couldn't attach agent to the target application
      [2014-01-09T04:04:53.61] at nsk.share.aod.AgentsAttacher.failed(AgentsAttacher.java:113)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AgentsAttacher.tryToLoadAgent(AgentsAttacher.java:102)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AgentsAttacher.attachAgents(AgentsAttacher.java:48)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.doTestActions(AODTestRunner.java:63)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.runTest(AODTestRunner.java:116)
      [2014-01-09T04:04:53.61] at nsk.share.aod.AODTestRunner.main(AODTestRunner.java:163)
      [2014-01-09T04:04:53.61] Caused by: java.io.IOException: CreateNamedPipe failed
      [2014-01-09T04:04:53.61] at sun.tools.attach.WindowsVirtualMachine.createPipe(Native Method)
      [2014-01-09T04:04:53.62] at sun.tools.attach.WindowsVirtualMachine.execute(WindowsVirtualMachine.java:85)
      [2014-01-09T04:04:53.62] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:58)
      [2014-01-09T04:04:53.62] at sun.tools.attach.HotSpotVirtualMachine.loadAgentLibrary(HotSpotVirtualMachine.java:79)
      [2014-01-09T04:04:53.62] at nsk.share.aod.AgentsAttacher.tryToLoadAgent(AgentsAttacher.java:71)
      [2014-01-09T04:04:53.62] ... 4 more
      [2014-01-09T04:04:53.62]

        Attachments

          Activity

            People

            • Assignee:
              gadams Gary Adams (Inactive)
              Reporter:
              ehelin Erik Helin
            • Votes:
              0 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: