We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6345fd1 commit 0bd94ddCopy full SHA for 0bd94dd
plugins/in_systemd/systemd.c
@@ -384,6 +384,16 @@ static int in_systemd_collect(struct flb_input_instance *ins,
384
/* Pack every field in the entry */
385
entries = 0;
386
skip_entries = 0;
387
+
388
+ /*
389
+ * Restart the journal data cursor before enumerating the fields for
390
+ * this entry. Recent libsystemd releases require callers to reset
391
+ * the cursor between entries; otherwise the internal decompression
392
+ * context can be reused in an invalid state, which ultimately
393
+ * triggers a crash in ZSTD_freeDDict().
394
+ */
395
+ sd_journal_restart_data(ctx->j);
396
397
while (sd_journal_enumerate_data(ctx->j, &data, &length) > 0 &&
398
entries < ctx->max_fields) {
399
key = (const char *) data;
0 commit comments