ExportXMLWordPrintable

    • Type: Problem report
    • Resolution: Unresolved
    • Priority: Critical
    • None
    • Affects Version/s: 8.0.0rc1 (master)
    • Component/s: Server (S)

      Steps to reproduce:

      1. Edit zabbix_server.conf
      2. Set StartAgentPollers=0
      3. Start server with valgrind, start agent
      4. Test any passive agent item on the frontend
      5. Stop the server/agent
      6. See valgrind logs

      Result:
      Errors appear in valgrind logs:

      =00:00:00:49.133 81328== 1 errors in context 6 of 6:
      ==00:00:00:49.133 81328== Conditional jump or move depends on uninitialised value(s)
      ==00:00:00:49.133 81328==    at 0x2652AD: zbx_clean_items (poller_thread.c:1127)
      ==00:00:00:49.133 81328==    by 0x254767: zbx_trapper_item_test_run (trapper_item_test.c:543)
      ==00:00:00:49.133 81328==    by 0x255788: trapper_item_test (trapper_item_test.c:689)
      ==00:00:00:49.133 81328==    by 0x255788: zbx_trapper_item_test (trapper_item_test.c:760)
      ==00:00:00:49.133 81328==    by 0x24E2B9: process_trap (trapper.c:1300)
      ==00:00:00:49.133 81328==    by 0x24E2B9: process_trapper_child (trapper.c:1355)
      ==00:00:00:49.133 81328==    by 0x24E2B9: zbx_trapper_thread (trapper.c:1452)
      ==00:00:00:49.133 81328==    by 0x470AB3: zbx_thread_start (threads.c:121)
      ==00:00:00:49.133 81328==    by 0x1ED392: start_processes (server.c:1996)
      ==00:00:00:49.133 81328==    by 0x1EE10F: server_startup.constprop.0 (server.c:2304)
      ==00:00:00:49.133 81328==    by 0x1EF92A: MAIN_ZABBIX_ENTRY (server.c:2800)
      ==00:00:00:49.133 81328==    by 0x1E2BAD: main (server.c:1568)
      ==00:00:00:49.133 81328==  Uninitialised value was created by a stack allocation
      ==00:00:00:49.133 81328==    at 0x253607: zbx_trapper_item_test_run (trapper_item_test.c:222)

      See full log: valgrind_errors_test_item.txt
      Expected:
      There should be no memory errors in such scenario,

            Assignee:
            Zabbix Development Team
            Reporter:
            Nikita Gogolevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: