SEGV i sort

"ali (Anders Lindgren)" <[email protected]>
Newsgroups gmane.comp.gnu.textutils.bugs
Message-ID <Pine.GSO.4.21.0206051442260.19001-100000@bach>
Dear fellow freedom-fighters, I have come across a bug
that results in a segmentation fault in GNU sort 2.0.14
shipped with among others Red Hat 7.2. "sort --version"
doesn't reveal what version of the textutils package
it comes from (unless 2.0.14 refers to textutils as
a whole) -- my apologies if this is not an up to date
version of GNU sort.

The bug is triggered by merging of files, when one of
the files is empty, e.g:

----8<------
$ touch foo
$ echo "moo" > cow
$ sort -m cow foo  # works fine...
moo
$ sort -m foo cow  # ..but when first file is empty...
Segmentation fault
----8<------

-- 
/ali
:wq
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.