delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/08/17:26:41

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <47FBE273.F390E790@dessent.net>
Date: Tue, 08 Apr 2008 14:24:03 -0700
From: Brian Dessent <brian AT dessent DOT net>
X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Question on gdb and ?? And also Frame did not save PC message
References: <VA DOT 000017a9 DOT 0052f369 AT thesoftwaresource DOT com>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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

Brian Keener wrote:

> (gdb) set cygwin-exceptions on
> (gdb) run
> ...
> Program received signal SIGSEGV, Segmentation fault.
> 0x610d5de9 in pthread_mutexattr_init (attr=0x23cb50)
>     at /usr/develop/src/src/src/winsup/cygwin/thread.cc:123
> 123       if ((*object)->magic != magic)
> (gdb) thread apply all bt

Why are you setting cygwin-exceptions on?  The SEGV you are seeing is
normal and not an actual SEGV.  That gdb setting was added specifically
to keep people from seeing this exception and others like it and
thinking that somehow there's a segmentation fault in pthreads code when
there isn't.  If you're going to enable the option then you need to
"continue" past those non-faults.

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/

- Raw text -


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