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

Prometheus preprocessing crashes on alpine Linux due to stack size limit

XMLWordPrintable

    • Sprint 98 (Mar 2023)
    • 0.25

      Limit:
      Thread stack size = 131072 bytes
      But there is buffer that exceeds that limit:

      #define ZBX_ITEM_PREPROC_PARAMS_LEN		65535
      ..
      char	pattern[ZBX_ITEM_PREPROC_PARAMS_LEN * ZBX_MAX_BYTES_IN_UTF8_CHAR + 1]
      
      33557:20230301:131330.767 One child process died (PID:33564,exitcode/signal:11). Exiting ...
       33557:20230301:131330.829 PROCESS EXIT: 33564
      zabbix_proxy [33557]: Error waiting for process with PID 33564: [10] No child process
       33557:20230301:131330.835 Zabbix Proxy stopped. Zabbix 6.4.0rc3 (revision edbb7d0eb50)
      

      .

      Expected:
      Large buffer should be allocated on heap, if so then crash dissapears

            wiper Andris Zeila
            vso Vladislavs Sokurenko
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: