[ZBX-4059] zabbix_agentd crashes on too long parameters Created: 2011 Aug 18 Updated: 2017 May 30 Resolved: 2011 Aug 26 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Agent (G) |
Affects Version/s: | 1.8.5 |
Fix Version/s: | 1.8.8, 1.9.6 (beta) |
Type: | Incident report | Priority: | Major |
Reporter: | Marcin Gryszkalis | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 0 |
Labels: | None | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Windows Server 2003 |
Attachments: |
![]() |
Description |
Specyfing long argument to item with zabbix_get causes agent to crash: ./zabbix_get.exe -s 1.2.3.4 -k 'system.cpu.util[ccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc]' zabbix_get.exe [3836]: Get value error: ZBX_TCP_READ() failed [Istniej?ce po??czenie zosta?o gwa?townie zamkni?te przez zdalnego hosta.] zabbix_get.exe -s 1.2.3.4 -k system.cpu.num[9999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999] zabbix_get.exe [9504]: Get value error: ZBX_TCP_READ() failed [Istniej?ce po??czenie zosta?o gwa?townie zamkni?te przez zdalnego hosta.] In windows application log I get: Faulting application zabbix_agentd.exe, version 0.0.0.0, faulting module zabbix_agentd.exe, version 0.0.0.0, fault address 0x0000ff87. (fault address obviously depends on function called). zabbix_agentd on FreeBSD doesn't fail (returning proper value or ZBX_NOTSUPPORTED). |
Comments |
Comment by Marcin Gryszkalis [ 2011 Aug 19 ] |
I just confirmed problem on agent version 1.8.6 |
Comment by Rudolfs Kreicbergs [ 2011 Aug 25 ] |
Marcin, could not reproduce the issue. Could you please provide the log file with LogLevel=4 from the Agent? |
Comment by Marcin Gryszkalis [ 2011 Aug 25 ] |
here's log, first I asked for agent.version (ok) and then for example breaking input |
Comment by Rudolfs Kreicbergs [ 2011 Aug 26 ] |
Fixed/available in dev branch: svn://svn.zabbix.com/branches/dev/ZBX-4059 Thanks, Marcin, for the logs, the cause was an overflown buffer. |
Comment by Alexander Vladishev [ 2011 Aug 29 ] |
Successfully tested! |
Comment by Rudolfs Kreicbergs [ 2011 Sep 01 ] |
Fixed/available in pre-1.8.8 r21397 and pre-1.9.6 r21400. |