-
Problem report
-
Resolution: Fixed
-
Blocker
-
7.2.0rc1
-
None
-
S24-W48/49
-
0.125
Steps to reproduce:
- Create graph prototype with 2 item prototypes
- Execute discovery
- Update graph prototype - remove one of the items from displaying in graph
- Execute LLD
Result:
Discovered graph is not updated.
Error in the server log:
46672:20241125:123300.891 [Z3005] query failed: [0] PGRES_EMPTY_QUERY []
Log level = 4
query [txnlev:1] [select null from graphs where graphid=3798 for update] 44916:20241125:123143.265 End of zbx_dbconn_lock_record():SUCCEED 44916:20241125:123143.266 query [txnlev:1] [delete from graphs_items where gitemid in (272337,272338,272339,272340,272341,272342,272343,272344,272345,272346,272347,272348,272349,272350,272351,272352,272353,272354,272355,272356,272357,272358,272359,272360,272361,272362,272363,272364,272365,272366);.] 44916:20241125:123143.267 query [txnlev:1] [????..] 44916:20241125:123143.267 [Z3005] query failed: [0] PGRES_FATAL_ERROR:ERROR: invalid byte sequence for encoding "UTF8": 0x90 [???] 44916:20241125:123143.267 query [????..] failed, setting transaction as failed 44916:20241125:123143.267 commit called on failed transaction, doing a rollback instead 44916:20241125:123143.267 query [txnlev:1] [rollback;] 44916:20241125:123143.268 End of lld_graphs_save() 44916:20241125:123143.268 In lld_flush_discoveries()
Valgrind error:
==00:00:10:59.771 39709== 2 errors in context 1 of 1: ==00:00:10:59.771 39709== Conditional jump or move depends on uninitialised value(s) ==00:00:10:59.772 39709== at 0x484ED79: __strlen_sse2 (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==00:00:10:59.772 39709== by 0x4B84D30: __vfprintf_internal (vfprintf-internal.c:1517) ==00:00:10:59.772 39709== by 0x4B96499: __vsnprintf_internal (vsnprintf.c:114) ==00:00:10:59.772 39709== by 0x4AAA28: vsnprintf (stdio2.h:85) ==00:00:10:59.772 39709== by 0x4AAA28: zbx_dvsprintf (common_str.c:83) ==00:00:10:59.772 39709== by 0x4656D9: dbconn_vexecute (dbconn.c:745) ==00:00:10:59.772 39709== by 0x466DEB: zbx_dbconn_vexecute (dbconn.c:1471) ==00:00:10:59.772 39709== by 0x46D2EE: zbx_db_execute (dbconn_compat.c:165) ==00:00:10:59.772 39709== by 0x2A330C: lld_graphs_save (lld_graph.c:1473) ==00:00:10:59.772 39709== by 0x2A330C: lld_update_graphs (lld_graph.c:1620) ==00:00:10:59.772 39709== by 0x29EC8D: lld_process_discovery_rule (lld.c:1195) ==00:00:10:59.772 39709== by 0x295935: lld_process_value (lld_worker.c:294) ==00:00:10:59.772 39709== by 0x295935: lld_worker_thread (lld_worker.c:408) ==00:00:10:59.772 39709== by 0x3A6123: zbx_thread_start (threads.c:135) ==00:00:10:59.772 39709== by 0x1BBF91: server_startup.constprop.0 (server.c:1866) ==00:00:10:59.772 39709== Uninitialised value was created by a heap allocation ==00:00:10:59.772 39709== at 0x4848899: malloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so) ==00:00:10:59.772 39709== by 0x4A9B9A: zbx_malloc2 (misc.c:133) ==00:00:10:59.772 39709== by 0x2A27CE: lld_graphs_save (lld_graph.c:1146) ==00:00:10:59.772 39709== by 0x2A27CE: lld_update_graphs (lld_graph.c:1620) ==00:00:10:59.772 39709== by 0x29EC8D: lld_process_discovery_rule (lld.c:1195) ==00:00:10:59.772 39709== by 0x295935: lld_process_value (lld_worker.c:294) ==00:00:10:59.772 39709== by 0x295935: lld_worker_thread (lld_worker.c:408) ==00:00:10:59.772 39709== by 0x3A6123: zbx_thread_start (threads.c:135) ==00:00:10:59.772 39709== by 0x1BBF91: server_startup.constprop.0 (server.c:1866) ==00:00:10:59.772 39709== by 0x1BD79B: MAIN_ZABBIX_ENTRY (server.c:2372) ==00:00:10:59.772 39709== by 0x1B1492: main (server.c:1428) ==00:00:10:59.772 39709== ==00:00:10:59.772 39709== ERROR SUMMARY: 2 errors from 1 contexts (suppressed: 0 from 0)