Bug 1292819 - sort sorts different
Summary: sort sorts different
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: coreutils
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-12-18 12:32 UTC by Marcus Moeller
Modified: 2015-12-18 13:54 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-12-18 13:40:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
sorted list created on 8.22 (5.22 KB, text/plain)
2015-12-18 12:32 UTC, Marcus Moeller
no flags Details
sorted list created on 8.23 (5.22 KB, text/plain)
2015-12-18 12:33 UTC, Marcus Moeller
no flags Details

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.


Note You need to log in before you can comment on or make changes to this bug.