[Bug 2133156] Re: echo 1 | sort | head -n0: sort: write failed: 'standard output': Broken pipe

Paride Legovini 2133156 at bugs.launchpad.net
Thu Nov 27 17:04:41 UTC 2025


Thanks for this bug report. This is a rust-coreutils regression, I
tweaked the bug accordingly.

** Summary changed:

- dpigs shows a "write failed" error after its output
+ echo 1 | sort | head -n0: sort: write failed: 'standard output': Broken pipe

** Package changed: debian-goodies (Ubuntu) => rust-coreutils (Ubuntu)

** Also affects: rust-coreutils (Ubuntu Questing)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to rust-coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/2133156

Title:
  echo 1 | sort | head -n0: sort: write failed: 'standard output':
  Broken pipe

Status in rust-coreutils package in Ubuntu:
  New
Status in rust-coreutils source package in Questing:
  New

Bug description:
  dpigs produces its output, then shows an error:

      sort: write failed: 'standard output': Broken pipe

  dpigs end with a 'sort | head' pipeline. This error is due to sort's
  new behaviour in rust-coreutils when being passed into a pipe that's
  closed mid-write, which is exactly what head does.

  Minimally, this is reproducible with:

      $ echo 1 | sort | head -n0
      sort: write failed: 'standard output': Broken pipe

  This is either a latent bug in dpigs or a regression in rust-
  coreutils.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2133156/+subscriptions




More information about the foundations-bugs mailing list