data loss on sort -u
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coreutils (Debian) |
Fix Released
|
Unknown
|
|||
coreutils (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
Precise |
Fix Released
|
High
|
Colin Watson | ||
Quantal |
Fix Released
|
High
|
Colin Watson |
Bug Description
[Impact] In some corner cases, 'sort -u' loses data.
[Test Case] http://
[Regression Potential] It's coreutils, and a change to a vital system utility. The coreutils test suite should save us from the worst mistakes, but some paranoia would be justified. Perhaps booting a system with this change and using it for a day or two would be wise.
Original report follows:
Last year a bug was reported to upstream coreutils [1] about problems on using 'sort -u'. Until recently, there was no known reproducing process; one such process was published last week [2].
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 [3].
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 Oneiric.
[1] http://
[2] http://
[3] http://
description: | updated |
Changed in coreutils (Ubuntu Precise): | |
status: | New → Confirmed |
Changed in coreutils (Ubuntu Quantal): | |
status: | New → Confirmed |
Changed in coreutils (Ubuntu Precise): | |
importance: | Undecided → High |
milestone: | none → ubuntu-12.04.2 |
tags: | added: rls-q-incomming |
description: | updated |
tags: |
added: rls-q-incoming removed: rls-q-incomming |
Changed in coreutils (Debian): | |
status: | Unknown → New |
tags: | removed: rls-q-incoming |
Changed in coreutils (Ubuntu Precise): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in coreutils (Ubuntu Quantal): | |
assignee: | nobody → Colin Watson (cjwatson) |
description: | updated |
Changed in coreutils (Ubuntu Precise): | |
status: | Confirmed → In Progress |
Changed in coreutils (Debian): | |
status: | New → Fix Released |
I have run the test case from the bug report on all of hardy, lucid, natty, and oneiric (albeit in slightly stale chroots and only on i386) and have confirmed that none of them suffer from this bug.