delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=1.0 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Sat, 16 Jul 2011 14:26:58 +0200 |
Message-ID: | <CANs8wdA9N_oBgXQSrJWzHwg+5M+z3Uti7uPjCgBm7fNp9Exh3w@mail.gmail.com> |
Subject: | [bash or DLL] Memory leak in childs |
From: | AZ 9901 <az9901 AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
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 |
Hello, I think I have found a memory leak in bash (or perhaps in DLL fork implementation, I don't know). Just launch the following test loop having a look at Windows Task Manager, Page File Usage tab : while [ 1 ] do test=$(echo test) done Memory usage is constantly growing. Once Cygwin closed, memory is still used, not released. Testing with the following loop does not give the issue : while [ 1 ] do test=test echo $test done This is why I think it is a memory leak in childs (subprocesses). This problem makes the computer to get completely frozen, then a reboot seems to be the only solution. Quite problematic with daily elaborate scripts on production servers ! Could you please have a look ? Thank you very much ! Best regards, Benjamin -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |