Skip to content

rustc hangs when RUST_BACKTRACE is on #38595

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
oconnor663 opened this issue Dec 24, 2016 · 2 comments
Closed

rustc hangs when RUST_BACKTRACE is on #38595

oconnor663 opened this issue Dec 24, 2016 · 2 comments

Comments

@oconnor663
Copy link
Contributor

Rustc hangs for almost 20 seconds when trying to compile an empty file, but only when RUST_BACKTRACE is on.

$ touch /tmp/empty.rs

$ export RUST_BACKTRACE=0
$ time rustc /tmp/empty.rs
error: main function not found

error: aborting due to previous error


real    0m0.073s
user    0m0.057s
sys     0m0.010s


$ export RUST_BACKTRACE=1
$ time rustc /tmp/empty.rs
error: main function not found

error: aborting due to previous error


real    0m18.557s
user    0m18.497s
sys     0m0.057s

$ rustc --version
rustc 1.14.0 (e8a012324 2016-12-16)
@retep998
Copy link
Member

Dupe of #37477?

@sfackler sfackler closed this as completed Jan 6, 2017
@sfackler
Copy link
Member

sfackler commented Jan 6, 2017

Closing as dup

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants