-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Stdout does panic in pipe #35108
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
Comments
As the The 2nd program likely finishes because it manages to write all of its stuff before It seems to me that its working as it should be working. |
Oh, thank you very much. I get it. It sounds natural to handle exceptions neatly when bytes to write are to be greater than the buffer size of pipeline (maybe 1024?). This means that print! or write! macro family is not good to use in pipeline because they cannot catch the errors, right? |
|
That reminds me! Thank you, nagisa-san. |
In my short research, "wc" command in coreutils projict and exa at least have this panic problem. |
In a 64-bit Linux box, the code below fails to write, and dies with a panic message only in a pipeline.
On the other hand, following two codes work with no trouble.
What's happened?
It seems to be a buggy behaviour.
( rustc version is 1.12.0-nightly (feeca94 2016-07-26) )
The text was updated successfully, but these errors were encountered: