Skip to content
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

Memory leakage while compiling imgui-ext on nightly #68600

Closed
tombuchholz opened this issue Jan 28, 2020 · 3 comments
Closed

Memory leakage while compiling imgui-ext on nightly #68600

tombuchholz opened this issue Jan 28, 2020 · 3 comments
Labels
C-bug Category: This is a bug. E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@tombuchholz
Copy link

tombuchholz commented Jan 28, 2020

Trying cargo build inside of https://github.com/germangb/imgui-ext using

toolchain: nightly-x86_64-unknown-linux-gnu
version: rustc 1.4.2.0-nightly
distribution: arch linux
kernel: 5.4.15-arch1-1

does eat up memory (>28GB) until OS kills it.
On stable toolchain compiling works as expected.

Meta

rustc --version --verbose:
rustc 1.42.0-nightly (8a79d08 2020-01-27)
binary: rustc
commit-hash: 8a79d08
commit-date: 2020-01-27
host: x86_64-unknown-linux-gnu
release: 1.42.0-nightly
LLVM version: 9.0

@jonas-schievink jonas-schievink added C-bug Category: This is a bug. E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. I-nominated labels Jan 28, 2020
@matthiaskrgr
Copy link
Member

I get the same compiling backtrace-sys.

@matthiaskrgr
Copy link
Member

perf top shows high cpu utilization by cargo::util::progress::State::tick and it is actually cargo that consumes all the memory.
This is probably rust-lang/cargo#7840

@jonas-schievink
Copy link
Contributor

Oh yeah this is just the Cargo thing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug. E-needs-bisection Call for participation: This issue needs bisection: https://github.com/rust-lang/cargo-bisect-rustc E-needs-mcve Call for participation: This issue has a repro, but needs a Minimal Complete and Verifiable Example I-compilemem Issue: Problems and improvements with respect to memory usage during compilation. regression-from-stable-to-nightly Performance or correctness regression from stable to nightly. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

3 participants