X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; q=dns; s= default; b=VXfDcFxJ0MmqGlzuSXc2xxdQvD20/fjCmqS73428GeoImcQCESooy 6roKAuaUny5CoHrMq2jd72LZ/dqHkHEDNO2B0Y85dzbhB5124tQVGLQ2PesdI5s8 328tWdc5vFKFN4Uh324raGXKZd1RxjcIFaidNLclb1ZKIkBhLMNTNY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:subject:message-id:reply-to :references:mime-version:content-type:in-reply-to; s=default; bh=3337LRidYB1TxxgnWgv1QLtQbAU=; b=N6HNs1SIlfTztuaLq95RK/ic3A4Y rpvPCsHQm6GzK/5hF+IVU57MWuokeE92/ZHPAyQP80ZMHHG3X22UVRRKamo4+YLv mwtF6Pq4gfMkumJ6QwywEaG/MvuXnZfRF6P+Ph58XPUQld/DnfHexlzOr7byCqax MYSkYF+E6ChexdA= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-5.0 required=5.0 tests=AWL,BAYES_40 autolearn=ham version=3.3.2 X-HELO: calimero.vinschen.de Date: Tue, 9 Dec 2014 14:05:51 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Possible resource leak Message-ID: <20141209130551.GK3810@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <5486B88D DOT 1040303 AT titera DOT eu> <5486C7AC DOT 1090306 AT gmail DOT com> <5486EA1C DOT 3060606 AT titera DOT eu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SCaOIQf4OfYbUof5" Content-Disposition: inline In-Reply-To: <5486EA1C.3060606@titera.eu> User-Agent: Mutt/1.5.23 (2014-03-12) --SCaOIQf4OfYbUof5 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Dec 9 13:25, Petr Tit=C4=9Bra wrote: > On 9.12.2014 10:58, Marco Atzeri wrote: > >On 12/9/2014 9:53 AM, Petr Tit=C4=9Bra wrote: > >>Hello, > >> > >>I'm dealing with possible resource leak in cygwin on Windows-7. I'm > >>running a script which repeatedly calls another script (every 5 > >>seconds). After a while script ends with memory error. All my memory > >>seems to be eaten by Page Table entries and in the memory map I see a > >>lot of cygwin processes with 4 pages allocated (I can provide screenshot > >>if neccessary). Is this known issue? > >> > >>Attached is cygcheck output without any modification. > >> > >> > >>Petr Titera > >> > > > >without the scripts or a simplified version that exhibits the issue, > >it is impossible to state if it is due to any cygwin programs or it is > >due to https://cygwin.com/acronyms/#PEBCAK > > > Hello, >=20 > I can understand this. And it might definitely be PEBKAC. But what I see = is > real and I do not thing I've screwed my scripts so much. >=20 > Attached is simple reproducer I was able to get from my scripts. If you w= ill > test it you will have to change base url in fetchData.sh. >=20 > When I run this script for a while I see a lot of 'zombie' bash, sleep and > wget processes in RamMap (they do not show in task manager). I can provide > screenshot. >=20 > If that would matter I run this scrips from truecrypted disk. I don't know if that matters but I don't think so. Running some virus scanner (see https://cygwin.com/faq/faq.html#faq.using.bloda) may be the culprit. FWIW, I can't reproduce the issue with the script you provided. Process number (even hidden ones) and memory usage are stable. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --SCaOIQf4OfYbUof5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJUhvOvAAoJEPU2Bp2uRE+geFAP/3yK7nTCAOEUrr2CpuRhuCDe IEdyj7VW4zIbBOwFw6lWfq20n3sXwsFHJmyOlX93WpFQc7ZkEe0KhodE7JOvMIA6 q6W1db/qyGotsDLX7N+iUrF3Fz9D6iaZO5jnOgPVEvqNo5++bk/j7Eb4mc46vgec oas4lxOhx+Rp1lKfUMNtwwz+IHoSsWJiZqc6cwwi+oolfhKXuGDNrdLH9jfZvGqn qDQFMhFPGRbFFnWEjPfuU1vtaucT+lT4PPVDKFh0ue61aiI3dYMduK44L9eZAchy 1ht8pbFGvT5YR2RyDLFr5ouDNgLF5cYZwEnXGMXh0I+bvXqeSQnBrlZhE15pfIqJ anlXd6ropZPbLkWTMoZinee4CJicguT2fGlBVppY00j/2mRWgRr3u+tY2GH3BYBA q32TjqBS4EY8gFWsTA/SQZHpB2wq1hHmzTWGD4aAoMZKElV3svksxTWa1DvIGBBB 9bp/78j0O5MWt3V/PP7y4yiH6xqIBnQYgK7PKuOAlfBKGknsoQNvM0PVJqeRhWRT Vt1Tg7fLNxB6hv83A3DbjBwq5//3QBlsg55HcMCBfrxzMQoy4oYHBfnUl8IU264z UMLVWKCQkQnWastG4ST0CpxZCt/KBb/PwIW/K+qWX54IwkbFtfRjTdAg5OaNCjPC SGKTtu1wL/kNsiVIAphF =v+3U -----END PGP SIGNATURE----- --SCaOIQf4OfYbUof5--