Skip to content

rustc hangs and takes increasing amounts of memory when compiling json crate as dependency #89647

Description

@adrian17

Reproduction:

Result: under a minute into the build, the compiler hangs when compiling the json dependency, taking increasingly more memory; after 40s it spiked to 1GB, then 2GB and more. The json crate is tiny with no dependencies of its own, normally it should take <5s to build.

Weirdly, I cannot reproduce it when building the json crate'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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-bugCategory: This is a bug.T-compilerRelevant 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.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions