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 X-pair-Authenticated: 24.126.73.164 Message-ID: <405D1ACD.4060809@kegel.com> Date: Sat, 20 Mar 2004 20:32:13 -0800 From: Dan Kegel User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Minimal test case for Make crash bug References: <405C00BF DOT 3090507 AT kegel DOT com> <405C06C4 DOT 7030508 AT kegel DOT com> <405C6C4B DOT 90409 AT kegel DOT com> <405C939E DOT 5020909 AT kegel DOT com> In-Reply-To: <405C939E.5020909@kegel.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 #include #include 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... It's all a bit mysterious. Where's a good place to look for clues? I've already tried shutting down as many systray programs as I can... - Dan -- 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/