[ZBX-18504] server crashing on JSONpath preprocessing Created: 2020 Oct 15  Updated: 2020 Oct 19

Status: Confirmed
Project: ZABBIX BUGS AND ISSUES
Component/s: None
Affects Version/s: 4.0.25
Fix Version/s: None

Type: Problem report Priority: Trivial
Reporter: Richard Ostrochovský Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

zabbix-server-mysql 4.0.25
CentOS Linux release 7.6.1810 (Core)


Attachments: Text File ZBX_server_crash_log.txt    

 Description   

Conditions to reproduce:

  • master item (HTTPS check) returning output in 2 alternate forms:

{"name1":{"name11":"value11","name12":"value12","name13":"value13","name14":{}}}

{"name14":{"name141":

{"name1411":"value1411","name1412":"value1412","name1413":"value1413","name1414":"value1414"}

}}

  • (original JSON data are masked, in case exact original data would be required, I can send it other way)
  • dependent item configured with 1m update interval (via LLD, but maybe it is unimportant) with JSONpath preprocessing $[?(@.name14 =~ '.' || @.[0].[0].name14 =~ '.')]
  • (I see that JSONpath pattern is not valid, because using indefinite path inside filter, but I think it should not cause server crash anyway)
  • (I also see that input data sholud have fixed structure for efficient JSONpath preprocessing, and I am not sure, if I would be able retrieve any property without not supported items when alternating input JSON - any advice is welcome)

Result:
Server crashing (and restarting automatically) every minute (according to dependent item update interval). Crash information from server log attached.
Expected:
Not supported or not LL-discovered item.


Generated at Mon Apr 07 21:04:24 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.