delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/06/18:51:14

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.1.0.6.0.20040606141850.0323f448@pop.prospeed.net>
X-Sender:
Date: Sun, 06 Jun 2004 14:21:19 -0400
To: "Enzo Michelangeli" <em AT em DOT no-ip DOT com>, <cygwin AT cygwin DOT com>
From: Larry Hall <cygwin-lh 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>
References: <000201c44bd0$308638c0$0200a8c0 AT em DOT noip DOT com>
Mime-Version: 1.0

At 10:00 AM 6/6/2004, you 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:
>
>-------------------------------
>$ gdb --args test/q
>GNU gdb 2003-09-20-cvs (cygwin-special)
>Copyright 2003 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you
>are
>welcome to change it and/or distribute copies of it under certain
>conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for
>details.
>This GDB was configured as "i686-pc-cygwin"...(no debugging symbols
>found)...
>(gdb) r
>Starting program: /home/em/KadC/test/q.exe
>
>Program received signal SIGSEGV, Segmentation fault.
>0xbff7a606 in KERNEL32!Heap32ListNext ()
>   from /cygdrive/c/WINDOWS/SYSTEM/KERNEL32.DLL
>(gdb)
>-------------------------------
>
>The source code is very simple:
>
>-------------------------------
>#include <netdb.h>
>#include <sys/socket.h>
>
>int main(int ac, char *av[]) {
> struct hostent *hp;
>
> hp = gethostbyname("emnb");
> return 0;
>}
>-------------------------------
>
>After reinstalling 1.5.9-1 everything has gone back to normal.
>
>-------------------------------
>$ gdb --args test/q
>GNU gdb 2003-09-20-cvs (cygwin-special)
>Copyright 2003 Free Software Foundation, Inc.
>GDB is free software, covered by the GNU General Public License, and you
>are
>welcome to change it and/or distribute copies of it under certain
>conditions.
>Type "show copying" to see the conditions.
>There is absolutely no warranty for GDB.  Type "show warranty" for
>details.
>This GDB was configured as "i686-pc-cygwin"...(no debugging symbols
>found)...
>(gdb) r
>Starting program: /home/em/KadC/test/q.exe
>---Type <return> to continue, or q <return> to quit---
>
>Program exited normally.
>(gdb)
>-------------------------------
>
>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).
>


Sounded like <http://www.cygwin.com/ml/cygwin/2004-04/msg00567.html> to
me.  So I tried it.  I get the SEGV in KERNEL32!IsBadWritePtr (), so I 
think the above thread applies.  If you ran across that or other related
threads in your search, I can understand you overlooking it.  But I think
you'll find it applies.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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