Open russelltg opened 6 months ago
I couldn't reproduce it with the latest nightly build. Is this still an issue?
Yeah, the reproducer I posted earlier seems to be fixed. However, the bug does still exist. New reproducer:
// Cargo.toml
// [package]
// name = "conflicting_weak_bug"
// version = "0.1.0"
// edition = "2021"
// [dependencies]
// tokio = { version = "1.39.2", features = ["rt-multi-thread"] }
fn main() {
let _ = tokio::runtime::Builder::new_multi_thread()
.build()
.unwrap();
}
Tested with 1.82.0-nightly (64ebd39da 2024-08-03)
+ MSVC 14.40.33807
This was actually my original reproducer, but I minimized it to hyper to have it be simpler.
I am encountering the same issue in an app with a multi-threaded tokio runtime (although my version of the error message shows a symbol conflict between a different library and my main executable)
I tried this code:
With
RUSTFLAGS=-Zsanitizer=address
, I runcargo +nightly build --target=x86_64-pc-windows-msvc
I expected to see this happen: build succeeds
Instead, this happened: Build fails:
Seems somwhat similar to https://github.com/rust-lang/rust/issues/85461, however setting
-Ccodegen-units=1
does not workaround the issue.Meta
rustc --version --verbose
:MSVC version 14.39.33519