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

zabbix-server crashes on preprocessing a valid PCRE regex

    XMLWordPrintable

    Details

    • Type: Documentation task
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 4.0.4
    • Fix Version/s: 4.2 (plan)
    • Component/s: Server (S)
    • Labels:
      None
    • Environment:
      Ubuntu 18.04.2
    • Team:
      Team A
    • Sprint:
      Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
    • Story Points:
      0.25

      Description

      Steps to reproduce:

      1. Create a new "text" data type and get the attached file (this would be the parent item)
      2. Configure a dependent item and set "preprocessing" to "regular expression"
      3. Input the following regular expression: 'node2(.|\n)*?rollupStatus": "(.*)"\n'
      4. Configure the output to be '\2'

      Result:
      As soon as data is received from a proxy by the server, it crashes (due to one of child processes crashing)
      Logs show:

      392:20190222:110914.069 server #33 started [preprocessing worker #3]
       390:20190222:110914.145 server #31 started [preprocessing worker #1]
       391:20190222:110914.146 server #32 started [preprocessing worker #2]
       350:20190222:110916.458 One child process died (PID:392,exitcode/signal:11). Exiting ...
      zabbix_server [350]: Error waiting for process with PID 392: [10] No child processes
       350:20190222:110916.512 syncing history data...
       350:20190222:110918.675 syncing history data... 100.000000%
       350:20190222:110918.675 syncing history data done
       350:20190222:110918.675 syncing trend data...
       350:20190222:110921.382 syncing trend data done
       350:20190222:110921.383 Zabbix Server stopped. Zabbix 4.0.4 (revision 89349).
      

      Expected:
      Zabbix server properly handles the valid PCRE regex for preprocessing and does not crash

        Attachments

        1. objdump_proxy.zip
          5.68 MB
        2. objdump_server.zip
          7.28 MB
        3. other_proxy.txt
          7 kB
        4. other_server.txt
          11 kB
        5. payload_raw.txt
          24 kB
        6. Screenshot 2019-02-22 at 08.37.45.png
          Screenshot 2019-02-22 at 08.37.45.png
          67 kB
        7. Screenshot 2019-02-22 at 08.46.39.png
          Screenshot 2019-02-22 at 08.46.39.png
          61 kB
        8. Screenshot 2019-02-22 at 08.46.59.png
          Screenshot 2019-02-22 at 08.46.59.png
          59 kB
        9. Screenshot 2019-02-22 at 08.47.47.png
          Screenshot 2019-02-22 at 08.47.47.png
          118 kB
        10. zabbix_data.txt
          62 kB
        11. zabbix_regex.png
          zabbix_regex.png
          12 kB
        12. zabbix_server.log
          1.38 MB

          Activity

            People

            Assignee:
            vso Vladislavs Sokurenko
            Reporter:
            ilyakruchinin Ilya Kruchinin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: