Skip to content

Infinite loop and enormous memory consumption when building release #50323

Closed
@khuey

Description

@khuey

Check out https://github.com/khuey/cpp_demangle/tree/experimental.

cargo build works fine.
cargo build --release seems to go into an iloop and burn through memory (I gave it 10 minutes of CPU and 16GB of memory before I killed it).

The previous commit works fine, so something in khuey/cpp_demangle@df43ff0 is triggering it.

I see this on both stable and latest nightly.

rustc -V --verbose
rustc 1.25.0 (84203cac6 2018-03-25)
binary: rustc
commit-hash: 84203cac67e65ca8640b8392348411098c856985
commit-date: 2018-03-25
host: x86_64-unknown-linux-gnu
release: 1.25.0
LLVM version: 6.0
rustc -V --verbose
rustc 1.27.0-nightly (66363b288 2018-04-28)
binary: rustc
commit-hash: 66363b288141ed2af4b95fb4205a56dce6248363
commit-date: 2018-04-28
host: x86_64-unknown-linux-gnu
release: 1.27.0-nightly
LLVM version: 6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LLVMArea: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.C-enhancementCategory: An issue proposing an enhancement or a PR with one.E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.I-hangIssue: The compiler never terminates, due to infinite loops, deadlock, livelock, etc.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions