Minimal test case for Make crash bug

Dan Kegel dank@kegel.com
Mon Mar 22 00:35:00 GMT 2004


cgf wrote:
>>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?

Yes, it's a fresh update from ftp.lug.udel.edu, which has always been
a good mirror for me, and cygcheck confirms it's 1.5.9-1.  The cygwin
dll itself was freshly built from cygwin-shapshot-20040318-1, but
I got the same crash with the one installed by the setup utility from 
ftp.lug.udel.edu.

Here's the gdb stuff you asked for; I'll attach a fresh cygcheck.out
so you can see my mounts, which haven't changed.
Looks like cygheap is awful close to cygheap_max, hmm.  I don't
know what those are, but it sounds bad :-)

BTW what happens when you run my fds.c test program? How many fds do you 
get?
- Dan


(gdb) bt
#0  fhandler_base::fhandler_base() (this=0x0)
     at 
../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.cc:1275
#1  0x6102b354 in fhandler_dev_null::fhandler_dev_null() (this=0x0)
     at 
../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.cc:1290
#2  0x6101e284 in build_fh_pc(path_conv&) (pc=@0x22ec90)
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/fhandler.h:311
#3  0x6101ded8 in build_fh_name(char const*, void*, unsigned, 
suffix_info*) (
     name=0x401050 "/dev/null", h=0x0, opt=1, si=0x0)
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dtable.cc:351
#4  0x61095071 in open (unix_path=0x401050 "/dev/null", flags=0)
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/syscalls.cc:550
#5  0x610883cf in _sigfe ()
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/cygserver.h:82
#6  0x00000768 in ?? ()
#7  0xffffffff in ?? ()
#8  0x0022f070 in ?? ()
#9  0x6101cb0e in dll_list::init() (this=0x1)
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dll_init.cc:221
#10 0x61005ed4 in dll_crt0_1(char*) ()
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dcrt0.cc:888
#11 0x610060eb in _dll_crt0 ()
     at ../../../../cygwin-snapshot-20040318-1/winsup/cygwin/dcrt0.cc:942
(gdb) info dll
DLL Name                                   Load Address
/cygdrive/c/WINDOWS/System32/ntdll.dll     77f51000
/cygdrive/c/WINDOWS/system32/kernel32.dll  77e61000
/usr/bin/cygwin1.dll                       61001000
/cygdrive/c/WINDOWS/system32/advapi32.dll  77dd1000
/cygdrive/c/WINDOWS/system32/rpcrt4.dll    78001000
(gdb) p alloc_sz
$3 = 0
(gdb) p cygheap
$4 = 1634598912
(gdb) p cygheap_max
$5 = 1634749700	
(gdb) pwd
Working directory /home/liz.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20040322/b9e7b251/attachment.ksh>
-------------- next part --------------
--
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/


More information about the Cygwin mailing list