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

Handle to jimage file inherited into child processes (posix)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Won't Fix
    • Affects Version/s: 11, 18
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      We should not leak the handle to the jimage file (lib/modules) to childs.

      JDK-8194734 did solve this for windows. We should use FD_CLOEXEC on Posix as well.

      Note that this only poses a problem when a child process is spawned off not via `Runtime.exec` but via another route since the spawnhelper closes all file descriptors.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              stuefe Thomas Stuefe
              Reporter:
              stuefe Thomas Stuefe
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: