X-Recipient: archive-cygwin@delorie.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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; q=dns; s=default; b=rXRPuih
	NSTvDEQmkbrJMSLcTxEjvPY5mbEGVrKLJPIdOcn/bn62QqOQSMA5PM/kAUVAskey
	a9anlZGRwaeJL0dQd9XERW+p+Snubhwyalmf+Af9EHQk/lLcNEXHnXMqvkLL3iHq
	k5f3SCBEfZsuqt3u3eR0RhXs2vqMWrru7h9o=
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:mime-version:in-reply-to:references:from:date
	:message-id:subject:to:content-type; s=default; bh=IpieEN2g5lOb5
	+8aMpOBH5k0GWY=; b=JOHAv0X1/UgE6z8E1lTRQ7S0fsht82L1cegsLO8DgM4B4
	fMqOx1O9qEtviqJeJAzTJYgWUqdrDoR7keg63npUaJttjpGsCZF5sADW4QdeAdL0
	QHabSTuE4wPhSNgI8M5gd9RKNpQ2JMZ2qPQ+moPDa8U58/4b0PxOX5TR8fRyfo=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=BAYES_00,FREEMAIL_FROM,FROM_LOCAL_NOVOWEL,HK_RANDOM_ENVFROM,HK_RANDOM_FROM,KB_WAM_FROM_NAME_SINGLEWORD,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=hung, curious, Canada, among
X-HELO: mail-qk0-f179.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=1e100.net; s=20161025;        h=x-gm-message-state:mime-version:in-reply-to:references:from:date         :message-id:subject:to;        bh=C0ynYoB7P0ppibCyuMGRfP3phs+EzAOoqWxZbDSxVjw=;        b=qBcAIcvQS5gkMuaCueqsP86RxlE4QbiGXupfekpJ7Oaui3YgAXqre4KfRu9X3Ipvl3         rLIgd29/jy3Ot2JsXLcQZVWhI/Cq2I+5X2rMpegn32jpfFGXS4cBMJMqbLgPCCxgtgVZ         VNx1u0Ao1PU87K3e3hzI64otMjwcK8u4KSdrIeijgjI0bs5xOwFarfNPE8doGHRfwCVr         K1FqnY5Xnpg9v6srchuRnIojbLGLbMOoTD3JMgPSBtv7M4PRp7p2hJKOqMAb6EJOuKzK         fbFwzCUuoil1Nq5FkxAalc+RqWrsVrps0s2yUTfxDrcBRf3OblQNCFVdoZkg2hfHN+V5         4krg==
X-Gm-Message-State: AJaThX4x5x3CG3RwWnyW65EGA0FpKmaPSHxG4YLFoHwot05DKAlUgBHO	HNIzTi0MJhg8iuolFBdQOxre2Ri9nVMj8Mc+QG+BsxKb
X-Google-Smtp-Source: AGs4zMboXUHnPFi3gArCob889lJphAM5X8Rh0w2HdnoHaZO0fQT58lQOt35CccGPK9EHd6Vgvr1fWIMbEQ9QCHEohXs=
X-Received: by 10.55.42.100 with SMTP id q97mr60444625qkh.53.1511876280117; Tue, 28 Nov 2017 05:38:00 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <09fc4a030cc7abb5cabf07672e683d70@xs4all.nl>
References: <177e9f9fe723eadd4a8e41e5e032d56d@smtp-cloud9.xs4all.net> <eeee637eb6e6b01641d33930e178cbae@xs4all.nl> <20171128090329.GN547@calimero.vinschen.de> <09fc4a030cc7abb5cabf07672e683d70@xs4all.nl>
From: Doug Henderson <djndnbvg@gmail.com>
Date: Tue, 28 Nov 2017 06:37:39 -0700
Message-ID: <CAJ1FpuMVeneyhKmv0d8J_EPXjfrJ09FpVt=ojMEeJPRLyKes=A@mail.gmail.com>
Subject: Re: sort utility goes berzerk (x86_64)
To: cygwin <cygwin@cygwin.com>
Content-Type: text/plain; charset="UTF-8"
X-IsSubscribed: yes

On 28 November 2017 at 03:59, Houder wrote:
> On 2017-11-28 10:03, Corinna Vinschen wrote:
>>
>> On Nov 28 08:21, Houder wrote:
>>>
>>> On 2017-11-25 14:23, Houder wrote:
>>> > 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).
>>>
>>> Anyone ** NOT ** seeing this?
>>
>>
>> Yes.  I just tried it under tcsh and bash with 6000, 8000, and 8150 lines,
>> and it works for me.  LANG=en_US.UTF-8 implies LC_COLLATE=en_US.UTF-8
>> but I also set LC_COLLATE explicitely and retried.  sort tt | head
>> always prints
>>
>>   abcde    1xxxxx0123456789
>>   abcde    2xxxxx0123456789
>>   abcde    3xxxxx0123456789
>>   abcde    4xxxxx0123456789
>>   abcde    5xxxxx0123456789
>>   abcde    6xxxxx0123456789
>>   abcde    7xxxxx0123456789
>>   abcde    8xxxxx0123456789
>>   abcde    9xxxxx0123456789
>>   abcde   10xxxxx0123456789
>>
>> and then returns to the prompt.
>
>
> Corinna, thank you for trying !!!!!
>
> But that is curious ... I only send my initial post after having verified
> my system (Cygwin).
>
> As I got no response to my initial post, I decided it had to be "me". For
> that reason I once more scrutinized? my system (Cygwin).
>
> Among others:
>
>  - downloaded the base packages (from my favorite mirror) into a separate
>    repo (directory on my system)
>  - installed Cygwin (base packages) into a new directory.
>
> All using setup! The outcome was the same. It came as a surprise to me.
>
> I will attach cygcheck-minsrv.out (for _anyone_ who is willing to take a
> look at it). I did not spot anything "funny" in there.
>

Q0. What is the value of PATH reported by "printenv PATH"? Just to
verify it matches the cygcheck reported path, and to confirm that
cygwin directories proceed windows folders.

Q1. What is output of "which -a sort"? Is there only one sort in the path?

Q2. What is output of "sort --version"? Confirm if it is "sort (GNU
coreutils) 8.26".

Q3. What happens when you run "sort --check FILE" on a problem file?

Q4. After you kill a hung sort, are there files left over in /tmp? I
am wondering if the problem files are too big to do an in-core sort,
and something goes wrong when it switches to a temp file sort, but not
for smaller or larger input files where it correctly predicts which
type of sort it needs to do. Possibly using the "--buffer-size=N"
option will change the behavior, making smaller input files fail and
failing ones work.

HTH,
Doug


-- 
Doug Henderson, Calgary, Alberta, Canada - from gmail.com

--
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

