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

bugtool: fix data race occurring when running commands #17916

Merged
merged 1 commit into from Nov 17, 2021

Conversation

rolinh
Copy link
Member

@rolinh rolinh commented Nov 17, 2021

A version of the classic closure with concurrency gotcha. Bind the value of cmd in the loop to a new variable to address the issue.

Fixes: #17915

@rolinh rolinh added release-note/bug This PR fixes an issue in a previous release of Cilium. area/bugtool Impacts gathering of data for debugging purposes. labels Nov 17, 2021
@rolinh rolinh requested a review from a team as a code owner November 17, 2021 11:17
@rolinh rolinh requested a review from twpayne November 17, 2021 11:17
A version of the classic closure with concurrency gotcha. Bind the value
of cmd in the loop to a new variable to address the issue.

Signed-off-by: Robin Hahling <robin.hahling@gw-computing.net>
@rolinh rolinh force-pushed the pr/rolinh/fix-bugtool-data-race branch from 8b0dec7 to cb70716 Compare November 17, 2021 12:06
@rolinh rolinh changed the title bugtool: fix data race occuring when running commands bugtool: fix data race occurring when running commands Nov 17, 2021
Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@tklauser tklauser added ready-to-merge This PR has passed all tests and received consensus from code owners to merge. needs-backport/1.9 labels Nov 17, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.6 Nov 17, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.9.12 Nov 17, 2021
@tklauser
Copy link
Member

#17546 which introduced the code in question was backported to 1.9 and 1.10, so marking this PR for backports as well.

@gandro gandro merged commit 690c112 into master Nov 17, 2021
@gandro gandro deleted the pr/rolinh/fix-bugtool-data-race branch November 17, 2021 16:45
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.6 Nov 23, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.9 in 1.9.12 Nov 26, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.9 to Backport done to v1.9 in 1.9.12 Nov 29, 2021
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.6 Nov 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/bugtool Impacts gathering of data for debugging purposes. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/bug This PR fixes an issue in a previous release of Cilium.
Projects
No open projects
1.10.6
Backport done to v1.10
1.9.12
Backport done to v1.9
Development

Successfully merging this pull request may close these issues.

CI: Data race in bugtool's runAll()
5 participants