delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/06/16:25:29

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Sun, 6 Jun 2004 16:25:11 -0400 (EDT)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Enzo Michelangeli <em AT em DOT no-ip DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: 1.5.10-3 : strange crashes of gethostbyname() under gdb
In-Reply-To: <000201c44bd0$308638c0$0200a8c0@em.noip.com>
Message-ID: <Pine.GSO.4.58.0406061622000.19464@slinky.cs.nyu.edu>
References: <000201c44bd0$308638c0$0200a8c0 AT em DOT noip DOT com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.39

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 AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT 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/

- Raw text -


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