From 437ecf5fbfd16dfeb5080965d5518732fed9e8ac Mon Sep 17 00:00:00 2001 From: Tom Tucker Date: Fri, 31 May 2024 20:43:15 -0500 Subject: [PATCH] Fix SEGV when 'group' not specified. --- ldms/src/decomp/static/decomp_static.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ldms/src/decomp/static/decomp_static.c b/ldms/src/decomp/static/decomp_static.c index 295c0ad37..622636783 100644 --- a/ldms/src/decomp/static/decomp_static.c +++ b/ldms/src/decomp/static/decomp_static.c @@ -697,6 +697,11 @@ decomp_static_config(ldmsd_strgp_t strgp, json_t *jcfg, rc = handle_group(strgp, jgroup, cfg_row, row_no, reqc); if (rc) goto err_0; + } else if (cfg_row->op_present) { + THISLOG(reqc, EINVAL, + "%s: row: %d, The 'group' clause is required if " + "functional operators are in use.\n", + strgp->obj.name, row_no); } dcfg->row_count++;