[ZBX-16473] preprocessing steps are ignored for calculated items if host is monitored by proxy Created: 2019 Aug 07  Updated: 2024 Apr 10  Resolved: 2019 Aug 16

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: 4.2.5
Fix Version/s: 4.2.6rc1, 4.4.0alpha2, 4.4 (plan)

Type: Problem report Priority: Blocker
Reporter: Oleksii Zagorskyi Assignee: Andris Zeila
Resolution: Fixed Votes: 0
Labels: calculated, preprocessing, proxy
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by ZBX-16472 query failed when proxy receives conf... Closed
Team: Team A
Sprint: Sprint 55 (Aug 2019)
Story Points: 0.5

 Description   

See issue summary.



 Comments   
Comment by Vladislavs Sokurenko [ 2019 Aug 08 ]

This will also include fix for:
ZBX-16472

Comment by Vladislavs Sokurenko [ 2019 Aug 08 ]

(7) SIGSEGV if preprocessing is used for item.

==81061== Use of uninitialised value of size 8
==81061==    at 0x4CDBCA: zbx_dbsync_compare_item_preprocs (dbsync.c:3521)
==81061==    by 0x4B4EE5: DCsync_configuration (dbconfig.c:5058)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==    by 0x421B05: main (proxy.c:901)
==81061==  Uninitialised value was created by a stack allocation
==81061==    at 0x4CDAD0: zbx_dbsync_compare_item_preprocs (dbsync.c:3479)
==81061== 
==81061== Invalid read of size 8
==81061==    at 0x4CDBCA: zbx_dbsync_compare_item_preprocs (dbsync.c:3521)
==81061==    by 0x4B4EE5: DCsync_configuration (dbconfig.c:5058)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==    by 0x421B05: main (proxy.c:901)
==81061==  Address 0x8b4dc60 is 16 bytes before a block of size 8,192 free'd
==81061==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==81061==    by 0x48CB2FA: free_root (my_alloc.c:461)
==81061==    by 0x48968F2: mysql_free_result (client.c:1508)
==81061==    by 0x48968F2: mysql_free_result (client.c:1491)
==81061==    by 0x55028F: DBfree_result (db.c:2194)
==81061==    by 0x4CAC73: zbx_dbsync_compare_prototype_items (dbsync.c:1945)
==81061==    by 0x4B4EA7: DCsync_configuration (dbconfig.c:5053)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==  Block was alloc'd at
==81061==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==81061==    by 0x48CCCA7: my_raw_malloc (my_malloc.c:191)
==81061==    by 0x48CCCA7: my_malloc (my_malloc.c:54)
==81061==    by 0x48CAFDF: alloc_root (my_alloc.c:279)
==81061==    by 0x4899095: cli_read_metadata_ex (client.c:2113)
==81061==    by 0x4899B7B: cli_read_query_result (client.c:4895)
==81061==    by 0x489B80F: mysql_real_query (client.c:4939)
==81061==    by 0x489B80F: mysql_real_query (client.c:4926)
==81061==    by 0x550059: zbx_db_vselect (db.c:1650)
==81061==    by 0x53999A: DBselect (db.c:362)
==81061==    by 0x4CAA4F: zbx_dbsync_compare_prototype_items (dbsync.c:1898)
==81061==    by 0x4B4EA7: DCsync_configuration (dbconfig.c:5053)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061== 
 81061:20190808:192816.646 row '(null)'
==81061== Use of uninitialised value of size 8
==81061==    at 0x4CDBEF: zbx_dbsync_compare_item_preprocs (dbsync.c:3522)
==81061==    by 0x4B4EE5: DCsync_configuration (dbconfig.c:5058)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==    by 0x421B05: main (proxy.c:901)
==81061==  Uninitialised value was created by a stack allocation
==81061==    at 0x4CDAD0: zbx_dbsync_compare_item_preprocs (dbsync.c:3479)
==81061== 
==81061== Invalid read of size 8
==81061==    at 0x4CDBEF: zbx_dbsync_compare_item_preprocs (dbsync.c:3522)
==81061==    by 0x4B4EE5: DCsync_configuration (dbconfig.c:5058)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==    by 0x421B05: main (proxy.c:901)
==81061==  Address 0x8b4dc60 is 16 bytes before a block of size 8,192 free'd
==81061==    at 0x4839A0C: free (vg_replace_malloc.c:540)
==81061==    by 0x48CB2FA: free_root (my_alloc.c:461)
==81061==    by 0x48968F2: mysql_free_result (client.c:1508)
==81061==    by 0x48968F2: mysql_free_result (client.c:1491)
==81061==    by 0x55028F: DBfree_result (db.c:2194)
==81061==    by 0x4CAC73: zbx_dbsync_compare_prototype_items (dbsync.c:1945)
==81061==    by 0x4B4EA7: DCsync_configuration (dbconfig.c:5053)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==  Block was alloc'd at
==81061==    at 0x483880B: malloc (vg_replace_malloc.c:309)
==81061==    by 0x48CCCA7: my_raw_malloc (my_malloc.c:191)
==81061==    by 0x48CCCA7: my_malloc (my_malloc.c:54)
==81061==    by 0x48CAFDF: alloc_root (my_alloc.c:279)
==81061==    by 0x4899095: cli_read_metadata_ex (client.c:2113)
==81061==    by 0x4899B7B: cli_read_query_result (client.c:4895)
==81061==    by 0x489B80F: mysql_real_query (client.c:4939)
==81061==    by 0x489B80F: mysql_real_query (client.c:4926)
==81061==    by 0x550059: zbx_db_vselect (db.c:1650)
==81061==    by 0x53999A: DBselect (db.c:362)
==81061==    by 0x4CAA4F: zbx_dbsync_compare_prototype_items (dbsync.c:1898)
==81061==    by 0x4B4EA7: DCsync_configuration (dbconfig.c:5053)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061== 
==81061== Invalid read of size 1
==81061==    at 0x585469A: ____strtol_l_internal (strtol_l.c:292)
==81061==    by 0x58510A3: atoi (atoi.c:27)
==81061==    by 0x4CDBF9: zbx_dbsync_compare_item_preprocs (dbsync.c:3522)
==81061==    by 0x4B4EE5: DCsync_configuration (dbconfig.c:5058)
==81061==    by 0x543784: process_proxyconfig (proxy.c:1910)
==81061==    by 0x42B1A5: process_configuration_sync (proxyconfig.c:112)
==81061==    by 0x42B359: proxyconfig_thread (proxyconfig.c:164)
==81061==    by 0x4EBE52: zbx_thread_start (threads.c:136)
==81061==    by 0x422395: MAIN_ZABBIX_ENTRY (proxy.c:1108)
==81061==    by 0x4E63FA: daemon_start (daemon.c:386)
==81061==    by 0x421B05: main (proxy.c:901)
==81061==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==81061== 
 81061:20190808:192816.652 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...

vso RESOLVED in 0ebe59005dcabee638ce2a3175f458c06a01c509

wiper: CLOSED

Comment by Andris Zeila [ 2019 Aug 13 ]

Released ZBX-16473 in:

  • pre-4.2.6rc1 c232a4124b
  • pre-4.4.0alpha2 0dc090043b
Generated at Fri Apr 26 22:22:38 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.