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