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

Possible race condition in SubprocessFactory.finished() #11720

Closed
larsrc-google opened this issue Jul 7, 2020 · 2 comments
Closed

Possible race condition in SubprocessFactory.finished() #11720

larsrc-google opened this issue Jul 7, 2020 · 2 comments
Labels
P2 We'll consider working on this in future. (Assignee optional) stale Issues or PRs that are stale (no activity for 30 days) team-Local-Exec Issues and PRs for the Execution (Local) team type: bug

Comments

@larsrc-google
Copy link
Contributor

Description of the problem / feature request:

In SubprocessFactory.finished(), there's a check for exceeding the deadline, which may call process.destroy(). process.destroy() might not destroy the process, or process.isAlive() might return true for a bit longer.

Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.

I haven't yet tried reproducing.

What operating system are you running Bazel on?

This potentially applies to all non-Windows OSes, but depends a lot on how process.destroy() actually works.

What's the output of bazel info release?

Code has been there since 0.14.0 (d3de5cc)

If bazel info release returns "development version" or "(@Non-Git)", tell us how you built Bazel.

N/A

What's the output of git remote get-url origin ; git rev-parse master ; git rev-parse HEAD ?

N/A

Have you found anything relevant by searching the web?

#6860 is somewhat related.

Any other information, logs, or outputs that you want to share?

Probably need to do a waitFor() to prevent the race.
It's unclear if this actually affects anything, philwo@ probably knows best.

@gregestren gregestren added team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website type: bug untriaged labels Jul 7, 2020
@philwo philwo added team-Local-Exec Issues and PRs for the Execution (Local) team and removed team-OSS Issues for the Bazel OSS team: installation, release processBazel packaging, website labels Dec 8, 2020
@meisterT meisterT added P2 We'll consider working on this in future. (Assignee optional) and removed untriaged labels Feb 10, 2021
@github-actions
Copy link

Thank you for contributing to the Bazel repository! This issue has been marked as stale since it has not had any activity in the last 2+ years. It will be closed in the next 14 days unless any other activity occurs or one of the following labels is added: "not stale", "awaiting-bazeler". Please reach out to the triage team (@bazelbuild/triage) if you think this issue is still relevant or you are interested in getting the issue resolved.

@github-actions github-actions bot added the stale Issues or PRs that are stale (no activity for 30 days) label Apr 26, 2023
@larsrc-google
Copy link
Contributor Author

Still the case, still not obvious if it affects anything in practice. Closing until we get some indication that it is an issue.

@brentleyjones brentleyjones closed this as not planned Won't fix, can't repro, duplicate, stale Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 We'll consider working on this in future. (Assignee optional) stale Issues or PRs that are stale (no activity for 30 days) team-Local-Exec Issues and PRs for the Execution (Local) team type: bug
Projects
None yet
Development

No branches or pull requests

5 participants