Skip to content

sort does not finish for large one line file #8583

@BAMF0

Description

@BAMF0

I found that the sort utility does not finish to the stage of generating output for a large one line file. This issue is not found in the GNU implementation.

  • OS release: Ubuntu Questing Quokka (development branch) 25.10
  • uutils coreutils version: 0.2.0 (built from main commit: 9aaf603)

Reproduce

  1. Generate a large file:
    oneline_4G.txt - a single line file consisting of a sequence of A's (4GB in size)
dd if=/dev/zero bs=1M count=4096 status=progress | tr '\0' 'A' |
head -c 4294967295 > oneline_4G.txt && echo >> oneline_4G.txt
  1. Run coreutils sort sort on the file:
coreutils sort oneline_4G.txt

Reference Machine

  • OS: Ubuntu Questing Quokka (development branch) 25.10
  • Hardware Model: Lenovo Legion Slim 5 16IRH8
  • Processor: 13th Gen Intel® Core™ i7-13620H × 16
  • Memory: DDR5 16.0 GiB @ 5600 MT/s

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions