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

Server crashes performing aggregate check when one of host groups contains double quote in its name

XMLWordPrintable

      I have host groups: this, is, a", hack. Aggregated item:

      grpsum[[this,is,"a\"",hack],key,last]
      

      crashes server with the following backtrace:

       21909:20160920:142132.207 === Backtrace: ===
       21909:20160920:142132.208 11: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](print_fatal_info+0xbd) [0x46abcd]
       21909:20160920:142132.208 10: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values]() [0x46ae8e]
       21909:20160920:142132.208 9: /lib/x86_64-linux-gnu/libc.so.6(+0x354a0) [0x7fa62c7c94a0]
       21909:20160920:142132.208 8: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](get_value_aggregate+0xcf) [0x4211cf]
       21909:20160920:142132.208 7: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values]() [0x41ef56]
       21909:20160920:142132.208 6: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](poller_thread+0xe8) [0x41f0b8]
       21909:20160920:142132.208 5: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](zbx_thread_start+0x45) [0x46b835]
       21909:20160920:142132.208 4: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](MAIN_ZABBIX_ENTRY+0x3ed) [0x419eed]
       21909:20160920:142132.208 3: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](daemon_start+0x1c3) [0x46a453]
       21909:20160920:142132.208 2: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](main+0x420) [0x412160]
       21909:20160920:142132.208 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7fa62c7b4830]
       21909:20160920:142132.208 0: src/zabbix_server/zabbix_server: poller #2 [got 3 values in 0.000156 sec, getting values](_start+0x29) [0x4123b9]
      

      For some reason num_param() says that there are 3 parameters, but get_param_len() and get_param() return 1 when requested first parameter designating syntax error and get_param_dyn() then returns NULL.

      Discovered in trunk, but the problem must be very ancient since num_param(), get_param(), get_param_len() and get_param_dyn() responsible for item key parameter parsing were last changed very long time ago.

            Unassigned Unassigned
            glebs.ivanovskis Glebs Ivanovskis (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: