From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 36530 invoked by alias); 3 Dec 2015 13:57:50 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 36521 invoked by uid 89); 3 Dec 2015 13:57:49 -0000 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 Received: from www.hepe.com (HELO www.hepe.com) (78.47.220.225) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 03 Dec 2015 13:57:47 +0000 Received: from sogo by www.hepe.com with local (Exim 4.80) (envelope-from ) id 1a4UOG-0002EF-89 for cygwin@cygwin.com; Thu, 03 Dec 2015 14:57:44 +0100 in-reply-to: <1cb3-56530100-91-40254200@154582263> to: cygwin@cygwin.com from: "Aaron Digulla" 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 13:57:00 -0000 MIME-Version: 1.0 content-type: text/plain; charset="utf-8" User-Agent: SOGoMail 2.3.3a content-transfer-encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2015-12/txt/msg00035.txt.bz2 This seems to be a consistent bug. How do I file it? > Am Sonntag, 22. November 2015 20:17 CET, Thomas Wolff sch= rieb: > > > > 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=3D0 > > :loop > > echo %n% > > echo %n% >> .log > > set /A n=3D%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 happ= ens 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 d= o 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 re= ads 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