delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/08/03/11:40:16

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Wed, 3 Aug 2005 17:39:56 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Postmaster core dumps
Message-ID: <20050803153956.GH14783@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <0MKu60-1E0L272OZO-0000t4 AT mxeu10 DOT kundenserver DOT de>
Mime-Version: 1.0
In-Reply-To: <0MKu60-1E0L272OZO-0000t4@mxeu10.kundenserver.de>
User-Agent: Mutt/1.4.2i

On Aug  3 17:17, Novaelec wrote:
> Hello Corinna,
> 
> I think the problem is in cygserver because the bug is related to semaphores
> when I use gdb.
> 
> Here you have a case where you get the error:
> 
> First, you must install postgresql (ver. 7) with Cygwin installation. Later,
> configure the database:
> 
> $ /usr/sbin/cygserver&
> 
> $ export CYGWIN=server
> 
> $ initdb -D /usr/local/pgsql/data -W -E LATIN1
> 
> And now comes the problem:
> 
> $ postmaster -D /usr/local/pgsql/data
> 
> It returns "segmentation fault (core dumped)".

That's not what I meant.  I ws talking about minimum source code which
allows to reproduce the problem.

> Any idea?

Sorry to say that, but to me it looks like a bug in postmaster.  Looking
into the stacktrace printed when the SEGV occurs, I'm getting this:

$ addr2line -e /bin/cygwin1.dll 610D6127 610028FE 610173A9 61017A6E 61017D1F 6109E76C 610942FF
/home/corinna/src/cygwin/vanilla/newlib/libc/machine/i386/memset.S:45
/home/corinna/src/cygwin/vanilla/winsup/cygwin/cygheap.cc:331
/home/corinna/src/cygwin/vanilla/winsup/cygwin/dtable.cc:375
/home/corinna/src/cygwin/vanilla/winsup/cygwin/dtable.cc:486
/home/corinna/src/cygwin/vanilla/winsup/cygwin/dtable.cc:532
/home/corinna/src/cygwin/vanilla/winsup/cygwin/syscalls.cc:127

This is the stacktrace of a dup() call on the tty slave descriptor.  It
looks like a heap corruption to me.  It has certainly nothing to do with
semaphores.

I'd rather like to see somebody who knows postmaster to debug it to the
point where the SEGV occurs and to create a minimum testcase (see above)
if possible.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          mailto:cygwin AT cygwin DOT com
Red Hat, Inc.

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019