Re: [1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-04 Thread Dave Korn
Christopher Faylor wrote: > 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? That fixes both the cygwin-api testcase and the problems with grep. I also teste

Re: [1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-04 Thread Dave Korn
Christopher Faylor 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

Re: [1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-04 Thread Dave Korn
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 >>> >>

Re: [1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-03 Thread Christopher Faylor
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: >> >>Hi[ppo], >> >> I've been seeing these odd error messages scattered in amongst my grep >>output occasionally of late, and decided to spend some time tracking them

Re: [1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-03 Thread Christopher Faylor
On Fri, May 01, 2009 at 11:01:46PM +0100, Dave Korn wrote: > >Hi[ppo], > > I've been seeing these odd error messages scattered in amongst my grep >output occasionally of late, and decided to spend some time tracking them >down. It now seems to me that something very strange is going on with >

[1.7] Weird error "grep: writing output: Cannot allocate memory"

2009-05-01 Thread Dave Korn
Hi[ppo], I've been seeing these odd error messages scattered in amongst my grep output occasionally of late, and decided to spend some time tracking them down. It now seems to me that something very strange is going on with WriteConsoleW, as called from fhandler_console::write_normal(). T