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

rustc unexpected panic on rustc -Z unstable-options --pretty=expanded <file> | less #38396

Closed
joshlf opened this issue Dec 15, 2016 · 2 comments
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@joshlf
Copy link
Contributor

joshlf commented Dec 15, 2016

I ran rustc -Z unstable-options --pretty=expanded <file> on a source file to see whether a macro I'd written had worked properly. I got a lot of output, so I re-ran the command, piping the output to less. When I did this, less properly printed stdout to my terminal. When I quit less, I saw the following output of rustc's stderr:

error: internal compiler error: unexpected panic

note: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports

Surprisingly, the following did not result in a panic:

rustc -Z unstable-options --pretty=expanded <file> | less > tmp
rustc -Z unstable-options --pretty=expanded <file> | less | tee tmp

Here is the source file that I ran it on and the stdout from rustc when the panic occurred (as saved from the less session - see http://unix.stackexchange.com/questions/172624/how-do-i-write-all-lines-from-less-to-a-file): https://gist.github.com/joshlf/950a957e0107701940062a2a18d52ef6

Meta

rustc --version --verbose:
rustc 1.13.0 (2c6933a 2016-11-07)
binary: rustc
commit-hash: 2c6933a
commit-date: 2016-11-07
host: x86_64-apple-darwin
release: 1.13.0

less --version:
less 458 (POSIX regular expressions)
Copyright (C) 1984-2012 Mark Nudelman

less comes with NO WARRANTY, to the extent permitted by law.
For information about the terms of redistribution,
see the file named README in the less distribution.
Homepage: http://www.greenwoodsoftware.com/less

@steveklabnik steveklabnik added the I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️ label Dec 15, 2016
@nagisa
Copy link
Member

nagisa commented Dec 15, 2016

Duplicate of #34376

@steveklabnik
Copy link
Member

Yes. Thanks for reporting, @joshlf , let's track this over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

4 participants