Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tail Debug Logging Crash issue in 2.31.7 - 2.31.9 #639

Closed
PettitWesley opened this issue Apr 18, 2023 · 0 comments · Fixed by #640
Closed

Tail Debug Logging Crash issue in 2.31.7 - 2.31.9 #639

PettitWesley opened this issue Apr 18, 2023 · 0 comments · Fixed by #640

Comments

@PettitWesley
Copy link
Contributor

This only affects you if ALL of following are true:

  1. You are using 2.31.7 to 2.31.9
  2. You are using the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail
  3. You have enabled debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging

Versions Impacted

2.31.7, 2.31.8 and 2.31.9

Mitigations

  1. Use a non-impacted version, we recommend 2.31.6 or 2.31.7
  2. Do not enable debug logging: https://github.com/aws/aws-for-fluent-bit/blob/mainline/troubleshooting/debugging.md#enable-debug-logging
  3. Do not use the tail input: https://docs.fluentbit.io/manual/pipeline/inputs/tail

Root Cause

Bad code introduced here: PettitWesley/fluent-bit@ab11d1d

Introduced in AWS for Fluent Bit here: 612f246

flb_sds_printf(&buf, "inode=%"PRIu64", %s, events: ", file->name, file->inode);

The arguments are out of order, file->inode should be first, file->name should be second.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant