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 --print crashes for some options when piped into a process not listening on STDIN #44492

Closed
mcdenhoed opened this issue Sep 11, 2017 · 2 comments

Comments

@mcdenhoed
Copy link

Some options for the command rustc --print cause a panic when the output of the command is piped into a process not listening for input on STDIN.

Steps to Reproduce

The following commands will crash:

  • rustc --print cfg | echo "test"
  • rustc --print target-list | echo "test"
  • rustc --print relocation-models | echo "test"
  • rustc --print code-models | echo "test"

Meta

I've seen this in the following versions:

  • rustc 1.22.0-nightly (dead08cb3 2017-09-08) running on x86_64-apple-darwin
  • rustc 1.20.0 (f3d6973f4 2017-08-27) running on x86_64-apple-darwin
@mcdenhoed mcdenhoed changed the title rustc --print crashes for sometimes when piped into a process not listening on STDIN rustc --print crashes for some options when piped into a process not listening on STDIN Sep 11, 2017
@zackmdavis
Copy link
Member

Duplicate of #34376?

@sfackler
Copy link
Member

Yep, closing as a dupe of #34376.

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

No branches or pull requests

3 participants