delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/04/05/07:55:10

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:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=HmYUxzzG2QvEwY8rOOsxk28E9XS9K5gzCFypKKDHMDs
6Fs/Hdd+bi4LwUIEfS/4UXze0NT/288vchE8rGIch0I02+yfroCRh7A5Z15++oHN
+6oFxmCq6d+DGyGP94uPvxEFZWXihLj430w5R9XsUtuH8ALgd/6yrJZOJ/6NOv3A
=
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:from:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=7GO2idexgZIMNq8OLCQPBPp5vwc=; b=BlkhjetPoNlD1SIEA
yJUqj75Oud1IZ+03ck+1jSnCq/8xx61GoBrf4AJyGyuOisdywAK3vmshqaN4pGNM
RyQbh09/f2NsJidIMpictac8+eDWGtOV9FX1JkECOQfnKRo+Ig9q7RVcwx7SVPIJ
Wlsvgt62jTT5YftsWl2uBuANKo=
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.5 required=5.0 tests=AWL,BAYES_00,KAM_LOTSOFHASH,RCVD_IN_SORBS_DUL,SPF_PASS autolearn=no version=3.3.2
X-HELO: conuserg002-v.nifty.com
X-Nifty-SrcIP: [121.93.68.199]
Date: Sun, 5 Apr 2015 20:55:04 +0900
From: Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin hangs up if several keys are typed during outputting a lot of texts.
Message-Id: <20150405205504.cda3df2cc76f7bca7c3d21fb@nifty.ne.jp>
In-Reply-To: <20150404084354.GX13285@calimero.vinschen.de>
References: <20150302204502 DOT 39b3e03ad5084b0b5add5d10 AT nifty DOT ne DOT jp> <20150302144426 DOT GK3213 AT calimero DOT vinschen DOT de> <20150304203407 DOT 14008531b0fb63ad5c19a33f AT nifty DOT ne DOT jp> <20150304121952 DOT GL3213 AT calimero DOT vinschen DOT de> <20150304181857 DOT GM3213 AT calimero DOT vinschen DOT de> <20150305202456 DOT 9ac4815a9d590145e15f7ae2 AT nifty DOT ne DOT jp> <20150305125901 DOT GX3213 AT calimero DOT vinschen DOT de> <20150403130735 DOT d04e41875f7defd0e6c2d8d0 AT nifty DOT ne DOT jp> <20150403113226 DOT GP13285 AT calimero DOT vinschen DOT de> <20150404155520 DOT 8564347f1d42b3c709718aad AT nifty DOT ne DOT jp> <20150404084354 DOT GX13285 AT calimero DOT vinschen DOT de>
Mime-Version: 1.0
X-IsSubscribed: yes

Hi Corinna,

On Sat, 4 Apr 2015 10:43:54 +0200
Corinna Vinschen <corinna-cygwin AT cygwin DOT com> wrote:

> That should have been fixed by cbb9849fa76f1dbe6c66d91b68d9a10f46f1ba69.
> You have to rebuild Cygwin to make this change have an effect.
> 
> Alternatively you could checkout f992ae6f4da99b6a200cfc146b96e8e921ca1e70
> to ignore the ucontext stuff for now.

Hmm, even after cbb9849fa76f1dbe6c66d91b68d9a10f46f1ba69,
it does not work in my environment.

But ok, f992ae6f4da99b6a200cfc146b96e8e921ca1e70 works.

Using f992ae6f4da99b6a200cfc146b96e8e921ca1e70, the problem
you had pointed out has been regenerated. Same problem can
be regenerated with a simple test case below.

#include <windows.h>

int main()
{
	HANDLE hCons;
	DWORD n;

	hCons = GetStdHandle(STD_OUTPUT_HANDLE);
	WriteFile(hCons, "AAAA\n", 5, &n, NULL);
	WriteFile(hCons, "BBBB\n", 5, &n, NULL);
	WriteFile(hCons, "CCCC\n", 5, &n, NULL);
	CloseHandle(hCons);
	return 0;
}

This is caused obviously by the patch I had proposed.
Post processing, in which \n is converted to \r\n, was in
the read process previously, so it had effect to the test
case above.

However, now the post processing is in the write process,
so it does not have effect against direct WriteFile() to
the pipe.

Unfortunately, I have no idea for the moment....

-- 
Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp>

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