Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: Sat, 6 Aug 2005 23:18:34 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: Postmaster core dumps Message-ID: <20050807031833.GA12143@trixie.casa.cgf.cx> Reply-To: cygwin AT cygwin DOT com References: <0MKu60-1E0L272OZO-0000t4 AT mxeu10 DOT kundenserver DOT de> <20050803153956 DOT GH14783 AT calimero DOT vinschen DOT de> <20050804131030 DOT GR14783 AT calimero DOT vinschen DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050804131030.GR14783@calimero.vinschen.de> User-Agent: Mutt/1.5.8i On Thu, Aug 04, 2005 at 03:10:30PM +0200, Corinna Vinschen wrote: >On Aug 3 17:39, Corinna Vinschen wrote: >> 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. [...] >> >> 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. > >FYI, I tracked the problem down to a point that I can savely say, >it's neither a bug in postgresql, nor in cygserver. It has nothing >to do with semaphores. As noted above, it's a heap problem, but >it's entirely inside Cygwin. Unfortunately I have no fix so far. >For the curious, it's reproducible with > > int fd; > for (;;) > fd = dup (0); This should be fixed in today's snapshot. cgf -- 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/