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}

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 1.9.7 (beta)
    • 1.9.7 (beta)
    • Server (S)
    • # 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

      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

            Unassigned Unassigned
            zalex_ua Oleksii Zagorskyi
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: