-
Problem report
-
Resolution: Fixed
-
Major
-
3.4.6, 4.0.0alpha3
-
None
-
Sprint 27, Sprint 28
-
0.25
Steps:
Setup elastic search and start collecting data.
See that:
ttl – Expiration time for the document is undefined
See elastic_add_values()
zbx_json_adduint64(&json, "ttl", h->ttl);
And where it is set in normalize_item_value()
==18215== Use of uninitialised value of size 8 ==18215== at 0x89DDD7B: _itoa_word (in /usr/lib64/libc-2.26.so) ==18215== by 0x89E143D: vfprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x8A0DC4F: vsnprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x59FB63: zbx_vsnprintf (str.c:272) ==18215== by 0x59FCAA: __zbx_zbx_snprintf (str.c:193) ==18215== by 0x5C1F7F: zbx_json_adduint64 (json.c:353) ==18215== by 0x556088: elastic_add_values (history_elastic.c:752) ==18215== by 0x551EFE: zbx_history_add_values (history.c:112) ==18215== by 0x544094: zbx_vc_add_values (valuecache.c:2699) ==18215== by 0x4FCD86: DBmass_add_history (dbcache.c:1638) ==18215== by 0x4FCD86: DCsync_history (dbcache.c:2380) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== Uninitialised value was created by a heap allocation ==18215== at 0x4C2FB6B: malloc (vg_replace_malloc.c:299) ==18215== by 0x5947FF: zbx_malloc2 (misc.c:491) ==18215== by 0x4FE098: DCsync_history (dbcache.c:2279) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== by 0x560702: daemon_start (daemon.c:392) ==18215== by 0x41F9CF: main (server.c:834) ==18215== ==18215== Conditional jump or move depends on uninitialised value(s) ==18215== at 0x89DDD85: _itoa_word (in /usr/lib64/libc-2.26.so) ==18215== by 0x89E143D: vfprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x8A0DC4F: vsnprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x59FB63: zbx_vsnprintf (str.c:272) ==18215== by 0x59FCAA: __zbx_zbx_snprintf (str.c:193) ==18215== by 0x5C1F7F: zbx_json_adduint64 (json.c:353) ==18215== by 0x556088: elastic_add_values (history_elastic.c:752) ==18215== by 0x551EFE: zbx_history_add_values (history.c:112) ==18215== by 0x544094: zbx_vc_add_values (valuecache.c:2699) ==18215== by 0x4FCD86: DBmass_add_history (dbcache.c:1638) ==18215== by 0x4FCD86: DCsync_history (dbcache.c:2380) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== Uninitialised value was created by a heap allocation ==18215== at 0x4C2FB6B: malloc (vg_replace_malloc.c:299) ==18215== by 0x5947FF: zbx_malloc2 (misc.c:491) ==18215== by 0x4FE098: DCsync_history (dbcache.c:2279) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== by 0x560702: daemon_start (daemon.c:392) ==18215== by 0x41F9CF: main (server.c:834) ==18215== ==18215== Conditional jump or move depends on uninitialised value(s) ==18215== at 0x89E1542: vfprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x8A0DC4F: vsnprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x59FB63: zbx_vsnprintf (str.c:272) ==18215== by 0x59FCAA: __zbx_zbx_snprintf (str.c:193) ==18215== by 0x5C1F7F: zbx_json_adduint64 (json.c:353) ==18215== by 0x556088: elastic_add_values (history_elastic.c:752) ==18215== by 0x551EFE: zbx_history_add_values (history.c:112) ==18215== by 0x544094: zbx_vc_add_values (valuecache.c:2699) ==18215== by 0x4FCD86: DBmass_add_history (dbcache.c:1638) ==18215== by 0x4FCD86: DCsync_history (dbcache.c:2380) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== Uninitialised value was created by a heap allocation ==18215== at 0x4C2FB6B: malloc (vg_replace_malloc.c:299) ==18215== by 0x5947FF: zbx_malloc2 (misc.c:491) ==18215== by 0x4FE098: DCsync_history (dbcache.c:2279) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== by 0x560702: daemon_start (daemon.c:392) ==18215== by 0x41F9CF: main (server.c:834) ==18215== ==18215== Conditional jump or move depends on uninitialised value(s) ==18215== at 0x89E201C: vfprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x8A0DC4F: vsnprintf (in /usr/lib64/libc-2.26.so) ==18215== by 0x59FB63: zbx_vsnprintf (str.c:272) ==18215== by 0x59FCAA: __zbx_zbx_snprintf (str.c:193) ==18215== by 0x5C1F7F: zbx_json_adduint64 (json.c:353) ==18215== by 0x556088: elastic_add_values (history_elastic.c:752) ==18215== by 0x551EFE: zbx_history_add_values (history.c:112) ==18215== by 0x544094: zbx_vc_add_values (valuecache.c:2699) ==18215== by 0x4FCD86: DBmass_add_history (dbcache.c:1638) ==18215== by 0x4FCD86: DCsync_history (dbcache.c:2380) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== Uninitialised value was created by a heap allocation ==18215== at 0x4C2FB6B: malloc (vg_replace_malloc.c:299) ==18215== by 0x5947FF: zbx_malloc2 (misc.c:491) ==18215== by 0x4FE098: DCsync_history (dbcache.c:2279) ==18215== by 0x44090B: dbsyncer_thread (dbsyncer.c:77) ==18215== by 0x58B64A: zbx_thread_start (threads.c:128) ==18215== by 0x4344FA: MAIN_ZABBIX_ENTRY (server.c:1101) ==18215== by 0x560702: daemon_start (daemon.c:392) ==18215== by 0x41F9CF: main (server.c:834) ==18215==
Tested only in trunk, probably 3.4 is also affected