delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2014/12/09/07:25:20

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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; q=dns; s=default; b=VpUNNK
mxpYafTxFhLWEFko6/IIUf6nu9vbmKsmD/vQ2DqjL9Mx8a2oXsWTR0CplDPBZgNu
sc6xse/tjRWW5qNf+4VHjzLsmOd7BZd3w1kmyAulgFoR7/9D5S9uyM6XjiaBMVaJ
XsWn0GYpa8/z9gE59DKZrS1nV6iv8dAaOaCCo=
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:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type; s=default; bh=/HZM7ZGqUBWd
ZMTeXM46wM6S2JE=; b=tCviyuczY3qk0jzqlpYwt4nV5G+vLMmcgcCyTQx9GcGK
myFIbDJm5RjRtBJzhAGgKbod0PaUKx7LlR4eStBsOOxmUlAIZa8WGf1d1bz4TgiO
RHF7fM0QXy5/uZuIK3BBEQ9KKKUO/CDf95KpmiB1B588cmBXuTIsC6NjX++NO2Q=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=2.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_RP_RNBL,SPF_PASS autolearn=no version=3.3.2
X-HELO: www.titera.eu
Message-ID: <5486EA1C.3060606@titera.eu>
Date: Tue, 09 Dec 2014 13:25:00 +0100
From: =?UTF-8?B?UGV0ciBUaXTEm3Jh?= <petr AT titera DOT eu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Possible resource leak
References: <5486B88D DOT 1040303 AT titera DOT eu> <5486C7AC DOT 1090306 AT gmail DOT com>
In-Reply-To: <5486C7AC.1090306@gmail.com>

--------------000000010203080808010805
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

On 9.12.2014 10:58, Marco Atzeri wrote:
> On 12/9/2014 9:53 AM, Petr Titěra 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,

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.

Attached is simple reproducer I was able to get from my scripts. If you 
will test it you will have to change base url in fetchData.sh.

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.

If that would matter I run this scrips from truecrypted disk.

Petr Titera

> By the way, script in which language ?
>
> Regards
> Marco
>
>
> -- 
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


--------------000000010203080808010805
Content-Type: text/plain; charset=windows-1250;
 name="fetchData.sh"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="fetchData.sh"

IyEvYmluL2Jhc2gKIwojCUFyZ3VtZW50cwojCQlNT0RFTAojCgpmdW5jdGlv
biBnZXRGaWxlTm9DaGVjaygpIHsKCQl3Z2V0IC1PICAkezF9ICAkezJ9CQkJ
CgkJc2xlZXAgJCgoJFJBTkRPTSAlIDUpKQp9CgpmdW5jdGlvbiBnZXRGaWxl
Q2hlY2soKSB7CgkJaWYgWyAhIC1lICQxIF07IHRoZW4KCQkJd2dldCAtTyAg
JHsxfSAgJHsyfQoJCQlzbGVlcCAkKCgkUkFORE9NICUgNSkpCgkJZmkKfQoK
bW9kZWw9JHsxfQoKZG93bmxvYWRSb290PSJhdXRvbWF0aWMvJHttb2RlbH0i
Cm9wZXJhdGlvbkJhc2VOYW1lPSIke2Rvd25sb2FkUm9vdH0vbW9kZWwiCgpt
a2RpciAtcCAke2Rvd25sb2FkUm9vdH0KCmZvciBpIGluIGBzZXEgMzAwYDsg
ZG8KCQlpZiBbICEgLWUgIiR7b3BlcmF0aW9uQmFzZU5hbWV9XyRpLnhtbCIg
XSA7IHRoZW4KCQkJZ2V0RmlsZUNoZWNrICIke29wZXJhdGlvbkJhc2VOYW1l
fV8kaS54bWwiICJodHRwOi8vPHVybD4vaW5kZXguaHRtbD9fZGM9JChkYXRl
ICslcykiCQkKCQlmaQpkb25lCgojRG9uZQ==

--------------000000010203080808010805
Content-Type: text/plain; charset=windows-1250;
 name="main.sh"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="main.sh"

IyEvYmluL2Jhc2gKZm9yIGkgaW4gYHNlcSA1MDAwMGAKZG8JCgkJLi9mZXRj
aERhdGEuc2ggJGkKZG9uZSA=


--------------000000010203080808010805
Content-Type: text/plain; charset=us-ascii

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
--------------000000010203080808010805--

- Raw text -


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