[ZBX-6216] Realtime mode of zabbix_sender doesn't work Created: 2013 Feb 05  Updated: 2017 May 30  Resolved: 2013 Feb 07

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.0.4
Fix Version/s: 2.0.6rc1, 2.1.0

Type: Incident report Priority: Major
Reporter: Bastian Born Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash, realtime, sender
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Hi,
the current version (2.0.4.win) of zabbix_sender crashes if you are using the realtime mode (-r, --realtime).

You are using the function setvbuf() in zabbix_sender.c:386 without buffer and buffersize = 0. If you set the buffer to NULL you have to give a buffersize for internal allocation. The value 1024 works for me.

Best regards,
Bastian Born



 Comments   
Comment by Andris Zeila [ 2013 Feb 07 ]

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

Unfortunately win32 does not support mode change only with setvbuf() call, so the size is required parameter in windows.

Comment by dimir [ 2013 Feb 11 ]

Successfully tested.

Comment by Andris Zeila [ 2013 Feb 12 ]

Fixed in:
pre-2.0.6rc1 r33567
pre-2.1.0 r33568

Generated at Fri Mar 29 09:21:14 EET 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.