This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Minimal test case for Make crash bug


On Sat, Mar 20, 2004 at 10:57:46PM -0800, Dan Kegel wrote:
>Dan Kegel wrote:
>>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 ...
>
>OK, I built a debugging version of cygwin1.dll and dropped it on top of
>the normal one, then ran my test program with
>  export CYGWIN=error_start:C:\\cygwin\\bin\\gdb.exe
>  ./foo
>and hit 'c' and then 'bt' as suggested.  Looks like the debugger is a
>bit happier with the debugging build.  I don't have time to look at it
>tonight, but in case it makes any sense to you, here's the backtrace.

Can you provide the output from:

  info dll

  p alloc_sz
  p cygheap
  p cygheap_max

I assume that you're using cygwin 1.5.9 and that your mount table
is as you reported in your original message.  Could you also report
on the output of pwd?

Thanks,
cgf

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]