-
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
Strange deadlock bug on Rust nightly #36294
Labels
A-concurrency
Area: Concurrency
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Comments
This is more minimised: use std::sync::{Arc, Mutex};
use std::any::Any;
fn main() {
loop {
drop(foo());
}
}
fn foo() -> Box<Mutex<Any>> {
Box::new(Mutex::new(0u32)) as Box<Mutex<Any>>
} This tries to take a futex in a single threaded program for some reason:
Only fails at optimisation levels 0 and 1, but not 2 or 3. Also doesn’t fail if inner data is |
This looks like it might be #36278. |
brson
added
A-libs
A-concurrency
Area: Concurrency
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
labels
Sep 7, 2016
pnkfelix
added a commit
to pnkfelix/rust
that referenced
this issue
Sep 8, 2016
Manishearth
added a commit
to Manishearth/rust
that referenced
this issue
Sep 10, 2016
…eddyb When sizing DST, don't double-count nested struct prefixes. When computing size of `struct P<T>(Q<T>)`, don't double-count prefix added by `Q` Fix rust-lang#36278. Fix rust-lang#36294.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-concurrency
Area: Concurrency
regression-from-stable-to-nightly
Performance or correctness regression from stable to nightly.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
rustc 1.13.0-nightly (91f057de3 2016-09-04)
This runs forever on Rust stable (1.11) but hangs on Rust nightly.
Reduced case:
The text was updated successfully, but these errors were encountered: