Skip to content

[JENKINS-43930] Windows Agent Service Installer may leak File descriptors #22053

Closed

Description

@jenkins-infra-bot

Windows Service installer for the Jenkins master uses the "Redirect.log" to retrieve the result of the service start command. If the read issue happens, the file descriptor may be leaked. In such case new service start attempts within Jenkins will be failing till the instance restart.

Same as JENKINS-42670, but for the module


Originally reported by oleg_nenashev, imported from: Windows Agent Service Installer may leak File descriptors
  • assignee: oleg_nenashev
  • status: Resolved
  • priority: Major
  • component(s): core, windows-slave-installer-module
  • label(s): leak
  • resolution: Fixed
  • resolved: 2017-05-10T19:16:17+00:00
  • votes: 0
  • watchers: 2
  • imported: 2025-11-24
Raw content of original issue

Windows Service installer for the Jenkins master uses the "Redirect.log" to retrieve the result of the service start command. If the read issue happens, the file descriptor may be leaked. In such case new service start attempts within Jenkins will be failing till the instance restart.

Same as JENKINS-42670, but for the module

Activity

  1. jenkins-infra-bot commented on May 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Oleg Nenashev
    Path:
    src/main/java/org/jenkinsci/modules/windows_slave_installer/WindowsSlaveInstaller.java
    http://jenkins-ci.org/commit/windows-slave-installer-module/44a08b3ac12934de907c754b1750293fbee70d4f
    Log:
    [FIXED JENKINS-43930] - Fatal file leak on exceptional path when redirect.log is not writable

  2. jenkins-infra-bot commented on May 10, 2017

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      The fix has been merged towards 2.60. In order to backport the change, a new backport & release of Windows Agent Installer module will be required

    The fix has been merged towards 2.60. In order to backport the change, a new backport & release of Windows Agent Installer module will be required

  3. jenkins-infra-bot commented on Nov 24, 2025

    @jenkins-infra-bot
    Author

    [Original relates_to from Jira: JENKINS-42670]

  4. removed
    bugFor changelog: Minor bug. Will be listed after features
    on Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions