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 22:03:32 +0100 From: Corinna Vinschen To: cygwin-developers AT cygwin DOT com Subject: Re: PostgreSQL and CVS DLL Message-ID: <20020109220332.A30517@cygbert.vinschen.de> 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> <20020109213020 DOT E12057 AT cygbert DOT vinschen DOT de> <20020109215804 DOT F12057 AT cygbert DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020109215804.F12057@cygbert.vinschen.de> User-Agent: Mutt/1.3.22.1i On Wed, Jan 09, 2002 at 09:58:04PM +0100, Corinna Vinschen wrote: > On Wed, Jan 09, 2002 at 09:30:20PM +0100, Corinna Vinschen wrote: > > On Wed, Jan 09, 2002 at 03:00:52PM -0500, Norman Vine wrote: > > > (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) > > > > Is postgreSQL using socketpairs, perhaps? > > Nope, forget that. I think I've found it. Could you please try it > again with the latest from CVS? I've just checked in a patch. To be more enlighting (at least a bit): I haven't had the postgreSQL sources handy so I first poked a bit around. Then I downloaded these sources and found that the affected postgreSQL function StreamConnection() accepts a connection. This was the hint I missed. My change to return a correct path for AF_LOCAL sockets in a call to getsockname() requires calling a fhandler_socket method set_sun_path(). I called it in cygwin_bind() but I forgot to call it for the newly created socket in a call to cygwin_accept. I hope that fixes it. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc.