Runtime control for PID may overflow

XMLWordPrintable

    • Type: Incident report
    • Resolution: Workaround proposed
    • Priority: Trivial
    • None
    • Affects Version/s: 3.0.17, 3.4.9, 4.0.0alpha6
    • Component/s: Agent (G), Proxy (P), Server (S)
    • None

      Zabbix Runtime Control function tell the message to child processes for Server, Proxy and Agent. Then the message size is C Language int, may be 32bits. The function slices it to 16bits data, 8bits scope and 8bits command.

      Now the function for PID is implemented to increase or decrease debug level. Though in 64bit Linux PID max is for 15bits, it can be increased. So, 16bits data for PID is overflowed.

      To resolve this, use void pointer (void *sival_ptr for union sigval) instead of int value (int sigval_int, i.e. ZBX_SIVAL_INT) for sigqueue() must be used on zbx_sigusr_send().

            Assignee:
            Unassigned
            Reporter:
            MATSUDA Daiki
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: