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

    • Icon: Documentation task Documentation task
    • Resolution: Fixed
    • Icon: Critical Critical
    • 4.2 (plan)
    • 4.0.4
    • Server (S)
    • None
    • Ubuntu 18.04.2
    • Team A
    • Sprint 49 (Feb 2019), Sprint 50 (Mar 2019), Sprint 51 (Apr 2019)
    • 0.25

      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

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

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

              Created:
              Updated:
              Resolved: