This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: My bug or your bug?
- From: Ljubomir Josifovski <lbj at cre dot canon dot co dot uk>
- To: cygwin at cygwin dot com
- Date: Tue, 13 Aug 2002 15:50:57 +0100
- Subject: Re: My bug or your bug?
- References: <20020521181950.84075.qmail@web13803.mail.yahoo.com>
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@networkusa.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@yahoo.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/