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

agent collector crashes in zbx_proc_get_matching_pids()

XMLWordPrintable

      Current r57474 of trunk crashes with the following backtrace:

        9024:20160107:182705.365 Got signal [signal:11(SIGSEGV),reason:1,refaddr:(nil)]. Crashing ...
        9024:20160107:182705.365 ====== Fatal information: ======
        9024:20160107:182705.365 Program counter: 0x7eff3af8b684
        9024:20160107:182705.365 === Registers: ===
        9024:20160107:182705.365 r8      =           442900 =              4466944 =              4466944
        9024:20160107:182705.365 r9      =          1558ed0 =             22384336 =             22384336
        9024:20160107:182705.365 r10     =               10 =                   16 =                   16
        9024:20160107:182705.365 r11     =              206 =                  518 =                  518
        9024:20160107:182705.365 r12     =          1530510 =             22218000 =             22218000
        9024:20160107:182705.365 r13     =          155b520 =             22394144 =             22394144
        9024:20160107:182705.365 r14     =     7eff3bb2afb8 =      139634683326392 =      139634683326392
        9024:20160107:182705.365 r15     =                0 =                    0 =                    0
        9024:20160107:182705.365 rdi     =     7eff3b2b2620 =      139634674443808 =      139634674443808
        9024:20160107:182705.365 rsi     =          1552620 =             22357536 =             22357536
        9024:20160107:182705.365 rbp     =               22 =                   34 =                   34
        9024:20160107:182705.365 rbx     =               23 =                   35 =                   35
        9024:20160107:182705.365 rdx     =              220 =                  544 =                  544
        9024:20160107:182705.365 rax     =                0 =                    0 =                    0
        9024:20160107:182705.365 rcx     =          155b0e0 =             22393056 =             22393056
        9024:20160107:182705.365 rsp     =     7fffb1ae1068 =      140736174362728 =      140736174362728
        9024:20160107:182705.365 rip     =     7eff3af8b684 =      139634671138436 =      139634671138436
        9024:20160107:182705.365 efl     =            10246 =                66118 =                66118
        9024:20160107:182705.365 csgsfs  =               33 =                   51 =                   51
        9024:20160107:182705.365 err     =                4 =                    4 =                    4
        9024:20160107:182705.365 trapno  =                e =                   14 =                   14
        9024:20160107:182705.365 oldmask =                0 =                    0 =                    0
        9024:20160107:182705.365 cr2     =                0 =                    0 =                    0
        9024:20160107:182705.365 === Backtrace: ===
        9024:20160107:182705.366 15: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](print_fatal_info+0x9e) [0x42879e]
        9024:20160107:182705.366 14: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data]() [0x4289d2]
        9024:20160107:182705.366 13: /lib/x86_64-linux-gnu/libc.so.6(+0x35180) [0x7eff3af44180]
        9024:20160107:182705.366 12: /lib/x86_64-linux-gnu/libc.so.6(cfree+0x34) [0x7eff3af8b684]
        9024:20160107:182705.366 11: /lib/x86_64-linux-gnu/libc.so.6(+0xc1100) [0x7eff3afd0100]
        9024:20160107:182705.366 10: /lib/x86_64-linux-gnu/libc.so.6(regfree+0x11) [0x7eff3afdc421]
        9024:20160107:182705.366 9: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data]() [0x424672]
        9024:20160107:182705.366 8: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](zbx_proc_get_matching_pids+0x127) [0x41a2f7]
        9024:20160107:182705.366 7: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](zbx_procstat_collect+0x3a9) [0x412a69]
        9024:20160107:182705.366 6: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](collector_thread+0x98) [0x40dea8]
        9024:20160107:182705.366 5: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](zbx_thread_start+0x45) [0x427535]
        9024:20160107:182705.366 4: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](MAIN_ZABBIX_ENTRY+0x1a6) [0x414146]
        9024:20160107:182705.366 3: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](daemon_start+0x185) [0x428115]
        9024:20160107:182705.366 2: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data](main+0x91) [0x40b161]
        9024:20160107:182705.366 1: /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7eff3af30b45]
        9024:20160107:182705.366 0: /home/zabbix/zabbix-bin/sbin/zabbix_agentd: collector [processing data]() [0x40b266]
        9024:20160107:182705.366 === Memory map: ===
        9024:20160107:182705.366 00400000-00450000 r-xp 00000000 08:02 689264                             /home/zabbix/zabbix-bin/sbin/zabbix_agentd
        9024:20160107:182705.366 0064f000-00651000 rw-p 0004f000 08:02 689264                             /home/zabbix/zabbix-bin/sbin/zabbix_agentd
        9024:20160107:182705.366 00651000-00657000 rw-p 00000000 00:00 0 
        9024:20160107:182705.366 01512000-01533000 rw-p 00000000 00:00 0                                  [heap]
        9024:20160107:182705.366 01533000-01586000 rw-p 00000000 00:00 0                                  [heap]
        9024:20160107:182705.366 7eff3acf9000-7eff3ad0f000 r-xp 00000000 08:02 6293377                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        9024:20160107:182705.366 7eff3ad0f000-7eff3af0e000 ---p 00016000 08:02 6293377                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        9024:20160107:182705.366 7eff3af0e000-7eff3af0f000 rw-p 00015000 08:02 6293377                    /lib/x86_64-linux-gnu/libgcc_s.so.1
        9024:20160107:182705.366 7eff3af0f000-7eff3b0ae000 r-xp 00000000 08:02 6293657                    /lib/x86_64-linux-gnu/libc-2.19.so
        9024:20160107:182705.366 7eff3b0ae000-7eff3b2ae000 ---p 0019f000 08:02 6293657                    /lib/x86_64-linux-gnu/libc-2.19.so
        9024:20160107:182705.366 7eff3b2ae000-7eff3b2b2000 r--p 0019f000 08:02 6293657                    /lib/x86_64-linux-gnu/libc-2.19.so
        9024:20160107:182705.366 7eff3b2b2000-7eff3b2b4000 rw-p 001a3000 08:02 6293657                    /lib/x86_64-linux-gnu/libc-2.19.so
        9024:20160107:182705.366 7eff3b2b4000-7eff3b2b8000 rw-p 00000000 00:00 0 
        9024:20160107:182705.366 7eff3b2b8000-7eff3b2cc000 r-xp 00000000 08:02 6298741                    /lib/x86_64-linux-gnu/libresolv-2.19.so
        9024:20160107:182705.366 7eff3b2cc000-7eff3b4cb000 ---p 00014000 08:02 6298741                    /lib/x86_64-linux-gnu/libresolv-2.19.so
        9024:20160107:182705.366 7eff3b4cb000-7eff3b4cc000 r--p 00013000 08:02 6298741                    /lib/x86_64-linux-gnu/libresolv-2.19.so
        9024:20160107:182705.366 7eff3b4cc000-7eff3b4cd000 rw-p 00014000 08:02 6298741                    /lib/x86_64-linux-gnu/libresolv-2.19.so
        9024:20160107:182705.366 7eff3b4cd000-7eff3b4cf000 rw-p 00000000 00:00 0 
        9024:20160107:182705.366 7eff3b4cf000-7eff3b4d2000 r-xp 00000000 08:02 6296407                    /lib/x86_64-linux-gnu/libdl-2.19.so
        9024:20160107:182705.366 7eff3b4d2000-7eff3b6d1000 ---p 00003000 08:02 6296407                    /lib/x86_64-linux-gnu/libdl-2.19.so
        9024:20160107:182705.367 7eff3b6d1000-7eff3b6d2000 r--p 00002000 08:02 6296407                    /lib/x86_64-linux-gnu/libdl-2.19.so
        9024:20160107:182705.367 7eff3b6d2000-7eff3b6d3000 rw-p 00003000 08:02 6296407                    /lib/x86_64-linux-gnu/libdl-2.19.so
        9024:20160107:182705.367 7eff3b6d3000-7eff3b7d3000 r-xp 00000000 08:02 6297828                    /lib/x86_64-linux-gnu/libm-2.19.so
        9024:20160107:182705.367 7eff3b7d3000-7eff3b9d2000 ---p 00100000 08:02 6297828                    /lib/x86_64-linux-gnu/libm-2.19.so
        9024:20160107:182705.367 7eff3b9d2000-7eff3b9d3000 r--p 000ff000 08:02 6297828                    /lib/x86_64-linux-gnu/libm-2.19.so
        9024:20160107:182705.367 7eff3b9d3000-7eff3b9d4000 rw-p 00100000 08:02 6297828                    /lib/x86_64-linux-gnu/libm-2.19.so
        9024:20160107:182705.367 7eff3b9d4000-7eff3b9f4000 r-xp 00000000 08:02 6292412                    /lib/x86_64-linux-gnu/ld-2.19.so
        9024:20160107:182705.367 7eff3bad6000-7eff3bb2b000 rw-s 00000000 00:04 12222524                   /SYSV70026aa5 (deleted)
        9024:20160107:182705.367 7eff3bb2b000-7eff3bbcc000 rw-s 00000000 00:04 10453006                   /SYSV6c026aa5 (deleted)
        9024:20160107:182705.367 7eff3bbcc000-7eff3bbd0000 rw-p 00000000 00:00 0 
        9024:20160107:182705.367 7eff3bbf0000-7eff3bbf1000 rw-p 00000000 00:00 0 
        9024:20160107:182705.367 7eff3bbf1000-7eff3bbf2000 rw-p 00000000 00:00 0 
        9024:20160107:182705.367 7eff3bbf2000-7eff3bbf4000 rw-p 00000000 00:00 0 
        9024:20160107:182705.367 7eff3bbf4000-7eff3bbf5000 r--p 00020000 08:02 6292412                    /lib/x86_64-linux-gnu/ld-2.19.so
        9024:20160107:182705.367 7eff3bbf5000-7eff3bbf6000 rw-p 00021000 08:02 6292412                    /lib/x86_64-linux-gnu/ld-2.19.so
        9024:20160107:182705.367 7eff3bbf6000-7eff3bbf7000 rw-p 00000000 00:00 0 
        9024:20160107:182705.367 7fffb1ac2000-7fffb1ae3000 rw-p 00000000 00:00 0                          [stack]
        9024:20160107:182705.367 7fffb1b4e000-7fffb1b50000 r-xp 00000000 00:00 0                          [vdso]
        9024:20160107:182705.367 7fffb1b50000-7fffb1b52000 r--p 00000000 00:00 0                          [vvar]
        9024:20160107:182705.367 ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
        9024:20160107:182705.367 ================================
        9024:20160107:182705.367 Please consider attaching a disassembly listing to your bug report.
        9024:20160107:182705.367 This listing can be produced with, e.g., objdump -DSswx zabbix_agentd.
        9024:20160107:182705.367 ================================
        9023:20160107:182705.367 One child process died (PID:9024,exitcode/signal:1). Exiting ...
      zabbix_agentd [9023]: Error on thread waiting.
        9023:20160107:182705.368 Zabbix Agent stopped. Zabbix 3.0.0alpha6 (revision {ZABBIX_REVISION}).
      

            Unassigned Unassigned
            asaveljevs Aleksandrs Saveljevs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: