-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Break the loop #92589
Break the loop #92589
Conversation
A missing break statement lead to an infinite loop in bootstrap.py.
(rust-highfive has picked a reviewer for you, use r? to override) |
@bors r+ rollup |
📌 Commit 014f22a has been approved by |
…lacrum Break the loop A missing break statement lead to an infinite loop in bootstrap.py. I also added a short sleep so it's not constantly running at 100%. But I can remove that if it's not wanted. Fixes rust-lang#76661
…lacrum Break the loop A missing break statement lead to an infinite loop in bootstrap.py. I also added a short sleep so it's not constantly running at 100%. But I can remove that if it's not wanted. Fixes rust-lang#76661
I don't think the extra sleep statement is needed: sqlite3 already waits diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index dc44b27c2a6..496a4dad898 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -41,7 +41,7 @@ def acquire_lock(build_dir):
curs = con.cursor()
while True:
try:
- curs.execute("BEGIN EXCLUSIVE")
+ return curs.execute("BEGIN EXCLUSIVE")
except sqlite3.OperationalError:
pass
return curs Don't know when or how that return got dropped, sorry about that. >,> |
@bors r- Good catch on returning the lock. |
Oh, actually, no -- we'll already return the cursor after leaving the loop, so that seems handled. I think the extra sleep seems OK for now. @bors r+ |
📌 Commit 014f22a has been approved by |
@worldeva sorry if I'm stepping on your toes. I ran into this issue and someone suggested I submit a quick fix. I don't mind at all if you want to follow up with a PR to improve my changes, |
@bors p=1 (this bug is a big pain so it'd be good to get it fixed soon) |
⌛ Testing commit 014f22a with merge c8bee0001e8506c6ab218bf8df6fe61091ae0dce... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💥 Test timed out |
@ChrisDenton Nop, its fine- I just somehow forgot how my own code worked, haha... Thanks for catching that :p |
@bors retry |
…lacrum Break the loop A missing break statement lead to an infinite loop in bootstrap.py. I also added a short sleep so it's not constantly running at 100%. But I can remove that if it's not wanted. Fixes rust-lang#76661
…askrgr Rollup of 8 pull requests Successful merges: - rust-lang#91055 (return the correct type for closures in `type_of`) - rust-lang#92207 (Delay remaining `span_bug`s in drop elaboration) - rust-lang#92417 (Fix spacing and ordering of words in pretty printed Impl) - rust-lang#92504 (Exit nonzero on rustc -Wall) - rust-lang#92559 (RustWrapper: adapt to new AttributeMask API) - rust-lang#92589 (Break the loop) - rust-lang#92607 (rustc_metadata: Some minor cleanups and optimizations) - rust-lang#92620 (Remove unused `ExtendDefault` struct) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
A missing break statement lead to an infinite loop in bootstrap.py.
I also added a short sleep so it's not constantly running at 100%. But I can remove that if it's not wanted.
Fixes #76661