Closed narategithub closed 1 week ago
This PR is for issue #1512 .
I tested this with the missing "group" in the presence of "op". ldmsd
exited due to configuration error as follows:
Thu Nov 14 21:54:37 2024: INFO : Listening on sock:411 using `sock` transport and `none` authentication
Thu Nov 14 21:54:37 2024: WARNING : 'interval' is begin deprecated. Please use 'reconnect' with 'prdcr_add' or 'prdcr_start*' in the future.
Thu Nov 14 21:54:37 2024: WARNING : 'interval' is begin deprecated. Please use 'reconnect' with 'prdcr_add' or 'prdcr_start*' in the future.
Thu Nov 14 21:54:37 2024: ERROR : store_csv_static_test_sampler: schema "ldms_test_op" requires "group" due to the presence of "op".
Thu Nov 14 21:54:37 2024: ERROR : msg_no 6: error 22: store_csv_static_test_sampler: schema "ldms_test_op" requires "group" due to the presence of "op".
Thu Nov 14 21:54:37 2024: ERROR : Configuration error at line 6 (ldmsd.conf)
Thu Nov 14 21:54:37 2024: : LDMSD_ LDMS Daemon exiting...status 22, Error 22 processing configuration file 'ldmsd.conf'
Thu Nov 14 21:54:37 2024: : LDMSD_ cleanup end.
I just found @tom95858 's commit on main
that addressed this issue. I'm closing this PR in favor of PR #1521 .
When "op" was present in the static decomposition configuration but "group" was not defined, the static decomposition skipped row cache creation and continue working with
row_cache
beingNULL
. Consequently, whendecompose()
was later called,ldmsd
terminated with SIGSEGV.This patch add a sanity check in
config()
so that the static decomposition yields an error when "group" is missing in the presence of "op".