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

filter plugin causes segfault in some cases #171

Closed
nokute78 opened this issue Feb 2, 2017 · 2 comments
Closed

filter plugin causes segfault in some cases #171

nokute78 opened this issue Feb 2, 2017 · 2 comments

Comments

@nokute78
Copy link
Collaborator

nokute78 commented Feb 2, 2017

I tested filter plugin and I found it causes segfault in some cases.

no options for filter plugin

These commands cause segfault. Because "match" is NULL.

$ fluent-bit -i cpu -o stdout -F stdout

and

$ fluent-bit -i cpu -o stdout -F stdout -m '*'

Is option '-m' for only output plugins?

Grep plugin also causes.

$ fluent-bit -i cpu -o stdout -F grep

parse error at set_rules

Illegal property (regex=aaa in this case)causes segfault.
This is a no regular expression error.

$ fluent-bit -i cpu -o stdout -F grep -p "match=*" -p "regex=aaa"
edsiper added a commit that referenced this issue Feb 2, 2017
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
edsiper added a commit that referenced this issue Feb 2, 2017
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
edsiper added a commit that referenced this issue Feb 2, 2017
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
edsiper added a commit that referenced this issue Feb 2, 2017
Signed-off-by: Eduardo Silva <eduardo@treasure-data.com>
@edsiper
Copy link
Member

edsiper commented Feb 2, 2017

thanks for reporting the errors, all of them are fixed now.

@edsiper edsiper closed this as completed Feb 2, 2017
@nokute78
Copy link
Collaborator Author

nokute78 commented Feb 3, 2017

Thank you for fixing.
It works correctly!

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

No branches or pull requests

2 participants