Bug 1292819

Summary: sort sorts different
Product: [Fedora] Fedora Reporter: Marcus Moeller <marcus.moeller>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: admiller, kdudka, kzak, ooprala, ovasik, pbrady, p, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-18 13:40:04 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
sorted list created on 8.22
none
sorted list created on 8.23 none

Description Marcus Moeller 2015-12-18 12:32:09 UTC
Description of problem:
On one machine we have got coreutils 8.22-15 and on another machine we have got 8.23-10.

We are executing a sort on a list of checksums on both machines. The input data is the same, but the result is different when it contains two or more files with the same checksum.

I have attached two files for both versions. The output has been created with the following command:

find . -type f -exec md5sum {} \; | sort

Comment 1 Marcus Moeller 2015-12-18 12:32:39 UTC
Created attachment 1107117 [details]
sorted list created on 8.22

Comment 2 Marcus Moeller 2015-12-18 12:33:33 UTC
Created attachment 1107118 [details]
sorted list created on 8.23

Comment 3 Pádraig Brady 2015-12-18 13:40:04 UTC
The two attachments are different due to different inputs,
rather than different sorting order:

--- 8.22.txt
+++ 8.23.txt
+be61b01fd8631d488c5a17d8c4b00146  ./.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi
-c6ede12325019d608f28dee4165fa814  ./.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi


BTW your checksum will proceed faster by minimizing the number of md5sum processes by using '+' in your command rather than '\;'

Comment 4 Marcus Moeller 2015-12-18 13:54:57 UTC
Thanks for taking care and sorry for the noise.