This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: seg fault in cygwin1.dll during gdb session


-----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@byu.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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]