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

Many memory errors detected by Valgrind

XMLWordPrintable

    • S24-W36/37, S24-W40/41
    • 1

      The following is always reproducible on master

      ==00:08:23:56.482 590569== Use of uninitialised value of size 8
      ==00:08:23:56.482 590569==    at 0x4BFF88: mem_set_prev_chunk (memalloc.c:173)
      ==00:08:23:56.482 590569==    by 0x4C0097: mem_link_chunk (memalloc.c:203)
      ==00:08:23:56.482 590569==    by 0x4C03FF: __mem_malloc (memalloc.c:305)
      ==00:08:23:56.482 590569==    by 0x4C136F: __zbx_shmem_malloc (memalloc.c:682)
      ==00:08:23:56.482 590569==    by 0x44E893: __hc_index_shmem_malloc_func (cachehistory.c:2470)
      ==00:08:23:56.482 590569==    by 0x503527: zbx_hashset_insert_ext (hashset.c:227)
      ==00:08:23:56.482 590569==    by 0x5033A7: zbx_hashset_insert (hashset.c:188)
      ==00:08:23:56.482 590569==    by 0x44EC97: hc_add_item (cachehistory.c:2579)
      ==00:08:23:56.482 590569==    by 0x44F523: hc_add_item_values (cachehistory.c:2854)
      ==00:08:23:56.482 590569==    by 0x44E797: zbx_dc_flush_history (cachehistory.c:2445)
      ==00:08:23:56.482 590569==    by 0x48A747: zbx_pp_manager_thread (pp_manager.c:1332)
      ==00:08:23:56.482 590569==    by 0x4CDC13: zbx_thread_start (threads.c:135)
      ==00:08:23:56.482 590569==  Uninitialised value was created by a stack allocation
      ==00:08:23:56.482 590569==    at 0x44EC38: hc_add_item (cachehistory.c:2576)
      
         1626:==00:00:13:04.628 1165906== Use of uninitialised value of size 8
         1627:==00:00:13:04.628 1165906==    at 0x4C017C: mem_unlink_chunk (memalloc.c:227)
         1628:==00:00:13:04.628 1165906==    by 0x4C0BEF: __mem_free (memalloc.c:510)
         1629:==00:00:13:04.628 1165906==    by 0x4C15E3: __zbx_shmem_free (memalloc.c:744)
         1630:==00:00:13:04.628 1165906==    by 0x44E90B: __hc_index_shmem_free_func (cachehistory.c:2470)
         1631:==00:00:13:04.628 1165906==    by 0x5049EF: zbx_list_pop (linked_list.c:198)
         1632:==00:00:13:04.628 1165906==    by 0x450B33: zbx_hc_proxyqueue_dequeue (cachehistory.c:3477)
         1633:==00:00:13:04.628 1165906==    by 0x1DE733: zbx_hc_check_proxy (cachehistory_server.c:1737)
         1634:==00:00:13:04.628 1165906==    by 0x23C8BF: recv_proxy_data (proxydata.c:156)
         1635:==00:00:13:04.628 1165906==    by 0x23C323: zbx_trapper_process_request_server (trapper_server.c:247)
         1636:==00:00:13:04.628 1165906==    by 0x22D5BB: process_trap (trapper.c:1240)
         1637:==00:00:13:04.628 1165906==    by 0x22DA6F: process_trapper_child (trapper.c:1346)
         1638:==00:00:13:04.628 1165906==    by 0x22DDFF: zbx_trapper_thread (trapper.c:1443)
         1639:==00:00:13:04.628 1165906==  Uninitialised value was created by a stack allocation
         1640:==00:00:13:04.628 1165906==    at 0x44EC38: hc_add_item (cachehistory.c:2576)
      

      Just leave VMWare or any other template monitoring overnight...

      UPDATE The originally reported warning does not seem to be reproducible.
      Another reproducible warning, will be fixed as part of this task:

         1598:==00:00:09:03.942 2416== Conditional jump or move depends on uninitialised value(s)
         1599:==00:00:09:03.942 2416==    at 0x1DF4A0: evaluate_item_functions (trigger_eval.c:325)
      

        1. Screenshot 2024-07-26 at 17.31.05.png
          247 kB
          Artjoms Rimdjonoks
        2. serv_valgr_log.tar.gz
          3.65 MB
          Artjoms Rimdjonoks

            arimdjonoks Artjoms Rimdjonoks
            arimdjonoks Artjoms Rimdjonoks
            Team C
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 8h Original Estimate - 8h
                8h
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 13h
                13h