Skip to content

rustc(with --enable-debuginfo) hangs for 20-45 seconds on errors(of any kind) when RUST_BACKTRACE is set #29293

Closed
@ghost

Description

EDIT: when env var RUST_BACKTRACE is set to any value (even empty) [it was set to 1 for me here]
EDIT2: I had rust compiled with --enable-debuginfo; when compiled with --disable-debuginfo then it only takes 10 times more time than normal: that is, 0.6sec instead of 0.05 sec

$ time rustc -VV
error: Option 'version' given more than once.

real    0m47.717s
user    0m47.273s
sys 0m0.250s
$ time rustc -Vv
rustc 1.5.0-dev (04e497c00 2015-10-24)
binary: rustc
commit-hash: 04e497c0056aed899cd6edbc98e7a68a9b391c5c
commit-date: 2015-10-24
host: x86_64-unknown-linux-gnu
release: 1.5.0-dev

real    0m0.068s
user    0m0.017s
sys 0m0.030s

I thought the culprit was cargo at first: rust-lang/cargo#2079 but nope.

Metadata

Metadata

Assignees

No one assigned

    Labels

    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