Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4104

using closed handle in libs/zbxexec/execute.c zbx_execute()

    XMLWordPrintable

Details

    • Incident report
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.8.7
    • 1.8.9, 1.9.7 (beta)
    • Agent (G)
    • None

    Description

      libs/zbxexec/execute.c zbx_execute() code, which is supposed to wait for launched process finish, is accessing previously closed handle in WaitForSingleObject() call.
      it results in sporadical false execute timeouts.

      also MSDN recommends calling SetHandleInformation() for read pipe handle for reasons unknown, and I trust them in that.

      patch for 1.8.7 is attached

      Attachments

        Activity

          People

            Unassigned Unassigned
            alix alix
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: