-
Problem report
-
Resolution: Cannot Reproduce
-
Trivial
-
6.0.19rc1, 6.4.3, 7.0.0alpha2
-
Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023), Sprint 104 (Sep 2023)
-
0.5
Problem description: The following Valgrind errors are observed for Active proxy when it monitors a Zabbix server with a web scenario that has a failing step due to required string missing on URL:
==00:00:04:48.999 84621== 59 errors in context 1 of 1: ==00:00:04:48.999 84621== Conditional jump or move depends on uninitialised value(s) ==00:00:04:48.999 84621== at 0x2A0BAE: zbx_recv_response (comms.c:323) ==00:00:04:48.999 84621== by 0x2A0E19: put_data_to_server (comms.c:198) ==00:00:04:48.999 84621== by 0x19B13B: proxy_data_sender (datasender.c:195) ==00:00:04:48.999 84621== by 0x19B571: datasender_thread (datasender.c:302) ==00:00:04:48.999 84621== by 0x2815F3: zbx_thread_start (threads.c:124) ==00:00:04:48.999 84621== by 0x16D73D: MAIN_ZABBIX_ENTRY (proxy.c:1333) ==00:00:04:48.999 84621== by 0x27BEAC: daemon_start (daemon.c:443) ==00:00:04:48.999 84621== by 0x16577B: main (proxy.c:1057) ==00:00:04:48.999 84621== Uninitialised value was created by a stack allocation ==00:00:04:48.999 84621== at 0x2A0B00: zbx_recv_response (comms.c:287) ==00:00:04:48.999 84621== ==00:00:04:48.999 84621== ERROR SUMMARY: 59 errors from 1 contexts (suppressed: 0 from 0)
P.S. The error is not observer for Zabbix server
Steps to reproduce (at least that's how I got the error, not sure which exact actions caused the errors):
- Have a fresh Zabbix 6.0 or younger instance
- Bring up Zabbix server and an active Zabbix proxy
- Naigate to Administration => Proxies and create the corresponding active proxy in frontend
- Wait for proxy to be seen
- Export Zabbix server host and rename the original zabbix server (for example to Zabbix server original)
- Import the previously exported zabbix server and set it to be monitored by the active proxy
- Wait for the imported server to start collecting data
- Add a Web scenario (with Agent = Firefox 73 (Linux)) to the imported server that would have a step with the following parameters:
- URL: https:
ss.lv - Required string: Vieglie auto
- Required status codes: 200
- URL: https:
- Wait for the web scenario step to fail
- Update web scenario step - set Required status codes to 301
- Wait for the scenario step to fail with another error
- Check Proxy Valgrind logs
Result: the above mentioned errors are observer in the Valgring log for proxy
Expected: no "Conditional jump or move depends on uninitialised value" errors should be found in Valgrind logs
Valgrind log for 6.0: zabbix_proxy_VALGRIND_01062023_60.zip
Zabbix proxy log for 6.0: zabbix_proxy_6_0.log
Valgring log for 7.0: zabbix_proxy_VALGRIND_01062023_master.zip
Zabbix proxy log for 7.0: zabbix_proxy_master.log