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

JVM hangs at getAgentProperties after attaching to VM with lower IntegrityLevel

    XMLWordPrintable

Details

    • svc
    • b33

    Backports

      Description

        This is a Sustaining managed bug.

        Problem description:
        On Windows 7 with User Account Control (UAC) enabled, JVM hangs at getAgentProperties or getSystemProperties after attaching from a "high" IntegrityLevel JVM to a "medium" IntegrityLevel JVM, using Attach API:
        attachedVM = com.sun.tools.attach.VirtualMachine.attach(pid);
        final Properties systemProperties = attachedVM.getSystemProperties();

        Root cause:
        In WindowsVirtualMachine.attach is implemented with named pipes.
        If named pipe was created with default security properties then windows will not allow process with"medium" IntegrityLevel to be attached to a processwith "high" IntegrityLevel.

        Solution:
        Create security properties that allow requested connection.

        Attachments

          Issue Links

            Activity

              People

                sgabdura Sergey Gabdurakhmanov (Inactive)
                shadowbug Shadow Bug
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: