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

zabbix_server crash on macro expansion with invalid value

    Details

    • Type: Problem report
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.11, 4.0.0alpha8
    • Fix Version/s: 3.4.12rc1, 4.0.0alpha9, 4.0 (plan)
    • Component/s: Server (S)
    • Environment:
      "zabbix appliance image (Ubuntu)" on HyperV
      /usr/sbin/zabbix_server --version
      zabbix_server (Zabbix) 3.4.2
      Revision 72885 25 September 2017, compilation time: Sep 26 2017 11:11:28
    • Team:
      Team A
    • Sprint:
      Sprint 37
    • Story Points:
      0.125

      Description

      Steps to reproduce:

      1. Have some process discovery and item prototypes for monitoring memory usage
      2. Have a macro {$PROC_MAX_MEMORY:someProcessName} with value '1G'
      3. Have some trigger(prototype) using an expression containing the context-macro ie. '{discovered item} > {$PROC_MAX_MEMORY:"{#PROCNAME}"}'
      4. Change the amount of allowed memoryUsage and make some typo by changing the value to '1GG'

      I didn't test these exact steps, but I came across this problem. suddenly zabbix_server crashed and after restart it immediately crashes again. After thinking and double-checking the changes I made, and the 'DCexpression_expand_user_macros' in the backtrace, I noticed this typo. Removing the double 'G' fixed the issue, the server started again without issues.

      Result:
      zabbix_server crashes
      See backtrace (attachment)

      Expected:
      Some 'Not Supported' state with some indication there is an issue with a trigger expression

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vso Vladislavs Sokurenko
                Reporter:
                abertier Andy Bertier
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: