Mailing-List: contact cygwin-developers-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT cygwin DOT com Delivered-To: mailing list cygwin-developers AT cygwin DOT com Date: Wed, 9 Jan 2002 15:13:15 -0500 From: Christopher Faylor To: cygwin-developers AT cygwin DOT com Subject: Re: PostgreSQL and CVS DLL Message-ID: <20020109201315.GA7960@redhat.com> Reply-To: cygwin-developers AT cygwin DOT com Mail-Followup-To: cygwin-developers AT cygwin DOT com References: <20020109191040 DOT GA6891 AT redhat DOT com> <017b01c19948$57dbc440$a300a8c0 AT nhv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <017b01c19948$57dbc440$a300a8c0@nhv> User-Agent: Mutt/1.3.23.1i 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
>#7 0x61003f6e in dll_crt0_1 () at >/src/cygwin/src/winsup/cygwin/dcrt0.cc:769 > cygwin_except_entry = {prev = 0x22ffe0, >---Type to continue, or q to quit--- > handler = 0x6100d938 } > envc = 1628042088 > envp = (char **) 0x4 >#8 0x61004262 in _dll_crt0 () at /src/cygwin/src/winsup/cygwin/dcrt0.cc:863 > zeros = '\000' >#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
> u = (struct per_process *) 0x0 >(gdb) -- cgf AT redhat DOT com Red Hat, Inc. http://sources.redhat.com/ http://www.redhat.com/