delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/21/15:20:12

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
From: "Hannu E K Nevalainen" <garbage_collector AT telia DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: Minimal test case for Make crash bug
Date: Sun, 21 Mar 2004 21:18:51 +0100
Message-ID: <NGBBLLIAMFLGJEOAJCCEGEICDJAA.garbage_collector@telia.com>
MIME-Version: 1.0
In-Reply-To: <405D1ACD.4060809@kegel.com>

> From: Dan Kegel

> Dan Kegel wrote:
> > Got it.  I'm attaching a minimal test case.  glibc's makefile
> > requires that Make be able to handle 140 levels of include recursion,
> > but cygwin Make crashes after about 130 -- unless you're running
> > under gdb or strace, in which case it works fine.
>
> Turns out the smallest test case is even smaller:
>
> #include <stdio.h>
> #include <fcntl.h>
> #include <stdlib.h>
>
> int main(int argc, char **argv)
> {
>          int i;
>          for (i=0; ; i++) {
>                  int fd = open("foo.c", O_RDONLY);
>                  printf("fd #%d is %d\n", i, fd);
>          }
> }
>
> This crashes for me at the 133rd fd unless I run it under
> gdb, in which case it runs quite happily forever without
> crashing (though it runs out of fds fairly soon).
> And this is a WinXP system with an up-to-date cygwin and
> scads of memory, not some Win95 box with 16MB...

FWIW; using the previously posted fds.c, slightly modified:
 I can reproduce this with 1.5.9-1 (ususally 133 iterations and a core
dump).
Switching to 1.5.8-1 cygwin1.dll rasies the limit to some 3200 iterations
(no dump).

/Hannu E K Nevalainen, B.Sc. EE - 59+16.37'N, 17+12.60'E

** on a mailing list; please keep replies on that particular list **

-- printf("LocalTime: UTC+%02d\n",(DST)? 2:1); --
--END OF MESSAGE--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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