GNU bug report logs - #7489
[coreutils] over aggressive threads in sort

Previous Next

Package: coreutils;

Reported by: DJ Lucas <dj <at> linuxfromscratch.org>

Date: Fri, 26 Nov 2010 19:40:02 UTC

Severity: normal

Tags: fixed

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: DJ Lucas <dj <at> linuxfromscratch.org>
To: coreutils <at> gnu.org
Cc: bug-coreutils <at> gnu.org
Subject: Re: [coreutils] over aggressive threads in sort
Date: Fri, 26 Nov 2010 12:01:55 -0600
Sent too bug-coreutils too (no bug id currently AFAICT).

Bug only affects multi-byte locales. Take the following samples:



bash-4.1# zcat  cracklib-words-20080507.gz  | sort -u --debug > file &&
echo $?
sort: using `en_US.UTF-8' sorting rules
Segmentation fault
bash-4.1# echo $?
139
bash-4.1#


bash-4.1# zcat  cracklib-words-20080507.gz  | sort -u --parallel=1
--debug > file && echo $?
sort: using `en_US.UTF-8' sorting rules
0
bash-4.1#


bash-4.1# zcat  cracklib-words-20080507.gz  | LANG=C sort -u --debug >
file && echo $?
sort: using simple byte comparison
0
bash-4.1#


bash-4.1# gzip -d cracklib-words-20080507.gz
bash-4.1# sort -u --debug cracklib-words-20080507 > file && echo $?
sort: using `en_US.UTF-8' sorting rules
0
bash-4.1#


In the interim, for a quick and dirty hack, I've added an LC_COLLATE
comparison and set nthreads to 1 in multibyte locales.

Probably well known, but the test file that I used is available from:
http://downloads.sourceforge.net/cracklib/cracklib-words-20080507.gz

-- DJ Lucas

-- 
This message has been scanned for viruses and
dangerous content, and is believed to be clean.





This bug report was last modified 6 years and 202 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.