delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/02/03/08:34:21

X-Spam-Check-By: sourceware.org
Message-ID: <43E35BCE.5030503@byu.net>
Date: Fri, 03 Feb 2006 06:34:06 -0700
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
MIME-Version: 1.0
To: Dierk Bolten <dbolten AT web DOT de>
CC: cygwin AT cygwin DOT com
Subject: Re: seg fault in cygwin1.dll during gdb session
References: <369334980 AT web DOT de>
In-Reply-To: <369334980@web.de>
X-IsSubscribed: yes
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

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Dierk Bolten on 2/3/2006 6:20 AM:
> 
> when I run tree.exe on an example xml file inside bash it works fine, but when 
> I start the program inside gdb (or ddd), gdb receives a sig fault
> 
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x610ae938 in pthread_key_create () from /usr/bin/cygwin1.dll
> 
> Does somebody have a clue what is going on? Any help is much appreciated!

Searching the mailing list archives would show that this question has
already come up (several times this week, in fact).  The fault is
EXPECTED, and HARMLESS - just continue on debugging from that point.
Basically, inside cygwin functions, cygwin installs its own fault
detection handler, and pthread_key_create intentionally faults on the
first time the key is used.  It is just a matter of teaching gdb that this
fault is expected and will be covered seamlessly by cygwin.

http://cygwin.com/ml/cygwin-patches/2006-q1/msg00039.html

- --
Life is short - so eat dessert first!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFD41vO84KuGfSFAYARAt42AKDPNuWeRWQYqEwKDt/XOGj/X3DXxACgikSp
ITVHFuV0o2r43jnfavIExEM=
=1qwR
-----END PGP SIGNATURE-----

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