delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/11/25/08:24:09

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:to:subject:content-type;
q=dns; s=default; b=A9G3BO6ScuDpHIN7Dj4QdKs5NRtPrbTvHUyTBQCZtPj
0JPcG7R3sEwohabEbtzFi3YfN0U5iJeS4/dH3fnO970UOpO3tcqx0DqDjpKyk/m8
I/NixN3c0tzRCCJJcn4YGMw3mWMODVr57XkYOu+E6yjJyN26KXeNyTCmV1NXLlWQ
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:message-id:from:to:subject:content-type;
s=default; bh=lWpfRhBNVsCguWmOmMvrdRS5gkQ=; b=vVY2PagGXWYoHLakE
4SwrO4w8xAdGte/1OkZejDQmJrPChOTcpZ7VvOSWopLI0eWAyaendCozKFv+2G2f
PySUJocwRa2DfU9iX3MFVzi0DHRJodgXQpREcWGCSpkZJq0chC/UBdLJthIyGwLT
kHE464+zt9ZnRm2KtFWrRHQtEI=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-4.4 required=5.0 tests=AWL,BAYES_50,GIT_PATCH_2,KB_WAM_FROM_NAME_SINGLEWORD,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*nl, Seven, H*MI:smtp, 2.9.0
X-HELO: lb2-smtp-cloud9.xs4all.net
Date: Sat, 25 Nov 2017 14:23:51 +0100
Message-ID: <177e9f9fe723eadd4a8e41e5e032d56d@smtp-cloud9.xs4all.net>
From: Houder <houder AT xs4all DOT nl>
To: cygwin AT cygwin DOT com
Subject: sort utility goes berzerk (x86_64)
User-Agent: mua.awk 0.99
X-CMAE-Envelope: MS4wfI9mImHvp4zEYZV5N6X1Ept+StWeqGSEMjKRf5pkkH1Q1q9K2ZHf+hpp8Cgclq5zrcgWt4w+3EHJoxGpwOdiKaOUqAOlFJWuT7mJluX8v4k8E++VJgzf vqG/irUOwqNZFaSIwIuejjZSx1yOC/E/RsILF0cBSIPwpEWJ3aAQxRfMCqbWfH7qYaY6W86Om6/dLg==
X-IsSubscribed: yes

Hi,

Anyone seeing this as well? sort goes berzerk on my system when piped into
head (or less) when it is fed with a 'specially prepared' input file.

 - only happens on x86_64
 - does not happen for 'LC_COLLATE=C sort tt | head'

'specially prepared' input file? (see bottom of post).

Henri

64-@@ sort tt | head
abcde    1xxxxx0123456789
abcde    2xxxxx0123456789
abcde    3xxxxx0123456789
abcde    4xxxxx0123456789
abcde    5xxxxx0123456789
abcde    6xxxxx0123456789
abcde    7xxxxx0123456789
abcde    8xxxxx0123456789
abcde    9xxxxx0123456789
abcde   10xxxxx0123456789
 <==== prompt does not return
 note: sort.exe cannot be killed using 'kill -9'
 note: sort.exe is using a high amount of CPU ... (loop?)
 note: file tt is obtained as follows ./genfl.sh > tt (see bottom of post)

# sort is terminated from another instance of bash, using:
64-@@ taskkill /f /im sort.exe
SUCCESS: The process "sort.exe" with PID 3680 has been terminated.

-----
64-@@ uname -a
CYGWIN_NT-6.1 Seven 2.9.0(0.318/5/3) 2017-09-12 10:18 x86_64 Cygwin

64-@@ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_ALL=

64-@@ cat genfl.sh
#!/bin/bash

# sorting seems not to obey LC_COLLATE=en_US.UTF-8

awk '
#BEGIN  { cnt = 4000 }
#BEGIN  { cnt = 5000 }
#BEGIN  { cnt = 5050 } # sort going berzerk
#BEGIN  { cnt = 5500 } # sort going berzerk
#BEGIN  { cnt = 6000 } # sort going berzerk
#BEGIN  { cnt = 8000 } # sort going berzerk
BEGIN   { cnt = 8150 } # sort going berzerk
#BEGIN  { cnt = 8200 }
#BEGIN  { cnt = 8500 }
#BEGIN  { cnt = 9000 }
#BEGIN  { cnt = 10000 }
#BEGIN  { cnt = 12000 }
#BEGIN  { cnt = 16000 }
END     {
          for (i = 1; i <= cnt; i++) {
            str = "0123456789"
            printf "abcde%5dxxxxx%s\n", i, str
          }
        } ' /dev/null

=====


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019