[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#230281: marked as done (libc6: Various programs segfault in __ns_samename in libresolv.so.2)



Your message dated Fri, 30 Jan 2004 11:14:14 -0500
with message-id <20040130161414.GA23943@nevyn.them.org>
and subject line Bug#230281: libc6: Various programs segfault in __ns_samename in libresolv.so.2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Jan 2004 18:05:40 +0000
>From jks@iki.fi Thu Jan 29 10:05:40 2004
Return-path: <jks@iki.fi>
Received: from smtp1.pp.htv.fi [212.90.64.119] 
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AmGXs-0004AU-00; Thu, 29 Jan 2004 10:05:40 -0800
Received: from posti.pp.htv.fi (posti.pp.htv.fi [212.90.64.50])
	by smtp1.pp.htv.fi (Postfix) with ESMTP
	id A15B67FEFB; Thu, 29 Jan 2004 20:05:38 +0200 (EET)
Received: from [127.0.0.1] (cs78201092.pp.htv.fi [62.78.201.92])
	by posti.pp.htv.fi (8.11.1 (Revision 1.5+JAGae91741+JAGae92668) /8.11.1) with ESMTP id i0TI5cB25044;
	Thu, 29 Jan 2004 20:05:38 +0200 (EET)
Message-Id: <[🔎] 200401291805.i0TI5cB25044@posti.pp.htv.fi>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: =?iso-8859-15?q?Jouni_K_Sepp=E4nen?= <jks@iki.fi>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libc6: Various programs segfault in __ns_samename in libresolv.so.2
X-Mailer: reportbug 2.39
Date: Thu, 29 Jan 2004 20:05:35 +0200
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_27 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-bugs.debian.org_2004_01_27
X-Spam-Level: 

Package: libc6
Version: 2.3.2.ds1-10
Severity: normal

Various programs die with a segmentation fault in __ns_samename when
given a nonexistent network address. For example, "ping qwerty", "finger
@qwerty", and "wget http://qwerty/"; do this (when no host "qwerty"
exists). They do manage to print out an error message from the failed
query, and the segfault happens when they try to exit.

Here's a small program that segfaults:

------------------------------
#include <netdb.h>
#include <stdlib.h>

int main() 
{
  gethostbyname("qwerty");
  exit(1);
}
------------------------------

vaino:/tmp> gdb ./foo
GNU gdb 5.3-debian
Copyright 2002 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 "i386-linux"...
(gdb) run
Starting program: /tmp/foo 

Program received signal SIGSEGV, Segmentation fault.
0x4c457f00 in ?? ()
(gdb) bt
#0  0x4c457f00 in ?? ()
#1  0x40174e66 in __ns_samename () from /lib/libresolv.so.2
#2  0x4000c4e6 in _dl_init () from /lib/ld-linux.so.2
#3  0x400548f2 in exit () from /lib/libc.so.6
#4  0x080483bc in main () at foo.c:7
#5  0x4003eda6 in __libc_start_main () from /lib/libc.so.6
(gdb) info shared
>From        To          Syms Read   Shared Object Library
0x4003ebc0  0x40134278  Yes         /lib/libc.so.6
0x40000be0  0x40011d5f  Yes         /lib/ld-linux.so.2
0x4015cd70  0x40162e10  Yes         /lib/libnss_files.so.2
0x40164e90  0x40166e20  Yes         /lib/libnss_dns.so.2
0x4016a980  0x40174e50  Yes         /lib/libresolv.so.2
(gdb) info registers
eax            0x40168003       1075216387
ecx            0x40152148       1075126600
edx            0x4c457f00       1279622912
ebx            0x401776d0       1075279568
esp            0xbffff96c       0xbffff96c
ebp            0xbffff978       0xbffff978
esi            0x804a460        134521952
edi            0x401775fc       1075279356
eip            0x4c457f00       0x4c457f00
eflags         0x10216  66070
cs             0x23     35
ss             0x2b     43
ds             0x2b     43
es             0x2b     43
fs             0x0      0
gs             0x0      0
fctrl          0x37f    895
fstat          0x0      0
ftag           0xffff   65535
fiseg          0x0      0
fioff          0x0      0
foseg          0x0      0
fooff          0x0      0
fop            0x0      0
mxcsr          0x1f80   8064
orig_eax       0xffffffff       -1
(gdb) x/16i $pc
0x4c457f00:     add    %al,(%eax)
0x4c457f02:     add    %al,(%eax)
0x4c457f04:     add    %al,(%eax)
0x4c457f06:     add    %al,(%eax)
0x4c457f08:     add    %al,(%eax)
0x4c457f0a:     add    %al,(%eax)
0x4c457f0c:     add    %al,(%eax)
0x4c457f0e:     add    %al,(%eax)
0x4c457f10:     add    %al,(%eax)
0x4c457f12:     add    %al,(%eax)
0x4c457f14:     add    %al,(%eax)
0x4c457f16:     add    %al,(%eax)
0x4c457f18:     add    %al,(%eax)
0x4c457f1a:     add    %al,(%eax)
0x4c457f1c:     add    %al,(%eax)
0x4c457f1e:     add    %al,(%eax)



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux vaino 2.4.23 #1 Thu Dec 4 20:46:59 EET 2003 i686
Locale: LANG=en_IE@euro, LC_CTYPE=en_IE@euro

Versions of packages libc6 depends on:
hi  libdb1-compat                 2.1.3-7    The Berkeley database routines [gl

-- no debconf information


---------------------------------------
Received: (at 230281-done) by bugs.debian.org; 30 Jan 2004 16:14:22 +0000
>From drow@crack.them.org Fri Jan 30 08:14:22 2004
Return-path: <drow@crack.them.org>
Received: from nevyn.them.org [66.93.172.17] (Debian-exim)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AmbHi-0004oU-00; Fri, 30 Jan 2004 08:14:22 -0800
Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian))
	id 1AmbHa-0006ES-Sn; Fri, 30 Jan 2004 11:14:14 -0500
Date: Fri, 30 Jan 2004 11:14:14 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: Jouni K Seppanen <jks@iki.fi>
Cc: GOTO Masanori <gotom@debian.or.jp>, 230281-done@bugs.debian.org
Subject: Re: Bug#230281: libc6: Various programs segfault in __ns_samename in libresolv.so.2
Message-ID: <20040130161414.GA23943@nevyn.them.org>
References: <[🔎] 200401291805.i0TI5cB25044@posti.pp.htv.fi> <[🔎] 20040129184016.GA16760@nevyn.them.org> <[🔎] 298yjqpo1f.fsf@itl-pc9.hut.fi> <[🔎] 81vfmu88qx.wl@omega.webmasters.gr.jp> <[🔎] 29k739eavl.fsf@itl-pc9.hut.fi>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] 29k739eavl.fsf@itl-pc9.hut.fi>
User-Agent: Mutt/1.5.1i
Delivered-To: 230281-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_27 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 
	version=2.60-bugs.debian.org_2004_01_27
X-Spam-Level: 

On Fri, Jan 30, 2004 at 05:04:14PM +0200, Jouni K Seppanen wrote:
> GOTO Masanori <gotom@debian.or.jp> writes:
> 
> > Checking from your information, it should not occur sigsegv.  Please
> > retreive .deb packages and reinstall them, and test.
> 
> In fact, the problem went away by rebooting. I don't think I was doing
> anything unusual before I noticed the problem... Perhaps this was a
> hardware glitch. (I did run memtest86 for a rather long time when I
> bought the computer, but of course some things only fail after longer
> use, and probably memtest86 doesn't detect all kinds of errors.)
> 
> > BTW, did you use
> > additional auth method like NIS or LDAP?
> 
> No, I haven't been using anything like that.
> 
> > Please imagine that if your problem is really existed, then many
> > users also started to complain.
> 
> Naturally. I suppose that the bug can be closed, since I'm not seeing
> the problem any more. If the same symptoms should reoccur, I'll get
> back to this, but for now I'll try to see if I can find anything wrong
> with the hardware.

Thanks for the followup; closing.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer



Reply to: