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

Error failed printing to stdout: Broken pipe (os error 32) when piping to head or similar commands #2618

Open
adpaco-aws opened this issue Jul 23, 2023 · 0 comments
Labels
[C] Bug This is a bug. Something isn't working.

Comments

@adpaco-aws
Copy link
Contributor

I tried this code:

#[kani::proof]
fn dummy() {
    assert!(1 + 1 == 2);
}

using the following command line invocation:

 kani dummy-file.rs | head -n 1

with Kani version: 0.32.0

I expected to see this happen: All lines filtered except for the first one

Instead, this happened:

thread '<unnamed>' panicked at 'failed printing to stdout: Broken pipe (os error 32)', library/std/src/io/stdio.rs:1019:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Looks like this affects many Rust projects, see rust-lang/rust#46016

@adpaco-aws adpaco-aws added the [C] Bug This is a bug. Something isn't working. label Jul 23, 2023
@adpaco-aws adpaco-aws mentioned this issue Jul 28, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C] Bug This is a bug. Something isn't working.
Projects
None yet
Development

No branches or pull requests

1 participant