X-Spam-Check-By: sourceware.org Date: Sun, 21 May 2006 09:35:33 -0400 From: "Richard Schmitt" Subject: GDB and Cygwin SIGSEGV revisited To: Reply-to: Message-id: <002101c67cdb$6fbc6ee0$6702000a@BLUESEA> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 11 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-IsSubscribed: yes 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 I've seen a lot of discussion on issues with SIGSEGV and pthread mutexes with GDB under cygwin. I was very hopeful when I saw a reply by Brian Dessent that said this was fixed if I downloaded the latest gdb and a cygwin snapshot. Maybe there's something else I haven't downloaded but here's what I did, and I still have the problem. - ran cygwin's setup and updated my installation - downloaded the latest cygwin snapshot cygwin1-20060521.dll.bz2 - unzipped the cygwin snapshot, renamed it cygwin1.dll and placed in in /usr/bin - downloaded the latest gdb (6.4), built it and installed it. - tried to debug my program. What I get is: GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. ... Program received signal SIGSEGV, Segmentation fault. 0x610b0fc5 in pthread_mutexattr_init () from /usr/bin/cygwin1.dll (gdb) Curiously, if I issue the following to GDB as others have suggested: handle SIGSEGV nostop handle SIGTRAP nostop I will get continuous and unrelenting messages: Program received signal SIGSEGV, Segmentation fault. Is there a later or different snapshot of cygwin we should use, or a different GDB? Any help will be greatly appreciated. Rich * From: Brian Dessent * To: cygwin at cygwin dot com * Date: Mon, 08 May 2006 02:01:00 -0700 * Subject: Re: pthread_mutex_init + gdb issue again * References: <20060508084139 DOT GB18330 AT ns1 DOT anodized DOT com > * Reply-to: cygwin at cygwin dot com ________________________________ clayne AT anodized DOT com wrote: > Someone throw me a bone here, please. Rather than work-arounds, why not just use a recent build of gdb that doesn't suffer from this problem? The issue was fixed in CVS earlier this year. But do note that it requires functionality not present in Cygwin 1.5.19, so you'll also need to use a recent Cygwin snapshot. Brian -- 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/