[ZBX-13544] Zabbix Agent Crashes when using Regex with 'Log' item Created: 2018 Feb 27 Updated: 2024 Apr 10 Resolved: 2018 Mar 25 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 3.4.7 |
Fix Version/s: | 3.4.8rc1, 4.0.0alpha5, 4.0 (plan) |
Type: | Incident report | Priority: | Major |
Reporter: | Samarth | Assignee: | Michael Veksler |
Resolution: | Fixed | Votes: | 0 |
Labels: | crash, logmonitoring, regex | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Mac OSX 10.13.3 |
Attachments: |
![]() |
Team: | |
Sprint: | Sprint 28, Sprint 29, Sprint 30 |
Story Points: | 1 |
Description |
Steps to reproduce: log[/Library/FileMaker Server/Logs/Event.log,Warning] The Zabbix Agent crashes every time this command is run. Here is the crash log: 60483:20180226:145814.062 Starting Zabbix Agent [67x100.filemaker.com]. Zabbix 3.4.7 (revision 77720). 60483:20180226:145814.062 **** Enabled features **** 60483:20180226:145814.063 IPv6 support: YES 60483:20180226:145814.063 TLS support: YES 60483:20180226:145814.063 ************************** 60483:20180226:145814.063 using configuration file: /usr/local/etc/zabbix/zabbix_agentd.conf 60483:20180226:145814.065 agent #0 started [main process] 60484:20180226:145814.065 agent #1 started [collector] 60485:20180226:145814.066 agent #2 started [listener #1] 60486:20180226:145814.066 agent #3 started [listener #2] 60487:20180226:145814.067 agent #4 started [listener #3] 60488:20180226:145814.067 agent #5 started [active checks #1] 60488:20180226:145814.073 no active checks on server [17.184.100.87:10051]: host [67x100.filemaker.com] not monitored 60488:20180226:150014.218 Got signal [signal:11(SIGSEGV),reason:1,refaddr:0x42]. Crashing ... 60488:20180226:150014.218 ====== Fatal information: ====== 60488:20180226:150014.218 program counter not available for this architecture 60488:20180226:150014.219 === Registers: === 60488:20180226:150014.219 register dump not available for this architecture 60488:20180226:150014.219 === Backtrace: === 60488:20180226:150014.219 13: 0 zabbix_agentd 0x0000000103b73794 zbx_log_fatal_info + 168 60488:20180226:150014.219 12: 1 zabbix_agentd 0x0000000103b73bda fatal_signal_handler + 27 60488:20180226:150014.219 11: 2 libsystem_platform.dylib 0x00007fff68683f5a _sigtramp + 26 60488:20180226:150014.220 10: 3 libdyld.dylib 0x00007fff68402392 dyld_stub_binder + 282 60488:20180226:150014.220 9: 4 zabbix_agentd 0x0000000103b7000a regexp_sub + 117 60488:20180226:150014.220 8: 5 zabbix_agentd 0x0000000103b706d6 regexp_match_ex_regsub + 38 60488:20180226:150014.220 7: 6 zabbix_agentd 0x0000000103b70616 regexp_sub_ex + 578 60488:20180226:150014.220 6: 7 zabbix_agentd 0x0000000103b62e46 process_logrt + 6565 60488:20180226:150014.220 5: 8 zabbix_agentd 0x0000000103b5e28a active_checks_thread + 3278 60488:20180226:150014.221 4: 9 zabbix_agentd 0x0000000103b72b46 zbx_thread_start + 32 60488:20180226:150014.221 3: 10 zabbix_agentd 0x0000000103b649a0 MAIN_ZABBIX_ENTRY + 670 60488:20180226:150014.221 2: 11 zabbix_agentd 0x0000000103b7304d daemon_start + 441 60488:20180226:150014.221 1: 12 zabbix_agentd 0x0000000103b64f88 main + 869 60488:20180226:150014.221 0: 13 libdyld.dylib 0x00007fff68402115 start + 1 60488:20180226:150014.221 === Memory map: === 60488:20180226:150014.221 memory map not available for this platform 60488:20180226:150014.222 ================================ 60483:20180226:150014.222 One child process died (PID:60488,exitcode/signal:1). Exiting ... 60483:20180226:150014.223 cannot remove shared memory for collector: [22] Invalid argument 60483:20180226:150014.223 Zabbix Agent stopped. Zabbix 3.4.7 (revision 77720). Side Notes:
|
Comments |
Comment by Samarth [ 2018 Feb 27 ] |
Debug Level = 3 |
Comment by Viktors Tjarve [ 2018 Feb 27 ] |
Hi Samarth, Also please check if you are using the correct version of PCRE library. Note that you need exactly PCRE (v8.x). PCRE2 (v10.x) library is not supported. |
Comment by Samarth [ 2018 Feb 27 ] |
Hi Viktors, |
Comment by Glebs Ivanovskis (Inactive) [ 2018 Feb 27 ] |
I did some searching and found this. Can you show the output of the following command? $ jtool -lazy_bind zabbix_agentd |
Comment by Samarth [ 2018 Feb 28 ] |
Hi Glebs, Here is the symbol output: lazy bind information: |
Comment by Viktors Tjarve [ 2018 Feb 28 ] |
Hi Samarth, |
Comment by Samarth [ 2018 Mar 01 ] |
Hi Viktors, The crash stopped. I am getting a 'cannot compile regular expression' error now and the item status has changed to 'Not Supported' in the Zabbix server UI Here is the log: 47046:20180228:160210.519 **** Enabled features **** |
Comment by Samarth [ 2018 Mar 01 ] |
A side note: Log: |
Comment by Michael Veksler [ 2018 Mar 22 ] |
Available in:
|
Comment by richlv [ 2018 Nov 26 ] |
The previous comment says "With the patch, Zabbix agent crashes when using log.count[]", but the issue is closed as fixed - what happened here? <richlv> Thank you Michael, but that link only leads back to this issue. Looks like a secret comment again? MVekslers The link target the previous comment that is publicly available <richlv> Ah, now a comment from March is visible, showing the fix versions. |