[ZBX-9206] zabbix-agentd segfault Created: 2015 Jan 11  Updated: 2017 May 30  Resolved: 2015 Jan 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Agent (G)
Affects Version/s: 2.4.3
Fix Version/s: 2.4.4rc1, 2.5.0

Type: Incident report Priority: Critical
Reporter: michal svoboda Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: crash, regression, segfault
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Arch linux; Linux hostname 3.18.1.201501042021-1-grsec #1 SMP PREEMPT Mon Jan 5 09:44:10 EST 2015 x86_64 GNU/Linux


Attachments: Text File crash.txt     File objdump.txt.bz2     Text File zabbix_agentd.conf    
Issue Links:
Duplicate
is duplicated by ZBX-9208 Zabbix agent crashes when running net... Closed

 Description   

I have a template, with 1 app and 1 item:
net.tcp.service[https] (zabbix agent active)
As soon as I link my host with that template, zabbix agentd crashes. Full log and config attached.
I don't understand why, since the host is linked with another template that contains "net.tcp.service[ssh]" that works just fine. Also, I don't understand why in the log zabbix agentd complains that the https check is not supported prior to crashing.
Note grsec has nothing to do with it, it crashes on vanilla kernel also.



 Comments   
Comment by Aleksandrs Saveljevs [ 2015 Jan 12 ]

Indeed, it seems to crash after "net.tcp.service[https]" check is processed if agent is compiled without cURL support.

Meanwhile, you might wish to compile the agent with cURL by passing "--with-libcurl" option to ./configure.

Comment by Aleksandrs Saveljevs [ 2015 Jan 12 ]

Seems to work well in the latest 2.2.

Comment by Aleksandrs Saveljevs [ 2015 Jan 12 ]

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

Comment by Aleksandrs Saveljevs [ 2015 Jan 12 ]

The problem was that the error message was not set in the following cases:

  • net.tcp.service[ldap] is used and agent compiled without LDAP support;
  • net.tcp.service[https] is used and agent compiled without cURL support;
  • net.tcp.service[] used with a bad first argument.

If these checks were used as active agent checks, then the agent would try to use the error message and would crash.

Comment by Aleksandrs Saveljevs [ 2015 Jan 12 ]

Fixed in pre-2.4.4 r51532 and pre-2.5.0 (trunk) r51533.

Generated at Thu Apr 25 04:08:37 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.