delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/08/17:48:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: 1.3.19: fork() strange memory leak under W2K
Date: Sat, 8 Feb 2003 17:47:59 -0500
Message-ID: <83040F98B407E6428FEC18AC720F5D73E501F1@exchange.tropicnetworks.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Rolf Campbell" <rcampbell AT tropicnetworks DOT com>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id h18Mm8N07642

Works for me on Win2000Pro+SP3/PIII.

> -----Original Message-----
> From: Victor Antonovich [mailto:avmlink AT vlink DOT ru] 
> Sent: Saturday, February 08, 2003 5:18 PM
> To: cygwin AT cygwin DOT com
> Subject: 1.3.19: fork() strange memory leak under W2K
> 
> 
> Hello!
> 
> Some time ago, when I was using at home 1.3.18 version of 
> CygWin under Windows  2000  Workstation  +  SP3,  I  
> discovered  that every command execution  lead to some memory 
> leak. It's especially noticeably when I try  to  run large 
> scripts (like "configure") - the memory loading (as viewed  
> in  Task  Manager)  grow  to  its physical size and next I 
> get message like this:
> 
>       0 [main] sh 35620 sync_with_child: child 35636(0xDC) 
> died before initialization with status code 0x80
>    6847 [main] sh 35620 sync_with_child: *** child state 
> waiting for longjmp
> ./../ltconfig: fork: Resource temporarily unavailable
> 
> After this, any process can't be started without rebooting 
> (or killing other process).
> 
> Recently,  I  upgraded  my  system  to Windows 2000 Server + 
> SP3 (with total precleanup) and CygWin 1.3.19, but problem is 
> there as before. :(
> 
> I made small test program which loops for 1000 times:
> --8<----------------------------------
> #!/bin/sh
> ctr=1
> while test `expr "$ctr"` -lt 1000; do
>   ctr=`expr $ctr + 1`
> #  ps > /dev/null
> done
> --8<----------------------------------
> 
> The result:
> --8<----------------------------------
> $ ./test
>       0 [main] sh 1136 sync_with_child: child 35976(0x134) 
> died before initialization with status code 0x80
>    1976 [main] sh 1136 sync_with_child: *** child state 
> waiting for longjmp
> ./test: fork: Resource temporarily unavailable
> --8<----------------------------------
> 
> After  this,  the  memory leak average is 28 MBytes. When I 
> uncomment  line  "ps > /dev/null" in this example, memory 
> leak grow to 42 MBytes. Changing "ps" command in uncommented 
> line on any external command not affect average memory leak. 
> All looks like every fork() lead to leak about 13 KBytes of 
> physical memory.
> 
> All  utilities  don't  indicate  that memory leak exist in 
> user space, that I decide that lost memory must be located in 
> kernel space.
> 
> It's very strange, but all this works nice at my work on 
> computer with Windows 2000 Workstation + SP3! My home 
> computer hardware is AMD Duron 800  MHz,  Abit KT7A 
> Motherboard, 256 MB RAM; at work Celeron 800 MHz, Acorp  i815 
>  Motherboard,  128  MB  RAM. The difference is also in the
> filesystems: FAT32 at home and NTFS at work.
> 
> I  found  similar messages in cygwin mailing list archive, 
> but without any  response.  By  the  way, same problem exist 
> in MinGW minimalistic system  (MSYS).  Is there anybody who 
> can say any considerations about this problem? The "cygcheck" 
> program out is attached to this message.
> 
> Regards,
> Victor.
> 

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.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