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

Server crash after removing snmp host interface from parent host

XMLWordPrintable

    • Sprint 68 (Sep 2020)
    • 0.25

      Steps to reproduce:

      1. Create host (host001) with at least one SNMP interface
      2. Add discovery rule for that host
        • type: Zabbix trapper
        • key: disckey001
      3. Add host prototype (hostprototype{#DISC}) for that discovery rule
      4. Send discovery data and wait for the hosts to be discovered
        • bin/zabbix_sender -z localhost -p 10051 -s host001 -k disckey001 -o '{"data":[{"{#DISC}":"eth0"},{"{#DISC}":"eth1"}]}'
      1. Remove SNMP interface from host001
      2. Send discovery data again
        • bin/zabbix_sender -z localhost -p 10051 -s host001 -k disckey001 -o '{"data":[{"{#DISC}":"eth0"},{"{#DISC}":"eth1"}]}'

      Result:
      Server crash:

       22091:20200916:174347.879 In lld_hosts_save()
      lld_host.c:2567:35: runtime error: member access within null pointer of type 'struct zbx_lld_interface_snmp_t'
       22091:20200916:174347.880 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x30]. Crashing ...

            arimdjonoks Artjoms Rimdjonoks
            asestakovs Aleksejs Sestakovs
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: