Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-22864

Task manager: Infinite loop issue during BulkRequest processing

XMLWordPrintable

    • Sprint 100 (May 2023), Sprint 101 (Jun 2023), Sprint 102 (Jul 2023), Sprint 103 (Aug 2023)
    • 1

      We are experiencing an issue where Zabbix enters an infinite loop during BulkRequest processing when a user carries out the following steps:

      1. Using an SNMP template to a host
      2. Checks item and LLD rule values with the 'Test' function
      3. Changes the monitoring interval to 1 hour
      4. Starts monitoring
      5. Manually retrieves monitoring data using 'Execute Now'

      We've tried to reproduce the issue following the same steps as the user, we have been unsuccessful. However, this issue has already occurred twice in the user's environment, suggesting that there is some degree of reproducibility.

      Due to this issue, the task manager enters an infinite loop, and we have not found any recovery method other than a restart.

      We suspect the issue arises when a request is made with max_vars=0. The current source code does not handle this scenario, causing the task manager to become trapped in an infinite loop.

      2385953:20230518:201928.571 log level has been increased to 4 (debug)
      2385953:20230518:201928.573 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      2385953:20230518:201928.576 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      2385953:20230518:201928.578 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      2385953:20230518:201928.580 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      2385953:20230518:201928.582 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      2385953:20230518:201928.584 zbx_snmp_walk() snmp_synch_response() status:0 s_snmp_errno:0 errstat:0 max_vars:0
      ...
      

            mprihodko Mihails Prihodko
            JKKim Kim Jongkwon
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: