-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
rustc hangs and takes increasing amounts of memory when compiling json crate as dependency #89647
Copy link
Copy link
Closed
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Milestone
Metadata
Metadata
Assignees
Labels
A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.Category: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.regression-from-stable-to-stablePerformance or correctness regression from one stable version to another.Performance or correctness regression from one stable version to another.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Reproduction:
cd webcargo build --release --verbose -j1 --target=wasm32-unknown-unknownResult: under a minute into the build, the compiler hangs when compiling the
jsondependency, taking increasingly more memory; after 40s it spiked to 1GB, then 2GB and more. Thejsoncrate is tiny with no dependencies of its own, normally it should take <5s to build.Weirdly, I cannot reproduce it when building the
jsoncrate's repo on its own, but I may be missing some build configuration difference.Reproduced on builds starting with
nightly-2021-09-26(rustc 1.57.0-nightly (addb4da68 2021-09-25)), it works fine on earlier build. Also someone else managed to reproduce this on latest nightly too.