delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2017/11/28/08:28:11

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:subject:to:references:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=THpFdkTMRUMPhB3I
A1BB+X6GitUuyj/5fsUKnoNalyhdGWqGvq6FwPuPq5D9glK6vpGwtUFbd78J/aEM
z6XckZYCkNULy1q3kR6lOOEQOA2dT7XDe4ETt5WYQyPO8iY1OJpBSDY2C/0qpwGF
A0Nmth1Lj7skYIlf3xVjA0q5KXA=
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:subject:to:references:reply-to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=plyIpKK5AoKOKM/weqw7us
KAai0=; b=I4OmjNQV8A5VsQm3xXYd+YNKJfgh+GMQD0RY7i1LjJkq5lbMnQieZC
tB4/Qkw/D4Tc8fEuoYTcFzNMbcmtdkMXIeQ8XscnUi4vz5oGH7BASoHKjTer344E
qaFFHAzT6NvAJSF+0owtDG5Yr0zD8HONr7nlaEAn/fFvxXAQdvVDM=
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=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KB_WAM_FROM_NAME_SINGLEWORD,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=cyg, me, RETURNED, HContent-Transfer-Encoding:8bit
X-HELO: mail-io0-f170.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:reply-to:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=LKS76Y2+VYPRTtQnlkQHpRfkXaL6EIRG9RcNlv3q//0=; b=Gnrvzpvp6wCtD07Mce6zwxRdevwGbb2PK2eAEiTHo5l5x8X9Cee4k+8rv1n0g76qNF po8eTn5333j3z8uGFj/iJ3/17lv9jpdKJJgScSa55ApBHj1mLPK7Z6RU6SmOk5SqkYkO IGDnQos9H1WrS1i8GwINm6VlQ5zrPisFWsRxYnHLOwtC6pZcbrhLEJzYFsU5xNiLbyQr 0Wz4/tXNAczLxaYITXfPacULZgBnAizy4DsedK5v6Hn32Xq9S5xAk0vOlOqSa/op6yQy Y9X/rMbJcu71yEGIX/7Yuhy9EeNWkkB3RzQyA/QXFYk0YfvHtizPVx6H2sQDohq20cbS szVg==
X-Gm-Message-State: AJaThX5No6qpX4fgTcc9u7zFsSfCrkKN16wQIRArJPNo2G2OXKq50Hcp PIWrDsAVf7ZnVTBucQ63YFlKzw==
X-Google-Smtp-Source: AGs4zMaNzoTBK8hZ3H7HthpH3qKXlASjEldwdT8GpFTcQUL1qIgFyxuqxNiSZwQIYpryI7RwiGx8HA==
X-Received: by 10.107.146.195 with SMTP id u186mr47782464iod.37.1511875674966; Tue, 28 Nov 2017 05:27:54 -0800 (PST)
Subject: Re: sort utility goes berzerk (x86_64)
To: cygwin AT cygwin DOT com
References: <177e9f9fe723eadd4a8e41e5e032d56d AT smtp-cloud9 DOT xs4all DOT net> <eeee637eb6e6b01641d33930e178cbae AT xs4all DOT nl> <20171128090329 DOT GN547 AT calimero DOT vinschen DOT de> <e9692e0a537954935dd0eac378bd00e3 AT xs4all DOT nl>
Reply-To: cygwin AT cygwin DOT com
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <6ea0abb4-4b12-ae0a-a8f8-42e96a174bf3@gmail.com>
Date: Tue, 28 Nov 2017 08:27:55 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0
MIME-Version: 1.0
In-Reply-To: <e9692e0a537954935dd0eac378bd00e3@xs4all.nl>
X-IsSubscribed: yes

On 11/28/2017 8:12 AM, 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
> [snip}
> 
>> and then returns to the prompt.
> 
> Just trying ... is this a clue to the cause?
> 
> Henri
> 
> 64-@@ trap -p
> trap -- '' SIGPIPE # ignore SIGPIPE
> 64-@@ sort tt | head
> abcde    1xxxxx0123456789
> abcde    2xxxxx0123456789
> abcde    3xxxxx0123456789
> abcde    4xxxxx0123456789
> abcde    5xxxxx0123456789
> abcde    6xxxxx0123456789
> abcde    7xxxxx0123456789
> abcde    8xxxxx0123456789
> abcde    9xxxxx0123456789
> abcde   10xxxxx0123456789
> sort: write failed: 'standard output': Broken pipe # as expected
> sort: write error
> 64-@@ <==== PROMPT RETURNED
> 
> 64-@@ trap - PIPE # SIGPIPE should result in killing sort ?????
> 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
> 

`which sort` are you attempting to use?  The cygcheck file didn't say.

-- 
cyg Simple

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