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
Cargo freezes at Building stage with version 1.46.0 #77094
Comments
Can you obtain call stack for hanged process? |
As indicated in the issue above, its the build process that hangs when using "cargo build" command, "cargo run" executes the process after several minutes though. So it doesn't seem to be an issue with the process. |
@octave99 Can you provide the code used to reproduce this issue? |
I have similar issue - cargo 1.46 hangs on last building stage. |
This looks very similar to #76980, can folks encountering this problem confirm they have proc macros with C++ code in their dependencies? |
Mmm, very hard question, at least for me.
|
|
|
There is C++ in A debugger call stack for the hung process would still be helpful too. You replied before that this freezes in But it's not completely stuck, just takes much longer than you expect? That suggests some scalability problem in rustc/llvm. |
@octave99 @invis87 Could you try the pre-release which may have a fix for this? Instructions at https://blog.rust-lang.org/inside-rust/2020/10/07/1.47.0-prerelease-2.html |
@octave99 @invis87 Is this still an issue with Rust 1.47.0? |
I don't have it anymore |
Without confirmation from @octave99 I'm not inclined to close just yet -- I suspect the underlying problems may (at least plausibly) be different. |
I can notice the issue even with the latest version 1.47.0 but everything works seamlessly with 1.45.2 and also with 1.48.0-beta.8, so hopefully 1.48.0 release should fix this issue. Just in case it helps in someway, below are the crates in use: [dependencies] [dependencies.log] [dependencies.env_logger] [dependencies.fern] [dependencies.rust-argon2] [dependencies.serde] [dependencies.serde_json] [dependencies.chrono] [dependencies.actix-web] [dependencies.actix-cors] [dependencies.actix] [dependencies.actix-web-actors] [dependencies.bb8] [dependencies.bb8-postgres] [dependencies.futures] [dependencies.tokio] [dependencies.lazy_static] [dependencies.uuid] [dependencies.regex] There are few additional and small internal crates which I am unable to share. |
I can confirm that 1.48.0 release solved this issue for me. Thank you. |
When I execute my binary using latest rust version, "cargo run" freezes at Building stage and executes the binary after several minutes. But when I revert the rust version to 1.45.2 without any other change, it works just fine.
Step 1.
rustup default 1.46.0
rustc --version --verbose
:Step 2.
RUST_BACKTRACE=1 cargo build
Compiling asapi v0.1.0 (/media/asapi)
Building [====================================================> ] 393/394
Result: Freezes for several minutes
Step 3.
rustup default 1.45.2
rustc --version --verbose
:Step 4.
RUST_BACKTRACE=1 cargo build
Compiling asapi v0.1.0 (/media/asapi)
Finished dev [unoptimized + debuginfo] target(s) in 1m 18s
Result: Works just fine
OS Info:
Distributor ID: Debian
Description: Debian GNU/Linux 10 (buster)
Release: 10
Codename: buster
The text was updated successfully, but these errors were encountered: