Public bug reported:

The sort command hangs after sorting about 60% of a 1.7GB file.

To reproduce with public domain data:

wget -O msb_mamm.zip 'https://ipt.vertnet.org/archive.do?r=msb_mamm&v=35.106'
unzip msb_mamm.zip occurrence.txt
sort occurrence.txt | pv --line-mode --size 356711 > /dev/null
 237k 0:12:39 [0.00 /s] [===========>    ]  66% ETA 0:00:00

(Also, this takes almost 2 minutes, vs 6 seconds with GNU sort.)

gnusort occurrence.txt | pv --line-mode --size 356711 > /dev/null
 356k 0:00:04 [74.1k/s] [===============>] 100%

ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: rust-coreutils 0.8.0-0ubuntu3
ProcVersionSignature: Ubuntu 7.0.0-14.14-generic 7.0.0
Uname: Linux 7.0.0-14-generic x86_64
ApportVersion: 2.34.0-0ubuntu2
Architecture: amd64
CasperMD5CheckResult: unknown
CloudArchitecture: x86_64
CloudBuildName: server
CloudID: nocloud
CloudName: unknown
CloudPlatform: nocloud
CloudSerial: 20260421
CloudSubPlatform: config-disk (/dev/vdb)
Date: Wed Jun  3 09:06:30 2026
ExecutablePath: /usr/lib/cargo/bin/coreutils/sort
ProcEnviron:
 LANG=en_GB.UTF-8
 PATH=(custom, no user)
 SHELL=/bin/bash
 TERM=xterm-256color
 XDG_RUNTIME_DIR=<set>
RebootRequiredPkgs: Error: path contained symlinks.
SourcePackage: rust-coreutils
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: rust-coreutils (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug cloud-image resolute

** Description changed:

  The sort command hangs after sorting about 60% of a 1.7GB file.
  
  To reproduce with public domain data:
  
  wget -O msb_mamm.zip 'https://ipt.vertnet.org/archive.do?r=msb_mamm&v=35.106'
  unzip msb_mamm.zip occurrence.txt
  sort occurrence.txt | pv --line-mode --size 356711 > /dev/null
+  237k 0:12:39 [0.00 /s] [===========>    ]  66% ETA 0:00:00
  
  (Also, this takes almost 2 minutes, vs 6 seconds with GNU sort.)
  
  gnusort occurrence.txt | pv --line-mode --size 356711 > /dev/null
-  356k 0:00:04 [74.1k/s] [===============>] 100%
+  356k 0:00:04 [74.1k/s] [===============>] 100%
  
  ProblemType: Bug
  DistroRelease: Ubuntu 26.04
  Package: rust-coreutils 0.8.0-0ubuntu3
  ProcVersionSignature: Ubuntu 7.0.0-14.14-generic 7.0.0
  Uname: Linux 7.0.0-14-generic x86_64
  ApportVersion: 2.34.0-0ubuntu2
  Architecture: amd64
  CasperMD5CheckResult: unknown
  CloudArchitecture: x86_64
  CloudBuildName: server
  CloudID: nocloud
  CloudName: unknown
  CloudPlatform: nocloud
  CloudSerial: 20260421
  CloudSubPlatform: config-disk (/dev/vdb)
  Date: Wed Jun  3 09:06:30 2026
  ExecutablePath: /usr/lib/cargo/bin/coreutils/sort
  ProcEnviron:
-  LANG=en_GB.UTF-8
-  PATH=(custom, no user)
-  SHELL=/bin/bash
-  TERM=xterm-256color
-  XDG_RUNTIME_DIR=<set>
+  LANG=en_GB.UTF-8
+  PATH=(custom, no user)
+  SHELL=/bin/bash
+  TERM=xterm-256color
+  XDG_RUNTIME_DIR=<set>
  RebootRequiredPkgs: Error: path contained symlinks.
  SourcePackage: rust-coreutils
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2155137

Title:
  sort hangs on a large/long-lined text file

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/rust-coreutils/+bug/2155137/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to