www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/08/13/10:53:04

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
Date: Tue, 13 Aug 2002 15:50:57 +0100
From: Ljubomir Josifovski <lbj AT cre DOT canon DOT co DOT uk>
To: cygwin AT cygwin DOT com
Subject: Re: My bug or your bug?
Message-ID: <20020813155057.A27091@berk.cre.canon.co.uk>
References: <20020521181950 DOT 84075 DOT qmail AT web13803 DOT mail DOT yahoo DOT com>
Mime-Version: 1.0
In-Reply-To: <20020521181950.84075.qmail@web13803.mail.yahoo.com>; from weiqigao@yahoo.com on Tue, May 21, 2002 at 11:19:50AM -0700

I'm experiencing the same problem - once the memory gets
exhausted, I have to exit all cygwin bash windows. 
Afterwards the problem goes away.

Any clues, anyone? (apart from "read the source" :-)))

-- 
Ljubomir Josifovski



On Tue, May 21, 2002 at 11:19:50AM -0700, Weiqi Gao wrote:
> Hi,
> 
> I have just encountered a situation that I think
> shouldn't happen.
> 
> Here's the transscript of the bash session.  The is a
> full installation of Cygwin on a Windows 2000 Pro
> workstation.
> 
> The failure of the first run of ./foo is expected. 
> But the error for the second run of ./foo is not
> expected.  As a matter of fact, after the first run of
> ./foo, ALL commands (cygwin or otherwise, such as ls
> and notepad, except bash built-ins) generate the same
> error.
> 
> I checked that I have only one cygwin1.dll on my
> system, and it's at the correct location
> (C:\cygwin\bin).
> 
> --
> Weiqi Gao
> weiqigao AT networkusa DOT net
> 
> ============================================
> [WGAO ~] 1 $ cd temp/src/c/memory/
> [WGAO ~/temp/src/c/memory] 2 $ cat foo.c
> #include <stdlib.h>
> 
> int main() {
>         int i;
>         char *p;
>         for (i = 0; i < 1024*1024; i++) {
>                 p = (char *) malloc(1024);
>                 if (p == NULL) {
>                         perror("malloc failed");
>                         printf("%d\n", i);
>                         break;
>                 }
>         }
> }
> [WGAO ~/temp/src/c/memory] 3 $ make foo
> gcc     foo.c   -o foo
> [WGAO ~/temp/src/c/memory] 4 $ ./foo
> malloc failed: Not enough memory
> 260130
> [WGAO ~/temp/src/c/memory] 5 $ ./foo
> C:\cygwin\bin\bash.exe: *** mount table size version
> mismatch detected - 0x409/0x4068.
> You have multiple copies of cygwin1.dll on your
> system.
> Search for cygwin1.dll using the Windows
> Start->Find/Search facility
> and delete all but the most recent version.  The most
> recent version *should*
> reside in x:\cygwin\bin, where 'x' is the drive on
> which you have
> installed the cygwin distribution.
>     119 [main] bash 1116 sync_with_child: child
> 800(0xCC) died before initialization with status code
> 0x1
>    3434 [main] bash 1116 sync_with_child: *** child
> state waiting for longjmp
> bash: fork: Resource temporarily unavailable
> [WGAO ~/temp/src/c/memory] 6 $
> ============================================
> 
> 
> 
> =====
> Weiqi Gao
> weiqigao AT yahoo DOT com

--
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