bug(tail): when the filename is `/dev/drm_dp_aux2` panics
Open
Nobody has claimed this yet.
U - tail
- Dominant language
- Rust
- Stars
- 24.1k
- Forks
- 2k
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 365
Description
Hi, uutils mainteners
we confirmed the tail utility panics when the filename is /dev/drm_dp_aux2
relunsec@relunsec:~/software/coreutils/target/debug$ sudo ./tail /dev/drm_dp_aux2
thread 'main' (95275) panicked at src/uu/tail/src/chunks.rs:94:14:
called `Result::unwrap()` on an `Err` value: Os { code: 110, kind: TimedOut, message: "Connection timed out" }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
relunsec@relunsec:~/software/coreutils/target/debug$ sudo gnutail /dev/drm_dp_aux2
gnutail: error reading '/dev/drm_dp_aux2': Connection timed out
relunsec@relunsec:~/software/coreutils/target/debug$
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at src/uu/tail/src/chunks.rs:94 and reproduce the panic with tail /dev/drm_dp_aux2. Inspect how the timed-out read error is handled there, then compare the result with GNU tail's error behavior. Done means tail reports the read failure without panicking.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 58/100