-
Notifications
You must be signed in to change notification settings - Fork 1.5k
lib/promscrape: chunkedbuffer double-free #9466
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
Conversation
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.
LGTM
@fxrlv nice catch! Could you please mention bugfix at changelog? It looks like a serious bug to me, which could lead to data races and data loss. |
Issue was introduced at |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #9466 +/- ##
==========================================
- Coverage 60.37% 54.90% -5.48%
==========================================
Files 411 522 +111
Lines 76609 81676 +5067
==========================================
- Hits 46253 44844 -1409
- Misses 27794 34443 +6649
+ Partials 2562 2389 -173 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Sure, done |
Thanks for contribution! |
The bugfix has been included into v1.122.0. |
Such typos seem like a good candidate for |
Describe Your Changes
The chunkedbuffer is released twice, leading to concurrent use of the buffer after it's acquired from a pool by two different goroutines.
Checklist
The following checks are mandatory: