Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20020521181950.84075.qmail@web13803.mail.yahoo.com> Date: Tue, 21 May 2002 11:19:50 -0700 (PDT) From: Weiqi Gao Subject: My bug or your bug? To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 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 __________________________________________________ Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience http://launch.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/