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

Crash in history syncer when item turns unsupported

XMLWordPrintable

    • Icon: Problem report Problem report
    • Resolution: Unresolved
    • Icon: Blocker Blocker
    • None
    • 7.2.6
    • Server (S)
    • None
    • Support backlog

      SIGSEGV in history syncer thread at zbx_strdup2+0x33 when item turns not supported. Server passes NULL tag pointer to zbx_strdup2 and crashes rather than skipping it and continue running.

      Issue could be related to ZBX-20649.

      1876393:20250606:052421.850 item "NNNNNN.inf.XXXXX:net.if.out.errors.percent[ifOuterrors.1259]" became supported
      1876435:20250606:052421.867 error reason for "war01lamrco.inf.XXXXX:net.if.out.discards.percent[ifOutDiscards.11]" changed: Cannot evaluate function: item "/war01lamrco.inf.XXXXX/net.if.out.discards[ifOutDiscards.11]" is not supported at "last(//net.if.out.discards[ifOutDiscards.11],#1) * 100) /
      (last(//net.if.out.discards[ifOutDiscards.11],#1) +
      last(//net.if.out.errors[ifOutErrors.11],#1)  +
      last(//net.if.out.ifHCOutUcastPkts[ifHCOutUcastPkts.11],#1) +
      last(//net.if.out.ifHCOutMulticastPkts[ifHCOutMulticastPkts.11],#1) +
      last(//net.if.out.ifHCOutBroadcastPkts[ifHCOutBroadcastPkts.11],#1)
      + 0.000001)".
      1876435:20250606:052421.867 item "NNNNNN.inf.XXXXX:net.if.in.errors.percent[ifInerrors.996]" became supported
      1876435:20250606:052421.910 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x1a1]. Crashing ...
      1876435:20250606:052421.910 ====== Fatal information: ======
      1876435:20250606:052421.910 Program counter: 0x154ff895c9bd
      1876435:20250606:052421.911 === Registers: ===
      1876435:20250606:052421.911 r8      =                1 =                    1 =                    1
      1876435:20250606:052421.911 r9      =                0 =                    0 =                    0
      1876435:20250606:052421.911 r10     =               11 =                   17 =                   17
      1876435:20250606:052421.911 r11     =     154ff89f8c80 =       23433217805440 =       23433217805440
      1876435:20250606:052421.911 r12     =     5617a5ccabcb =       94659565890507 =       94659565890507
      1876435:20250606:052421.911 r13     =             3ce9 =                15593 =                15593
      1876435:20250606:052421.911 r14     =     1542fac8f6a0 =       23377419499168 =       23377419499168
      1876435:20250606:052421.911 r15     =     1542fac8f6e0 =       23377419499232 =       23377419499232
      1876435:20250606:052421.911 rdi     =              1a1 =                  417 =                  417
      1876435:20250606:052421.911 rsi     =             3ce9 =                15593 =                15593
      1876435:20250606:052421.911 rbp     =              1a1 =                  417 =                  417
      1876435:20250606:052421.911 rbx     =                9 =                    9 =                    9
      1876435:20250606:052421.911 rdx     =              1a1 =                  417 =                  417
      1876435:20250606:052421.911 rax     =              1a1 =                  417 =                  417
      1876435:20250606:052421.911 rcx     =              1a1 =                  417 =                  417
      1876435:20250606:052421.911 rsp     =     7ffd25c59bb8 =      140725237160888 =      140725237160888
      1876435:20250606:052421.912 rip     =     154ff895c9bd =       23433217165757 =       23433217165757
      1876435:20250606:052421.912 efl     =            10283 =                66179 =                66179
      1876435:20250606:052421.912 csgsfs  =   2b000000000033 =    12103423998558259 =    12103423998558259
      1876435:20250606:052421.912 err     =                4 =                    4 =                    4
      1876435:20250606:052421.912 trapno  =                e =                   14 =                   14
      1876435:20250606:052421.912 oldmask =             4a06 =                18950 =                18950
      1876435:20250606:052421.912 cr2     =              1a1 =                  417 =                  417
      1876435:20250606:052421.912 === Backtrace: ===
      1876435:20250606:052421.914 21: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_backtrace+0x41) [0x5617a5c7a131]
      1876435:20250606:052421.914 20: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_log_fatal_info+0x26d) [0x5617a5c7a4cd]
      1876435:20250606:052421.914 19: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](+0x4296d6) [0x5617a5c7a6d6]
      1876435:20250606:052421.914 18: /lib64/libc.so.6(+0x3e730) [0x154ff883e730]
      1876435:20250606:052421.914 17: /lib64/libc.so.6(+0x15c9bd) [0x154ff895c9bd]
      1876435:20250606:052421.914 16: /lib64/libc.so.6(__strdup+0x13) [0x154ff889bd13]
      1876435:20250606:052421.914 15: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_strdup2+0x33) [0x5617a5ca23c3]
      1876435:20250606:052421.914 14: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](+0x2ac48d) [0x5617a5afd48d]
      1876435:20250606:052421.915 13: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_get_item_tags+0xeb) [0x5617a5afd64b]
      1876435:20250606:052421.915 12: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_dc_config_history_sync_get_item_tags_by_functionids+0x77) [0x5617a5ad09c7]
      1876435:20250606:052421.915 11: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](+0x102a9f) [0x5617a5953a9f]
      1876435:20250606:052421.915 10: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_add_event+0x7cd) [0x5617a59542ed]
      1876435:20250606:052421.915 9: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_sync_server_history+0x84d) [0x5617a5929d2d]
      1876435:20250606:052421.915 8: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_dbsyncer_thread+0x291) [0x5617a592d521]
      1876435:20250606:052421.915 7: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_thread_start+0x20) [0x5617a5b939a0]
      1876435:20250606:052421.915 6: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](+0x46f118) [0x5617a5cc0118]
      1876435:20250606:052421.915 5: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](MAIN_ZABBIX_ENTRY+0xc4f) [0x5617a5926d2f]
      1876435:20250606:052421.915 4: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](zbx_daemon_start+0x145) [0x5617a5c7b235]
      1876435:20250606:052421.915 3: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](main+0x3f5) [0x5617a591bb55]
      1876435:20250606:052421.915 2: /lib64/libc.so.6(+0x295d0) [0x154ff88295d0]
      1876435:20250606:052421.915 1: /lib64/libc.so.6(__libc_start_main+0x80) [0x154ff8829680]
      1876435:20250606:052421.915 0: /usr/sbin/zabbix_server: history syncer #13 [processed 12136 values, 7165 triggers in 1.026680 sec, syncing history](_start+0x25) [0x5617a5922ef5]
      1876435:20250606:052421.915 === Memory map: ===
      
      1876432:20250606:052422.414 error reason for "war02clmatn.inf.XXXXX:net.if.out.errors.percent[ifOuterrors.37]" changed: Cannot evaluate function: item "/war02clmatn.inf.XXXXX/net.if.out.errors[ifOutErrors.37]" is not supported at "last(//net.if.out.errors[ifOutErrors.37],#1) * 100) /
      (last(//net.if.out.discards[ifOutDiscards.37],#1) +
      last(//net.if.out.errors[ifOutErrors.37],#1)  +
      last(//net.if.out.ifHCOutUcastPkts[ifHCOutUcastPkts.37],#1) +
      last(//net.if.out.ifHCOutMulticastPkts[ifHCOutMulticastPkts.37],#1) +
      last(//net.if.out.ifHCOutBroadcastPkts[ifHCOutBroadcastPkts.37],#1)
      + 0.000001)".
      3071051:20250606:052422.501 One child process died (PID:1876435,exitcode/signal:1). Exiting ...
      1871342:20250606:052422.501 HA manager has been paused
      zabbix_server [3071051]: Error waiting for process with PID 1876435: [10] No child processes
      1871342:20250606:052424.505 HA manager has been stopped
      3071051:20250606:052426.566 syncing history data...
      
      3071051:20250606:052432.773 skipped 1 duplicates
      3071051:20250606:052432.773 syncing history data... 3.309617%
      3071051:20250606:052432.774 syncing history data done
      3071051:20250606:052440.904 syncing trend data in progress...
      3071051:20250606:052552.221 syncing trend data... 37.571446%
      3071051:20250606:052619.852 syncing trend data... 44.274405%
      3071051:20250606:052806.397 syncing trend data... 83.195385%
      3071051:20250606:052820.933 syncing trend data... 89.111319%
      3071051:20250606:052839.811 syncing trend data... 96.173109%
      3071051:20250606:052853.859 syncing trend data... 100.000000%
      3071051:20250606:052853.859 syncing trend data done
      3071051:20250606:052903.949 Zabbix Server stopped. Zabbix 7.2.5 (revision d2eb5068f4b).
      2541684:20250606:052914.141 Starting Zabbix Server. Zabbix 7.2.5 (revision d2eb5068f4b).
      2541684:20250606:052914.141 ****** Enabled features ******
      2541684:20250606:052914.141 SNMP monitoring:           YES
      2541684:20250606:052914.141 IPMI monitoring:           YES
      2541684:20250606:052914.141 Web monitoring:            YES
      2541684:20250606:052914.141 VMware monitoring:         YES
      2541684:20250606:052914.141 SMTP authentication:       YES
      2541684:20250606:052914.141 ODBC:                      YES
      2541684:20250606:052914.141 SSH support:               YES
      2541684:20250606:052914.141 IPv6 support:              YES
      2541684:20250606:052914.141 TLS support:               YES
      2541684:20250606:052914.142 ******************************
      2541684:20250606:052914.142 using configuration file: /etc/zabbix/zabbix_server.conf
      2541684:20250606:052914.254 current database version (mandatory/optional): 07020000/07020003
      2541684:20250606:052914.254 required mandatory version: 07020000
      2541686:20250606:052914.272 starting HA manager
      2541686:20250606:052914.288 HA manager started in standby mode
      2541684:20250606:052914.288 "YYYYYY" node started in "standby" mode
      

            MVekslers Michael Veksler
            mkudlacz Michal Kudlacz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 25h
                25h