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

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Major
    • 1.8.9, 1.9.7 (beta)
    • Affects Version/s: 1.8.7
    • Component/s: Agent (G)
    • None

      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

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

              Created:
              Updated:
              Resolved: