Hi folks,Received this defect report from a Cygwin user running the STC in a 32cpu AWS VM (without any memory info, but should be substantial with that config):
On Wed, 18 Nov 2026 14:17:56 +0000, Tim Harding via Cygwin wrote:
Summary: In diffutils 3.12-1 on 64-bit Cygwin, diff reports two genuinely different files as identical (exiting with status 0 and producing no output) when the files contain ~410 million lines (~11 GB). cmp detects the difference immediately, and sparse files of the same 11 GB byte size with only 1-2 lines also work properly, indicating the failure is triggered by high line counts or non-sparse buffer allocation/indexing rather than raw file size alone. Minimal Reproducer: bash yes "01234567890123456789012345" | head -n 410000000 > test1 cp test1 test2 echo "A" >> test1 echo "B" >> test2 diff -q test1 test2 echo "diff exit: $?" # Outputs 0 (incorrect; expected 1) cmp -b test1 test2 # Correctly detects the difference at the final line Use code with caution. Expected Behavior: diff -q should exit with 1 (files differ), or if hitting a memory/resource ceiling, fail with an error message and exit with 2. Silently exiting 0 causes false-positive equality checks on large datasets. Attached is cygcheck -s -v -r output (slightly trimmed to remove environment variables with private info) — Tim Harding Principal Data Scientist Precisely.com tel:+44-131-619-2043 mailto:"TimSPHarding"SP<timDOThardingATpreciselyDOTcom>
... > Syncsort Limited is a limited company registered in England and Wales. ... > Problem reports: https://cygwin.com/problems.html
$ grep -i '[GKM]B\|cmp\|diff\|AWS' ~/Downloads/cygcheck.out
C:\Program Files\Amazon\AWSCLIV2
NUMBER_OF_PROCESSORS = '32'
c: hd NTFS 204796Mb 83% CP CS UN PA FC QU System
e: hd NTFS 33554359Mb 57% CP CS UN PA QU Data
h: hd NTFS 905987Mb 1% CP CS UN PA FC QU
diffutils 3.12-1 OK
The Cygwin release has been available since the week of its GNU release and the only other recent report of an issue involved not ignoring multiple trailing blanks in multibyte locales with option -iBZ rather than -iBb, which I could not reproduce with any options or locales in my environment:
https://cygwin.com/pipermail/cygwin/2026-September/260076.html
--
Take care. Thanks, Brian Inglis Calgary, Alberta, Canada
La perfection est atteinte Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher but when there is no more to cut
-- Antoine de Saint-Exupéry
cygcheck.out
Description: Binary data
