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

Zabbix server crash on Zabbix trapper item

XMLWordPrintable

    • S24-W48/49
    • 0.125

      When Zabbix trapper item has specified "Allowed hosts" with user macro, Zabbix server is crashed:

        188:20241128:144643.671 In zbx_ipc_service_recv() timeout:1
         229:20241128:144643.671 zbx_ipc_socket_read() code:1006 size:4 data:00 00 00 00
         229:20241128:144643.671 End of zbx_ipc_socket_read():SUCCEED
         229:20241128:144643.671 End of am_db_flush_results() flushed:0
         229:20241128:144643.671 zbx_setproctitle() title:'alert syncer [queued 0 alerts(s), flushed 0 result(s) in 0.003679 sec, idle 1 sec]'
         224:20241128:144643.689 zbx_setproctitle() title:'trapper #2 [processing data]'
         224:20241128:144643.690 trapper got '{"request":"sender data","data":[{"host":"Zabbix server","key":"test","value":"10"}]}'
         224:20241128:144643.691 In recv_senderhistory()
         224:20241128:144643.691 In process_client_history_data()
         224:20241128:144643.692 In parse_history_data()
         224:20241128:144643.692 End of parse_history_data():SUCCEED processed:1/1
         224:20241128:144643.693 In substitute_simple_macros_impl() data:'{$TEST_HOST_MACRO}'
         224:20241128:144643.694 In DCget_user_macro() macro:'{$TEST_HOST_MACRO}'
         224:20241128:144643.694 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
         224:20241128:144643.694 ====== Fatal information: ======
         224:20241128:144643.694 Program counter: 0x5555556a32a6
         224:20241128:144643.694 === Registers: ===
         224:20241128:144643.694 r8      =     7ffffffb0bb0 =      140737488030640 =      140737488030640
         224:20241128:144643.695 r9      =     7ffffffb0bb8 =      140737488030648 =      140737488030648
         224:20241128:144643.695 r10     =                8 =                    8 =                    8
         224:20241128:144643.695 r11     =     5555559261a0 =       93824996237728 =       93824996237728
         224:20241128:144643.695 r12     =                0 =                    0 =                    0
         224:20241128:144643.695 r13     =     7ffffffb0bb0 =      140737488030640 =      140737488030640
         224:20241128:144643.695 r14     =     7ffffffb0bb8 =      140737488030648 =      140737488030648
         224:20241128:144643.695 r15     =     7ffffffb0df0 =      140737488031216 =      140737488031216
         224:20241128:144643.695 rdi     =                0 =                    0 =                    0
         224:20241128:144643.695 rsi     =                1 =                    1 =                    1
         224:20241128:144643.695 rbp     =                0 =                    0 =                    0
         224:20241128:144643.695 rbx     =                0 =                    0 =                    0
         224:20241128:144643.695 rdx     =     555555926120 =       93824996237600 =       93824996237600
         224:20241128:144643.695 rax     =     7ffffffb0b20 =      140737488030496 =      140737488030496
         224:20241128:144643.695 rcx     =                0 =                    0 =                    0
         224:20241128:144643.695 rsp     =     7ffffffb0ac0 =      140737488030400 =      140737488030400
         224:20241128:144643.695 rip     =     5555556a32a6 =       93824993604262 =       93824993604262
         224:20241128:144643.695 efl     =              202 =                  514 =                  514
         224:20241128:144643.695 csgsfs  =     7ffffffb0033 =      140737488027699 =      140737488027699
         224:20241128:144643.695 err     =                4 =                    4 =                    4
         224:20241128:144643.695 trapno  =                e =                   14 =                   14
         224:20241128:144643.695 oldmask =                0 =                    0 =                    0
         224:20241128:144643.695 cr2     =                0 =                    0 =                    0
         224:20241128:144643.695 === Backtrace: ===
         224:20241128:144643.698 19: /usr/sbin/zabbix_server: trapper #2 [processing data](zbx_backtrace+0x58) [0x5555556d4168]
         224:20241128:144643.698 18: /usr/sbin/zabbix_server: trapper #2 [processing data](zbx_log_fatal_info+0x445) [0x5555556d46c5]
         224:20241128:144643.698 17: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x180b8a) [0x5555556d4b8a]
         224:20241128:144643.698 16: /lib/x86_64-linux-gnu/libpthread.so.0(+0x14420) [0x7fffff08f420]
         224:20241128:144643.698 15: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x14f2a6) [0x5555556a32a6]
         224:20241128:144643.698 14: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x14f4ee) [0x5555556a34ee]
         224:20241128:144643.698 13: /usr/sbin/zabbix_server: trapper #2 [processing data](DCget_user_macro+0x94) [0x5555556b0684]
         224:20241128:144643.698 12: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x138c35) [0x55555568cc35]
         224:20241128:144643.698 11: /usr/sbin/zabbix_server: trapper #2 [processing data](zbx_substitute_simple_macros_allowed_hosts+0x2c) [0x5555556966ec]
         224:20241128:144643.698 10: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x1f3304) [0x555555747304]
         224:20241128:144643.698 9: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x1f7947) [0x55555574b947]
         224:20241128:144643.698 8: /usr/sbin/zabbix_server: trapper #2 [processing data](process_sender_history_data+0x32) [0x55555574bdb2]
         224:20241128:144643.698 7: /usr/sbin/zabbix_server: trapper #2 [processing data](+0x807ac) [0x5555555d47ac]
         224:20241128:144643.698 6: /usr/sbin/zabbix_server: trapper #2 [processing data](trapper_thread+0x218) [0x5555555d66e8]
         224:20241128:144643.698 5: /usr/sbin/zabbix_server: trapper #2 [processing data](zbx_thread_start+0x24) [0x5555556df634]
         224:20241128:144643.698 4: /usr/sbin/zabbix_server: trapper #2 [processing data](MAIN_ZABBIX_ENTRY+0x9fb) [0x5555555a9e9b]
         224:20241128:144643.698 3: /usr/sbin/zabbix_server: trapper #2 [processing data](daemon_start+0x175) [0x5555556d3d45]
         224:20241128:144643.698 2: /usr/sbin/zabbix_server: trapper #2 [processing data](main+0x687) [0x5555555a23e7]
         224:20241128:144643.698 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3) [0x7ffffe2c0083]
         224:20241128:144643.698 0: /usr/sbin/zabbix_server: trapper #2 [processing data](_start+0x2e) [0x5555555a8fce]
      

      The issue started since 5.0.31 version. Probably related to ZBXNEXT-8058.

            vso Vladislavs Sokurenko
            dotneft Alexey Pustovalov
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: