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

JDI shared memory connector can use already closed Handles

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 15
    • Component/s: core-svc
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b16
    • OS:
      windows

      Description

      Calling shmemBase_closeConnection() closes the Handles opened/created for the mutexes used to serialize reads and writes for each stream of the connection. After this call, the Handle id that used to identified a previously closed mutex could be recycled by the OS and assigned to a new object. If a thread tries to read or write a packet after the connection was closed the call will end up in sysIPMutexEnter() which calls WaitForMultipleObjects() on the previously closed mutex and the shutdown event. If the Handle id was indeed recycled that call will affect the state of the new object.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pchilanomate Patricio Chilano Mateo
                Reporter:
                pchilanomate Patricio Chilano Mateo
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: