[ZBX-15913] Zabbix server crashing - Alerter errors Created: 2019 Apr 01  Updated: 2019 Apr 10  Resolved: 2019 Apr 03

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Server (S)
Affects Version/s: None
Fix Version/s: 3.0.27rc1, 4.0.7rc1, 4.2.1rc1, 4.4.0alpha1, 4.4 (plan)

Type: Problem report Priority: Blocker
Reporter: Edmunds Vesmanis Assignee: Vladislavs Sokurenko
Resolution: Fixed Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File ZBX-15913-3.0.diff     File zabbix-server.dump.txt.gz     HTML File zabbix_server    
Issue Links:
Duplicate
Team: Team A
Sprint: Sprint 51 (Apr 2019)
Story Points: 0.5

 Description   

Zabbix server (v3.0.24) is down and while checking the log file getting below Error:

*** Error in `/usr/sbin/zabbix_server: alerter [sending alerts]': realloc(): invalid next size: 0x00007f09247c5030 ***
======= Backtrace: =========/lib64/libc.so.6(+0x7f5d4)
[0x7f091f9395d4]/lib64/libc.so.6(+0x83bd8)
[0x7f091f93dbd8]/lib64/libc.so.6(realloc+0x1d2)
[0x7f091f93f832]/usr/sbin/zabbix_server: alerter [sending alerts](zbx_realloc2+0x4e)
[0x7f09231a04a8]/usr/sbin/zabbix_server: alerter [sending alerts](substitute_simple_macros+0x4cee)
[0x7f092315f450]/usr/sbin/zabbix_server: alerter [sending alerts](execute_action+0x40b)
[0x7f0923103933]/usr/sbin/zabbix_server: alerter [sending alerts](alerter_thread+0x3a3)
[0x7f0923103ef4]/usr/sbin/zabbix_server: alerter [sending alerts](zbx_thread_start+0x37)
[0x7f09231995d5]/usr/sbin/zabbix_server: alerter [sending alerts](MAIN_ZABBIX_ENTRY+0x69f)
[0x7f0923102fb5]/usr/sbin/zabbix_server: alerter [sending alerts](daemon_start+0x32f)
[0x7f09231979ed]/usr/sbin/zabbix_server: alerter [sending alerts](main+0x2b5)
[0x7f0923102914]/lib64/libc.so.6(__libc_start_main+0xf5)
[0x7f091f8dc3d5]/usr/sbin/zabbix_server: alerter [sending alerts](+0x2c699)
[0x7f09230fb699]======= Memory map: ========


 Comments   
Comment by Vladislavs Sokurenko [ 2019 Apr 01 ]

Fixed in development branch:
svn://svn.zabbix.com/branches/dev/ZBX-15913

Comment by Vladislavs Sokurenko [ 2019 Apr 03 ]

Fixed in:

  • pre-3.0.27rc1 r91921
  • pre-4.0.7rc1 r91923
  • pre-4.2.1rc1 r91924
  • pre-4.4.0alpha1 r91925
Comment by richlv [ 2019 Apr 10 ]

Vladislav, could you please expand on what triggered the crash?

Comment by Vladislavs Sokurenko [ 2019 Apr 10 ]

Yes richlv issue can be reproduced with following setup:

Create media type with parameters

zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz
{ALERT.SUBJECT}
zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

Message subject must be

{ALERT.SUBJECT}++
Generated at Thu Mar 28 21:01:04 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.