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

Crash zabbix_server (escalator) on the macro {ITEM.LASTVALUE}

    Details

    • Type: Incident report
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.9.7 (beta)
    • Fix Version/s: 1.9.7 (beta)
    • Component/s: Server (S)
    • Labels:
    • Environment:
      # zabbix_server -V
      Zabbix Server v1.9.7 (revision 21911) (9 September 2011)
      Compilation time: Sep 24 2011 17:46:59

      Debian 6.0.2
      mysql Ver 14.14 Distrib 5.1.49, for debian-linux-gnu (x86_64) using readline 6.1

      Description

      If an action has a macro

      {ITEM.LASTVALUE}

      in a message body then zabbi_server always crashes in function "add_value_suffix()"

      That happens when item does not have (by default) configured "Units":

      20382:20110924:235413.332 In zbx_format_value()
      20382:20110924:235413.332 In replace_value_by_map() value:'6' valuemapid:0
      20382:20110924:235413.332 End of replace_value_by_map() value:'6'
      20382:20110924:235413.332 In add_value_suffix() value:'6' units:'' value_type:3
      20382:20110924:235413.332 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x6]. Crashing ...
      20382:20110924:235413.332 ====== Fatal information: ======
      20382:20110924:235413.332 Program counter: 0x7fcd686b7d8a
      ....

      If the item has configured "Units" ("sss" in next example) then server is not crashed:

      20864:20110925:000656.682 In zbx_format_value()
      20864:20110925:000656.683 In replace_value_by_map() value:'6' valuemapid:0
      20864:20110925:000656.683 End of replace_value_by_map() value:'6'
      20864:20110925:000656.683 In add_value_suffix() value:'6' units:'sss' value_type:3
      20864:20110925:000656.683 In add_value_suffix_normal()
      20864:20110925:000656.683 End of add_value_suffix_normal()
      20864:20110925:000656.683 End of add_value_suffix() value:'H='
      20864:20110925:000656.683 End of zbx_format_value()
      20864:20110925:000656.683 End of DBget_item_lastvalue():SUCCEED
      ....

      objdump, debuglog (grep of escalator process only) attached

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              zalex_ua Oleksiy Zagorskyi
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: