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

Server crashes on regexp preprocessing

XMLWordPrintable

    • Sprint 64 (May 2020)
    • 0.25

      Using special capture group "@" without the capture groups defined in regex causes crash:

      The following info is available in logs (from 5.0):

      1886:20200508:104953.287 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
      1886:20200508:104953.287 ====== Fatal information: ======
      1886:20200508:104953.288 Program counter: 0x7f08162bc746
      1886:20200508:104953.288 === Registers: ===
      1886:20200508:104953.288 r8      =           ef77d0 =             15693776 =             15693776
      1886:20200508:104953.288 r9      =                0 =                    0 =                    0
      1886:20200508:104953.288 r10     =               27 =                   39 =                   39
      1886:20200508:104953.288 r11     =     7f081664be10 =      139672712166928 =      139672712166928
      1886:20200508:104953.288 r12     =           5ce0bf =              6086847 =              6086847
      1886:20200508:104953.288 r13     =               82 =                  130 =                  130
      1886:20200508:104953.288 r14     =                0 =                    0 =                    0
      1886:20200508:104953.288 r15     =     7fff3548dcf8 =      140734087355640 =      140734087355640
      1886:20200508:104953.288 rdi     =                0 =                    0 =                    0
      1886:20200508:104953.288 rsi     =               82 =                  130 =                  130
      1886:20200508:104953.288 rbp     =                0 =                    0 =                    0
      1886:20200508:104953.288 rbx     =                9 =                    9 =                    9
      1886:20200508:104953.288 rdx     =                0 =                    0 =                    0
      1886:20200508:104953.288 rax     =                0 =                    0 =                    0
      1886:20200508:104953.288 rcx     =                0 =                    0 =                    0
      1886:20200508:104953.288 rsp     =     7fff3548db28 =      140734087355176 =      140734087355176
      1886:20200508:104953.288 rip     =     7f08162bc746 =      139672708433734 =      139672708433734
      1886:20200508:104953.288 efl     =            10293 =                66195 =                66195
      1886:20200508:104953.288 csgsfs  =               33 =                   51 =                   51
      1886:20200508:104953.288 err     =                4 =                    4 =                    4
      1886:20200508:104953.288 trapno  =                e =                   14 =                   14
      1886:20200508:104953.288 oldmask =                0 =                    0 =                    0
      1886:20200508:104953.288 cr2     =                0 =                    0 =                    0
      1886:20200508:104953.288 === Backtrace: ===
      1886:20200508:104953.289 15: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_backtrace+0x46) [0x51e626]
      1886:20200508:104953.289 14: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_log_fatal_info+0x271) [0x51e9a1]
      1886:20200508:104953.289 13: ./sbin/zabbix_server: preprocessing worker #2 started() [0x51ee26]
      1886:20200508:104953.289 12: /lib/x86_64-linux-gnu/libpthread.so.0(+0x11390) [0x7f0817bba390]
      1886:20200508:104953.289 11: /lib/x86_64-linux-gnu/libc.so.6(strlen+0x26) [0x7f08162bc746]
      1886:20200508:104953.289 10: /lib/x86_64-linux-gnu/libc.so.6(__strdup+0xe) [0x7f08162bc47e]
      1886:20200508:104953.289 9: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_strdup2+0x40) [0x52f080]
      1886:20200508:104953.289 8: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_variant_copy+0x5d) [0x538f6d]
      1886:20200508:104953.289 7: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_item_preproc_test+0x101) [0x469a51]
      1886:20200508:104953.289 6: ./sbin/zabbix_server: preprocessing worker #2 started(preprocessing_worker_thread+0x2ca) [0x464f4a]
      1886:20200508:104953.289 5: ./sbin/zabbix_server: preprocessing worker #2 started(zbx_thread_start+0x3e) [0x528f9e]
      1886:20200508:104953.289 4: ./sbin/zabbix_server: preprocessing worker #2 started(MAIN_ZABBIX_ENTRY+0x6db) [0x4312cb]
      1886:20200508:104953.289 3: ./sbin/zabbix_server: preprocessing worker #2 started(daemon_start+0x1c0) [0x51e3d0]
      1886:20200508:104953.289 2: ./sbin/zabbix_server: preprocessing worker #2 started(main+0x400) [0x429a40]
      1886:20200508:104953.289 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0) [0x7f0816251830]
      1886:20200508:104953.289 0: ./sbin/zabbix_server: preprocessing worker #2 started(_start+0x29) [0x430699]
      1886:20200508:104953.289 === Memory map: ===
      1886:20200508:104953.290 00400000-006b4000 r-xp 00000000 08:02 4195169                            /home/vjaceslavs/workspace/dev/master/sbin/zabbix_server
      1886:20200508:104953.290 008b4000-008b5000 r--p 002b4000 08:02 4195169                            /home/vjaceslavs/workspace/dev/master/sbin/zabbix_server
      1886:20200508:104953.290 008b5000-008c1000 rw-p 002b5000 08:02 4195169                            /home/vjaceslavs/workspace/dev/master/sbin/zabbix_server
      1886:20200508:104953.290 008c1000-008ca000 rw-p 00000000 00:00 0 
      1886:20200508:104953.290 00ea2000-00ec3000 rw-p 00000000 00:00 0                                  [heap]
      
      ...
      
      1886:20200508:104953.296 ================================
      1886:20200508:104953.296 Please consider attaching a disassembly listing to your bug report.
      1886:20200508:104953.296 This listing can be produced with, e.g., objdump -DSswx zabbix_server.
      1886:20200508:104953.296 ================================
      1795:20200508:104953.296 One child process died (PID:1886,exitcode/signal:1). Exiting ...
      zabbix_server [1795]: Error waiting for process with PID 1886: [10] No child processes
      1795:20200508:104953.318 syncing trend data...
      1795:20200508:104953.322 syncing trend data done
      1795:20200508:104953.322 Zabbix Server stopped. Zabbix 5.0.0rc1 (revision {ZABBIX_REVISION}).
      2151:20200508:105434.749 Starting Zabbix Server. Zabbix 5.0.0rc1 (revision {ZABBIX_REVISION}).
      

            MVekslers Michael Veksler
            vjaceslavs Vjaceslavs Bogdanovs
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: