ZABBIX BUGS AND ISSUES
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-4104

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

    Details

    • Type: Incident report Incident report
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.7
    • Fix Version/s: 1.8.9, 1.9.7 (beta)
    • Component/s: Agent (G)
    • Labels:
      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

      1. execute.c.patch
        0.4 kB
        alix
      2. execute.c.patch.unified
        0.8 kB
        alix

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        11d 3h 5m 1 Rudolfs Kreicbergs 2011 Sep 14 13:47
        Resolved Resolved Merging Merging
        6d 4h 57m 1 dimir 2011 Sep 20 18:44
        Merging Merging Closed Closed
        7d 18h 43m 1 Rudolfs Kreicbergs 2011 Sep 28 13:28

          People

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

            Dates

            • Created:
              Updated:
              Resolved: