X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Message-ID: <49FEEE8F.3020100@gmail.com> Date: Mon, 04 May 2009 14:33:03 +0100 From: Dave Korn User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: [1.7] Weird error "grep: writing output: Cannot allocate memory" References: <49FB714A DOT 4010002 AT gmail DOT com> <20090504033921 DOT GA6162 AT ednor DOT casa DOT cgf DOT cx> <20090504035236 DOT GA11270 AT ednor DOT casa DOT cgf DOT cx> In-Reply-To: <20090504035236.GA11270@ednor.casa.cgf.cx> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Christopher Faylor wrote: > On Sun, May 03, 2009 at 11:39:21PM -0400, Christopher Faylor wrote: >> On Fri, May 01, 2009 at 11:01:46PM +0100, Dave Korn wrote: >>> The attached STC reproduces the problem, and apparently: >>> >>> gcc-3 -mno-cygwin stc.c -o stc -W -Wall -g -O0 -o stc-mingw.exe >>> >>> gcc-4 stc.c -o stc -W -Wall -g -O0 >>> >>> .. it is cygwin independent, since both executables produce similar results: >> A test case which demonstrates a failing Windows call fail isn't really >> interesting as far as Cygwin is concerned. Well, just to state the obvious, Cygwin itself is written using Windows calls, and if they are prone to fail it needs to be written to take that into account. As I guess you reached the similar conclusion. > Do you have a stc which fails using Cygwin's API? I should be able to generate one. > I made some changes to Cygwin's always-burgeoning console code which limit > the number of characters transferred to the console. Could you check if > it still fails with these changes? I'll get to this during today, thanks. cheers, DaveK -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/