delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/03/20/23:31:58

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
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 <dank AT kegel DOT com>
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>

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

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019