Mail Archives: cygwin-developers/2002/01/09/15:14:38
On Wed, Jan 09, 2002 at 03:00:52PM -0500, Norman Vine wrote:
>Christopher Faylor writes:
>>>>>
>>>>>On Wed, Jan 09, 2002 at 11:39:56AM -0500, Norman Vine wrote:
>>>>>>
>>>>>> postgres runs fine using snapshot DLL dated 20011231
>>>>>> crashes for me with all DLL's dated 20020104 and later
>>>>>>
>>>>>> I have a locally built DLL 20020103 that also crashes
>>>>>
>>>>>Please try to determine what specific Cygwin change is causing the
>>>>>postmaster problem. Since the date range is small, searching
>>>>>cygwin-cvs should not take too long.
>>>>
>>>>Where is the analysis of *where* the program died? That should be
>>>>pretty simple to show. Look at how-to-debug-cygwin.txt for details.
>
>>I am trying to reorient your (and everyone's) thinking.
>
>:-)
>
>>If you are not set up to do this or don't want to do this then send "it
>>crashes" bug reports to cygwin AT cygwin DOT com.
>
>OK
>
>Here is the backtrace of attempting the postgres regression test
>with the todays Cygwin CVS files
>
>HTH
It helps tremendously!
Now, we can see that it looks like this might be due to a recent change
from Corinna.
THANK YOU!
cgf
>(gdb) bt full
>#0 strncpy (dst0=0xa01d712 "", src0=0x0, count=109)
> at /src/cygwin/src/newlib/libc/string/strncpy.c:116
> dst0 = 0xa01d712 ""
> count = 109
> dst = 0xa01d712 ""
> src = 0x0
> aligned_dst = (long int *) 0xa01d712
> aligned_src = (long int *) 0x22f924
>#1 0x61033758 in cygwin_getsockname (fd=7, addr=0xa01d710,
>namelen=0x22f924)
> at /src/cygwin/src/winsup/cygwin/net.cc:1380
> namelen = (int *) 0x22f924
> res = 0
> sock = (fhandler_socket *) 0xa01d712
>#2 0x004bf0a6 in StreamConnection (server_fd=3, port=0xa01d5d0)
> at pqcomm.c:401
> addrlen = 112
>#3 0x004f5a52 in ConnCreate (serverFd=3) at postmaster.c:1298
> port = (Port *) 0xa01d5d0
>#4 0x004f4cda in ServerLoop () at postmaster.c:905
> port = (Port *) 0x0
> rmask = {fds_bits = {8, 0}}
> wmask = {fds_bits = {0, 0}}
> timeout = (struct timeval *) 0x0
> timeout_tv = {tv_sec = 0, tv_usec = 0}
> readmask = {fds_bits = {8, 0}}
> writemask = {fds_bits = {0, 0}}
> nSockets = 4
> curr = (Dlelem *) 0x10000000
> now = {tv_sec = 1010605539, tv_usec = 604000}
> later = {tv_sec = 1010605539, tv_usec = 614000}
> tz = {tz_minuteswest = 300, tz_dsttime = 1}
>#5 0x004f410a in PostmasterMain (argc=4, argv=0x615665c0) at
>postmaster.c:685
> opt = -1
> status = 0
> original_extraoptions =
>"\000\000\000\000I+Fw\000\000\000\000\234?\"\000
>\0006\na\\tmp\a\000\001\000ck\\install\\usr\\bin\\postgres.exe\000\000\000#\
>000F
>f#\000\000\000\000\000\224?\"\000\210\006#\000Hv\"\000?\235vwP)?w????Xv\"\00
>0??n
>w=?\"\000\000\000\000\0003)?w\000\000#\000HN#\000\000\000\000\000??\"\000\21
>0\00
>6#\000\200v\"\000?\235vwP)?w????@L\na?n\"\000\034\000?\000\000\000\000\0008\
>000\
>000\000 \000\000\000 \000\000\000\214:\na\b?\"\000\0006\na\200fFw????"...
> potential_DataDir = 0x61565d18
>"/usr/src/postgresql-7.1.3/src/test/regre
>ss/./tmp_check/data"
>#6 0x004c058e in main (argc=4, argv=0x615665c0) at main.c:171
> len = 82
> pw = (struct passwd *) 0xd0
> pw_name_persist = 0x1 <Address 0x1 out of bounds>
>#7 0x61003f6e in dll_crt0_1 () at
>/src/cygwin/src/winsup/cygwin/dcrt0.cc:769
> cygwin_except_entry = {prev = 0x22ffe0,
>---Type <return> to continue, or q <return> to quit---
> handler = 0x6100d938 <handle_exceptions>}
> envc = 1628042088
> envp = (char **) 0x4
>#8 0x61004262 in _dll_crt0 () at /src/cygwin/src/winsup/cygwin/dcrt0.cc:863
> zeros = '\000' <repeats 15 times>
>#9 0x610042a1 in dll_crt0 (uptr=0x0)
> at /src/cygwin/src/winsup/cygwin/dcrt0.cc:876
> uptr = (per_process *) 0x0
>#10 0x0059b133 in cygwin_crt0 ()
> at /src/cygwin/src/winsup/cygwin/lib/cygwin_crt0.c:32
> f = 0x4c0424 <main>
> u = (struct per_process *) 0x0
>(gdb)
--
cgf AT redhat DOT com Red Hat, Inc.
http://sources.redhat.com/ http://www.redhat.com/
- Raw text -