delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/03/08:58:04

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:in-reply-to:to:from:message-id:subject:date
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=qMn06jyH+QGhaboiTckIlSbDsGmIkySvUxwacAvRjrfmSlRdTyCQk
tfwXpisb88CVBrcmeOeqN8aGPz1Zbl6VCGgk1CKFVSUel2XkHtAkeXXqGRTs3gvy
BFimDkpDiAJuWl/K5PCCIXMeD4hFevzpk+NQ1O6LCDghnVk46bFTCE=
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:in-reply-to:to:from:message-id:subject:date
:mime-version:content-type:content-transfer-encoding; s=default;
bh=pj86UtfMaRcFdQ58uTWJW5w9ZbU=; b=drqGQvzGls5m/5QR51pd4fmdTofk
nVt90y25Jg97C3nV5Dy9Qe89jxF6yhhfx31V3WbzBLBdhUOnNPq09h4Dd9cEOTuX
1c6uSahJ2inIx+lZJ0gnko3+hrbpfTZSVxHVY8RPpC6CCBZJGfrn0j97BInkvKsf
5GpslxNKAmY7MqI=
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.1 required=5.0 tests=AWL,BAYES_50,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: www.hepe.com
in-reply-to: <1cb3-56530100-91-40254200@154582263>
to: cygwin AT cygwin DOT com
from: "Aaron Digulla" <digulla AT hepe DOT com>
message-id: <3fb3-56604a80-79-5a531800@63692284>
subject: =?utf-8?q?Re=3A_Windows_locks_up_when_pressing_Ctrl+S_while_native_process_writes_to_terminal?=
X-Forward: 46.140.173.26
date: Thu, 03 Dec 2015 14:57:44 +0100
MIME-Version: 1.0
content-type: text/plain; charset="utf-8"
User-Agent: SOGoMail 2.3.3a
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tB3DvxCD007350

This seems to be a consistent bug. How do I file it?

> Am Sonntag, 22. November 2015 20:17 CET, Thomas Wolff <towo AT towo DOT net> schrieb:
>
> > > I found a consistent bug that happens every time:
> > > ...
> > > - Press Ctrl+S to stop the output in the terminal
> > >
> > > Bug #1: It's not possible to unfreeze the output in the terminal with Ctrl+Q. It just stays "stuck"
> > I confirm this effect and you don't need a fat application to
> > demonstrate it. With this Windows cmd script loop.bat:
> > @echo off
> > set n=0
> > :loop
> > echo %n%
> > echo %n% >> .log
> > set /A n=%n% + 1
> > ping 127.0.0.1 -n 2 > nul
> > goto loop
> >
> > run it: ./loop.bat, then use ^S; the script will actually continue to
> > run but will not show any more output in a pty-based terminal (works in
> > Cygwin console).
>
> Okay. So it seems to be a consistent bug which only affects me. What happens next?
>
> > > Bug #2: After a few seconds, the disk starts to trash. ...
> > Thrashing? Might be caused by the apparently-stopped application going
> > into some endless-loop activity.
>
> I feel that Windows runs out of memory but I have no idea why. If cygwin uses the standard OS services to create pipes between processes, there will be a 4KB buffer which the native process can fill and that's it. It should then block in a call to `write()` (or the equivalent) and not be able to do anything.
>
> I have about 2-3GB free RAM, so even if pipe would buffer all the output, it shouldn't be able to make Windows run out of memory. The Maven build reads and write files but all in all, we're talking 40-60MB tops.
>
> I'm a bit reluctant to run more tests since it takes my computer so long to heal (it's actually my company's  computer, so I'm supposed to work, not wait for it to heal after testing a cygwin bug :-).
>
> Regards,
>
> --
> Aaron "Optimizer" Digulla a.k.a. Philmann Dark
> "It's not the universe that's limited, it's our imagination.
> Follow me and I'll show you something beyond the limits."
> http://blog.pdark.de/
>
>
> --
> 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
>
>



--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://blog.pdark.de/


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