Skip to content

strace -e inject=getrandom:error=EAGAIN shuf -i 1-9 panics #11152

Closed

Description

@oech3
$ strace -o /dev/null -e inject=getrandom:error=EAGAIN shuf -i 1-9

thread 'main' (2788) panicked at /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rand-0.9.2/src/rngs/thread.rs:124:17:
could not initialize ThreadRng: Resource temporarily unavailable (os error 11)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
fish: Job 1, 'strace -o /dev/null -e inject=g…' terminated by signal SIGABRT (Abort)

Activity

  1. oech3 commented on Feb 28, 2026

    @oech3
    ContributorAuthor

    It seems rand::rng() cannot catch the err by its design.

  2. oech3 commented on Feb 28, 2026

    @oech3
    ContributorAuthor

    Note for contributor: GNU decided to accept fallback support at its test suite and busybox do that.

    coreutils/coreutils#205 (comment)

  3. oech3 commented on Jun 22, 2026

    @oech3
    ContributorAuthor

    Needed for Ubuntu 26 runner

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions