delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2012/06/01/09:03:54

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-10.3 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_HI,RCVD_IN_HOSTKARMA_W,SPF_HELO_PASS,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4FC8BD9F.4010504@redhat.com>
Date: Fri, 01 Jun 2012 07:03:27 -0600
From: Eric Blake <eblake AT redhat DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Shell script loop runs out of memory
References: <loom DOT 20120531T193933-322 AT post DOT gmane DOT org>
In-Reply-To: <loom.20120531T193933-322@post.gmane.org>
OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg
X-IsSubscribed: yes
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

--------------enigDE4537F9C0923FFDFA66FA11
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 05/31/2012 11:42 AM, Jordan wrote:
> Hi folks,
>=20
> I've written a shell script running under CygWin, the purpose of which is=
 to=20
> monitor a file for changes. If the MD5 hash fails to match the previous h=
ash, it=20
> will execute a command to process the file. I used a 1-second delay betwe=
en=20
> checks of the hash. This works great for several hours, but then gives an=
 "out=20
> of memory" error and actually brings Windows 7 to its knees.

Have you ascertained whether the leak is in bash, cygwin1.dll, or in
Windows itself?  If it is BLODA (and the leak is in windows itself),
then there is nothing we can do.  If it is in cygwin1.dll, then the leak
would be present even if you used a different shell, and fixing it would
benefit all cygwin programs.  I will also note that cygwin is currently
on bash 4.1, but upstream is at bash 4.2, so there may be a memory leak
patch for bash that we would get if I ever had time to upgrade to the
latest upstream bash.

--=20
Eric Blake   eblake AT redhat DOT com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


--------------enigDE4537F9C0923FFDFA66FA11
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJPyL2fAAoJEKeha0olJ0NqgJoIAIE7dOGSY+BlW7KOmd9QFDnL
//KME1Xkai0sKxOTfVVex/5/pFW/vMjdN1Q70Ih4pERhb9dE+dQ68SgBGr9AvxWZ
d0yCWxnnyT1uF5WR45+Wao2FAGEjcp8JOaUyvh/XAroIX5oGPkxPnu+9EsKVvo7h
Clsdc3q+ByScwwsc6pjDlcjc86wTjWtikL/4SdQZ8Te0D3u96kCHcphyARWNDBTE
Ast+vAMfaHsat596zB2Vu0SijXkwkL0LrYnvQYKe6AkMrgHzeaCYTaRbqLUNshut
bCZGtBC1pJHiAosUA7Lln4FU+7PwOyklZicNu4itdmAG8VNccLjwARzis72ZM7E=
=Y/hs
-----END PGP SIGNATURE-----

--------------enigDE4537F9C0923FFDFA66FA11--

- Raw text -


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