Skip to content

find/xargs --help/--version >/dev/full panics #622

Closed

Description

@oech3
$ target/debug/find --version > /dev/full

thread 'main' (19061) panicked at library/std/src/io/stdio.rs:1165:9:
failed printing to stdout: No space left on device (os error 28)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Activity

  1. leeewee commented on Jul 16, 2026

    @leeewee
    Contributor

    The find half of this is fixed by #656, but the xargs half is still present.

    $ find --version > /dev/full
    find: No space left on device (os error 28)
    $ echo $?
    1                                    # fixed
    
    $ xargs --help > /dev/full
    thread 'main' panicked at library/std/src/io/stdio.rs:1165:9:
    failed printing to stdout: No space left on device (os error 28)
    $ echo $?
    101                                  # still panics
    
    $ xargs --version > /dev/full
    thread 'main' panicked at library/std/src/io/stdio.rs:1165:9: ...
    $ echo $?
    101                                  # still panics
    
    $ printf 'hello world\n' | xargs > /dev/full
    thread 'main' panicked at library/std/src/io/stdio.rs:1165:9:
    failed printing to stdout: No space left on device (os error 28)
    $ echo $?
    101
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions