-
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
service crash with panic: slice bounds out of range #3001
Comments
Also, this panic may have been referenced on #2488 but the request to open a new issue seems to have never been done. |
Can you check if it panics again if you replay the same logs? You will probably need to use |
I'm making a instrumented build that will improve the logging here if it panics, it will be a little slower than the 1.3.3 but otherwise the same. Would it be possible for you to use it until you get another crash? |
I am trying to replay the same log from a different server with debug logging. I will report back with the results of that. Since this is crashing pretty regularly for us, I would be happy to run a custom build. |
I added this code: 5a56291 I think this should be enough to determine if the bug is in logparser or in the metrics code. Here is an linux amd64 build: https://7429-33258973-gh.circle-artifacts.com/0/tmp/circle-artifacts.cD2V8ru/telegraf.gz |
Thank you. I will try to get that installed (although perhaps tomorrow) Some additional good news, I was able to recreate the panic on a second machine with the same log and my pasted config. |
Great, so long as we can reproduce it then it shouldn't be too hard to fix. |
I had just enough time to kick off a run before I left for the day.
|
Right on! Thanks for the quick turnaround. I look forward to 1.3.4! |
I hope to have it out tomorrow, if you need a build of the 1.3 branch with the fix you can use https://7437-33258973-gh.circle-artifacts.com/0/tmp/circle-artifacts.XAvjpJX/telegraf.gz Thanks for the help with this bug! |
Bug report
Relevant telegraf.conf:
Apologies if not all of this is relevant.
System info:
Telegraf v1.3.3 (git: release-1.3 46db92a)
Amazon Linux latest
Steps to reproduce:
Expected behavior:
Telegraf does not crash
Actual behavior:
After running for some number of hours, telegraf will crash with
panic: runtime error: slice bounds out of range
Additional info:
I glanced over the code but couldn't quite tell where the error bottomed out. I thought perhaps our custom log pattern was at the source of the issue but the only float field is the HTTP version and they are all 1.1
The text was updated successfully, but these errors were encountered: