-
Problem report
-
Resolution: Fixed
-
Blocker
-
3.0.25, 4.0.5, 4.2.0beta2, 4.2 (plan)
-
Sprint 50 (Mar 2019)
-
0.125
Steps to reproduce:
Create calculated item for network interfaces on sub-template that is connected to 100 templates that are connect with 1300+ hosts.
Everything works when I make "soft" unlink of template on one host and then create the same item on hosts LLD. But when I create the same item on production template - Zabbix crashes.
Please check screenshot of problematic item prototype:
Cleaned debug with level 4:
3729:20190307:151923.143 End of substitute_lld_macros():SUCCEED data:'GigabitEthernet0/1: Speed (user input)' 3729:20190307:151923.143 In substitute_key_macros() data:'ifHighSpeed_calc[{#MVSNMPVALUE1}_index{#SNMPINDEX}]' 3729:20190307:151923.143 In substitute_lld_macros() data:'{#MVSNMPVALUE1}_index{#SNMPINDEX}' 3729:20190307:151923.143 End of substitute_lld_macros():SUCCEED data:'GigabitEthernet0/1_index10101' 3729:20190307:151923.143 End of substitute_key_macros():SUCCEED data:'ifHighSpeed_calc[GigabitEthernet0/1_index10101]' 3729:20190307:151923.143 In substitute_lld_macros() data:'6630' 3729:20190307:151923.143 End of substitute_lld_macros():SUCCEED data:'6630' 3729:20190307:151923.143 In substitute_lld_macros() data:'7d' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'7d' 3729:20190307:151923.144 In substitute_lld_macros() data:'0' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'0' 3729:20190307:151923.144 In substitute_lld_macros() data:'bps' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'bps' 3729:20190307:151923.144 In substitute_formula_macros() 3729:20190307:151923.144 In substitute_lld_macros() data:'( ({$PORT_SPEED_MB:"{#MVSNMPVALUE1}"}=0) * last(' 3729:20190307:151923.144 In substitute_lld_macros() data:'{#MVSNMPVALUE1}' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'GigabitEthernet0/1' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'( ({$PORT_SPEED_MB:"GigabitEthernet0/1"}=0) * last(' 3729:20190307:151923.144 In substitute_function_lld_param() 3729:20190307:151923.144 In substitute_key_macros() data:'ifHighSpeed[{#MVSNMPVALUE1}_index{#SNMPINDEX}]' 3729:20190307:151923.144 In substitute_lld_macros() data:'{#MVSNMPVALUE1}_index{#SNMPINDEX}' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'GigabitEthernet0/1_index10101' 3729:20190307:151923.144 End of substitute_key_macros():SUCCEED data:'ifHighSpeed[GigabitEthernet0/1_index10101]' 3729:20190307:151923.144 In substitute_lld_macros() data:'0' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'0' 3729:20190307:151923.144 End of substitute_function_lld_param() 3729:20190307:151923.144 In substitute_lld_macros() data:' ) + ( ({$PORT_SPEED_MB:"{#MVSNMPVALUE1}"}<>0) * ({$PORT_SPEED_MB:"{#MVSNMPVALUE1}"}*1000000) )' 3729:20190307:151923.144 In substitute_lld_macros() data:'{#MVSNMPVALUE1}' 3729:20190307:151923.144 End of substitute_lld_macros():SUCCEED data:'GigabitEthernet0/1' *** Error in `/usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values]': realloc(): invalid next size: 0x0000000001345240 *** ======= Backtrace: ========= /lib64/libc.so.6(+0x7f5e4)[0x7f5f8cb7c5e4] /lib64/libc.so.6(+0x84c39)[0x7f5f8cb81c39] /lib64/libc.so.6(realloc+0x1b2)[0x7f5f8cb82eb2] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](zbx_realloc2+0x3a)[0x4ac34a] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](zbx_replace_string+0xcf)[0x4b2fdf] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](substitute_lld_macros+0x4b2)[0x473df2] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values][0x4e8efe] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values][0x4ea56c] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](lld_update_items+0xd9e)[0x4eb38e] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](lld_process_discovery_rule+0xe9f)[0x4e3b4f] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](zbx_preprocess_item_value+0x73)[0x45b363] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values][0x42e847] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](poller_thread+0xd5)[0x42ec85] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](zbx_thread_start+0x3e)[0x4a791e] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](MAIN_ZABBIX_ENTRY+0x6a0)[0x420ef0] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](daemon_start+0x1a5)[0x49e495] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values](main+0x3f3)[0x420063] /lib64/libc.so.6(__libc_start_main+0xf5)[0x7f5f8cb1f445] /usr/local/sbin/zabbix_server: poller #9 [got 0 values in 0.000000 sec, getting values][0x4203cb] ======= Memory map: ======== ... 3646:20190307:151923.195 One child process died (PID:3729,exitcode/signal:6). Exiting ... 3646:20190307:151923.195 zbx_on_exit() called ... 3646:20190307:151924.336 Zabbix Server stopped. Zabbix 4.0.5 (revision 90164).
- caused by
-
ZBX-9458 discovery macros are not quoted correctly in calculated item expressions
- Closed