This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: 1.5.10-3 : strange crashes of gethostbyname() under gdb
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Enzo Michelangeli <em at em dot no-ip dot com>
- Cc: cygwin at cygwin dot com
- Date: Sun, 6 Jun 2004 16:25:11 -0400 (EDT)
- Subject: Re: 1.5.10-3 : strange crashes of gethostbyname() under gdb
- References: <000201c44bd0$308638c0$0200a8c0@em.noip.com>
- Reply-to: cygwin at cygwin dot com
On Sun, 6 Jun 2004, Enzo Michelangeli wrote:
> I'm not sure it's my setup, but since I upgraded to Cygwin 1.5.10-3 gdb
> crashes when executing trivial calls to gethostbyname:
> [snip]
>
> Strangely enough, no SIGSEGV seems to occur if I don't run gdb.
>
> For the record, my Windows is an ancient Win98SE. The version of gdb
> should be the latest; for some reason it identifies itself as
> 2003-09-20-cvs, although according to setup.exe it should be slightly
> older, 20030919-1 (the other alternative offered is 20030303-1).
>
> Enzo
I don't know if it's related, but the newer versions of the Cygwin runtime
use a function from Kernel32.dll (IsBadWritePtr) that produces (and later
handles) an intentional SIGSEGV. Since the SIGSEGV is handled, it's not
seen outside of gdb. Did you try continuing a few times? For me (on
Win2k), 4 continues do the trick, and the program completes normally.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
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/