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

Julian Andres Klode 2133156 at bugs.launchpad.net
Tue Dec 2 10:04:28 UTC 2025


** Changed in: rust-coreutils (Ubuntu)
       Status: New => Triaged

** Changed in: rust-coreutils (Ubuntu)
   Importance: Undecided => High

-- 
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:
  Triaged
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