-
Notifications
You must be signed in to change notification settings - Fork 5.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
fix(inputs.conntrack): resolve segfault when setting collect field #12603
Conversation
da51c85
to
b2e327d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking the time to put this up with a fix. Can you take a look at my two comments?
872f430
to
d06b036
Compare
@powersj Thanks for looking into this. I'm sorry, the first PR was simply bad. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice PR @deric! Just one small comment for the Init()
code...
Download PR build artifacts for linux_amd64.tar.gz, darwin_amd64.tar.gz, and windows_amd64.zip. 👍 This pull request doesn't change the Telegraf binary size 📦 Click here to get additional PR build artifactsArtifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. Thanks for the quick update @deric!
Enabling stats feature in
conntrack
input by settingcollect
field (affected versionsv1.25.0
,v1.25.1
) causes segfaultminimal config:
fixes: #8955
The
c.ps
variable was not properly initialized, however during tests we're passing a mock instance, so this error was not covered by automated tests.collect
config is usedcollect
array is checked for supported valuesGather()
method toInit()
system.PS
initialization