delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/03/14/23:19:43

X-Spam-Check-By: sourceware.org
Message-ID: <441795CF.5020905@byu.net>
Date: Tue, 14 Mar 2006 21:19:27 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Thunderbird 1.5 (Windows/20051201)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, annoyingblahblah AT yahoo DOT com
Subject: Re: bash, find | xargs grep
References: <20060314222840 DOT 4377 DOT qmail AT web35003 DOT mail DOT mud DOT yahoo DOT com>
In-Reply-To: <20060314222840.4377.qmail@web35003.mail.mud.yahoo.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to bob knob on 3/14/2006 3:28 PM:
> 
> I've been doing "find | xargs grep" types of things
> for a long time with no problem, but I just started
> working at a new job with a new computer onto which
> I've downloaded the latest Cygwin. 

Most likely the new computer is running some invasive third-party program
that is sucking Windows dry of resources.  Searching the list archives
points out some common culprits, such as McAfee antivirus, or a Logitech
camera device, where their .dlls have a detrimental effect on cygwin's
ability to emulate POSIX fork semantics.

>       5 [main] bash 4800
> C:\Programs\Cygwin\bin\bash.exe: *** fatal error -
> fork: can't reserve memory for stack 0x23E890 - 0 
> x240000, Win32 error 487 
>    2520 [main] bash 4880 child_copy: stack write copy
> failed, 
> 0x23E890..0x240000, done 0, windows pid 2353092, Win32
> error 5 
> /c/MyCode/mygrep: fork: No error 

I wish that fork would fail with errno set, so that bash's error message
is not so confusing; but that is besides the point.  Running out of memory
during forks is not a bug in bash, find, or xargs, but a limitation of
Windows.  If anyone has ideas on how to reduce the frequency of fork
failures, patches are more than welcome, but the main developers have
pretty much tried everything imaginable.  The solutions (workarounds?) on
this list have generally been to disable the third-party .dll that is
causing the interference.

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
volunteer cygwin findutils maintainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEF5XP84KuGfSFAYARAkiEAKCkbErPJD+ODomDTpXuIEtFPdSy4gCgh9se
Gr7JO9j78dVgJVKP+1/D8Og=
=/TqW
-----END PGP SIGNATURE-----

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019