[Bug 1038468] Re: data loss on sort -u
Launchpad Bug Tracker
1038468 at bugs.launchpad.net
Mon Sep 10 13:15:09 UTC 2012
This bug was fixed in the package coreutils - 8.13-3.2ubuntu1
coreutils (8.13-3.2ubuntu1) quantal; urgency=low
* Resynchronise with Debian. Remaining changes:
-  Make 'uname -i -p' return the real processor/hardware, instead of
- Build-depend on gettext:any instead of on gettext, so that apt-get can
properly resolve build-dependencies on the tool when cross-building.
* Backport upstream patches to fix data-loss and free-memory read bugs in
'sort -u' (LP: #1038468).
coreutils (8.13-3.2) unstable; urgency=low
* Non-maintainer upload.
* Don't declare separate build-arch/build-indep targets when they just
fall through to the same common build rule, since they don't have correct
target dependencies themselves. Closes: #670481.
* Enable hardening build flags. Thanks to Moritz Muehlenhoff for the
patch. Closes: #653743.
* debian/patches/99_Werror-format-string.dpatch: fix the gnulib test suite
so that it doesn't fail to build with hardening flags on.
* Mark coreutils Multi-Arch: foreign. Thanks to Colin Watson.
cherry-pick from upstream to fix a build failure whenever the build
system happens to be holding an fd open, as happens when running in
certain environments (e.g., Lucas's test rebuild farm, or bzr-builddeb).
-- Colin Watson <cjwatson at ubuntu.com> Mon, 10 Sep 2012 14:07:50 +0100
** Changed in: coreutils (Ubuntu Quantal)
Status: Confirmed => Fix Released
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to coreutils in Ubuntu.
data loss on sort -u
Status in “coreutils” package in Ubuntu:
Status in “coreutils” source package in Precise:
Status in “coreutils” source package in Quantal:
Status in “coreutils” package in Debian:
Last year a bug was reported to upstream coreutils  about problems
on using 'sort -u'. Until recently, there was no known reproducing
process; one such process was published last week .
Although triggering the bug can be said to be a non-completely trivial
use case, data loss in 'sort' should be looked at as a serious issue.
Today Jim Meyering committed what looks like the final touches of the
fix (incidentally also solving a different issue (a free memory read),
also in 'sort'. There are 4 commits affected, and they are shown
starting in .
Given this is a data loss potential, I am opening this bug for all
affected releases (this bug affects Coreutils 8.6 onwards -- Precise
and Quantal). I am still to run the tests on Lucid, Natty, and
To manage notifications about this bug go to:
More information about the foundations-bugs