-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
SIGSEGV with input forward plugin #7240
Comments
@leonardo-albertovich (Cc: @edsiper ) I think fluentd also is affected. (I haven't test) Format of v2.0.7[event_time,{"message":"dummy"}]
Format of Current master[[event_time, {}], {"message","dummy"}]
|
If we sent a new format which contains metadata using forward protocol,
|
It seems that I missed that in out_forward when operating in forward mode. When operating in message mode the metadata is sent in the optional options map and when operating in compat mode it's omitted but the new format is used for the array entries. I think we'll be able to ship a fix very soon. |
Turns out that I did include the flag and part of the necessary code but I made a typo in the conditional and also missed another part of the code that needed to be patched. Once PR 7249 is merged the default behavior when operating in forward mode will be backwards compatible (metadata will be dropped). I will write an update once the PR is verified and merged. |
@tugtugtug I just tried to reproduce the crash using the master branch and the head of the 1.9 branch but couldn't, fluent-bit 1.9 just prints :
Which makes sense in a way. Would you be able to give me a hand with the reproduction? I think we should be able to capture the traffic into a pcap I'd be able te replay locally and then I'm sure we'd be able to fix it really quick. The patch that fixes the default behavior is on its way but I'd really appreciate it if you could help me reproduce this so we can patch 1.9 if needed. |
@leonardo-albertovich thank you for looking into this issue so quickly. gdb shows the
this print that formats the
|
Ok, that's much simpler than I expected. If I'm correct, what happened was that not that The good news is that this bug poses no security risk because it's treating the value of Additionally, this particular bug is in the (now legacy) Regardless, we will patch it in the currently maintained versions and let the folks at AWS know of this so they can act appropriately. Thank you very much for reporting this issue, for providing these very important bits of insight and for the patience. |
We have already fixed the issue with PRs #7261 and #7262 and we have notified the folks from AWS about it. Please let me know if there is anything that needs to be done from our end. |
Thank you @leonardo-albertovich, again really appreciate the quick turnaround. I think this resolves my issue. |
Bug Report
Describe the bug
When paired the fluent-bit 2.1.0 out-forward to fluent-bit 1.9.10 in-forward. A constant crash happens on the 1.9.10 side.
To Reproduce
stacktrace of the input side:
Expected behavior
Fluent-bit should not crash and should remain backward compatible unless otherwise stated.
Your Environment
Input:
Output:
Additional context
The input side of the service cannot be changed or upgraded as the version of 1.9.10 is latest one released by AWS.
Any workaround for configuring the output side or input side would be appreciated.
Issue was not observed with the 1.9.x releases running as the output service.
The text was updated successfully, but these errors were encountered: