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

Expression macros with binary items crashes escalator

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Duplicate
    • Icon: Trivial Trivial
    • None
    • 7.0.0
    • Server (S)
    • None

      Hi Guys.

      Reproduce:

      • create host
      • link template “Website by browser” and make sure data comes in
      • Create media type email with problem message template:
      <html lang="en"><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8">
      <img src="data:image/png;base64, {?last(//website.screenshot)} />
      </html>
      • Setup media for user, enable actions.
      • Generate problem

      Observe:

      zabbix_server [72543]: ERROR [file and function: <history.c,zbx_history_value2variant>, revision:49955f1fb5c, line:442] Something impossible has just happened.
       72543:20240610:153135.426 === Backtrace: ===
       72543:20240610:153135.428 25: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_backtrace+0x41) [0x562d6be7b701]
       72543:20240610:153135.428 24: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_history_value2variant+0xca) [0x562d6bf43e2a]
       72543:20240610:153135.428 23: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x21b1b1) [0x562d6bf8f1b1]
       72543:20240610:153135.428 22: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](evaluate_function+0x494) [0x562d6bf90664]
       72543:20240610:153135.428 21: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x21f50e) [0x562d6bf9350e]
       72543:20240610:153135.428 20: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x20b6b1) [0x562d6bf7f6b1]
       72543:20240610:153135.428 19: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x1db1e4) [0x562d6bf4f1e4]
       72543:20240610:153135.428 18: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x1dfb01) [0x562d6bf53b01]
       72543:20240610:153135.428 17: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_expression_eval_execute+0xf2) [0x562d6bf743b2]
       72543:20240610:153135.428 16: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x200ec1) [0x562d6bf74ec1]
       72543:20240610:153135.428 15: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](substitute_simple_macros_impl+0x1701) [0x562d6bf76711]
       72543:20240610:153135.428 14: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_substitute_simple_macros+0x35) [0x562d6bf7eb45]
       72543:20240610:153135.428 13: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x35005f) [0x562d6c0c405f]
       72543:20240610:153135.428 12: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x3501f2) [0x562d6c0c41f2]
       72543:20240610:153135.428 11: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x3555c4) [0x562d6c0c95c4]
       72543:20240610:153135.428 10: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x355caa) [0x562d6c0c9caa]
       72543:20240610:153135.428 9: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x356a2c) [0x562d6c0caa2c]
       72543:20240610:153135.428 8: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0x358ad6) [0x562d6c0ccad6]
       72543:20240610:153135.428 7: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](escalator_thread+0x379) [0x562d6c0cd059]
       72543:20240610:153135.428 6: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_thread_start+0x27) [0x562d6bf41647]
       72543:20240610:153135.428 5: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](+0xd7b1a) [0x562d6be4bb1a]
       72543:20240610:153135.428 4: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](MAIN_ZABBIX_ENTRY+0xebb) [0x562d6c1437eb]
       72543:20240610:153135.428 3: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](zbx_daemon_start+0x10d) [0x562d6be7c18d]
       72543:20240610:153135.428 2: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](main+0x3ea) [0x562d6be3570a]
       72543:20240610:153135.428 1: /lib64/libc.so.6(__libc_start_main+0xe5) [0x7fec890187e5]
       72543:20240610:153135.428 0: /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000000 sec, processing escalations](_start+0x2e) [0x562d6be3c23e]
       72521:20240610:153135.429 One child process died (PID:72543,exitcode/signal:1). Exiting ...
       72522:20240610:153135.429 HA manager has been paused
      zabbix_server [72521]: Error waiting for process with PID 72543: [10] No child processes
       72522:20240610:153135.438 HA manager has been stopped
       72521:20240610:153135.439 syncing trend data...
       72521:20240610:153135.439 syncing trend data done
       72521:20240610:153135.440 Zabbix Server stopped. Zabbix 7.0.0 (revision 49955f1fb5c).

      Expected:

      Either an email with screenshot, or at least a running server.

      Binary - binary number (supported for dependent items only). A binary number will be resolved to a static "binary value" string in Latest data; {ITEM.VALUE}, {ITEM.LASTVALUE} and expression macros will resolve to UNKNOWN. <- this part seems to no work as expected

            zabbix.dev Zabbix Development Team
            bmickiewicz Bartosz Mickiewicz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: