Subject: lib/25869: resolver changes make bitkeeper crash
To: None <gnats-bugs@gnats.netbsd.org>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 06/08/2004 18:50:11
>Number:         25869
>Category:       lib
>Synopsis:       recent resolver changes make bitkeeper crash
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 08 09:51:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 2.0F
>Organization:

>Environment:
	
	
System: NetBSD kaeru 2.0F NetBSD 2.0F (build.kaeru) #1386: Tue Jun 8 11:17:26 JST 2004 takashi@kaeru:/home/takashi/work/kernel/build.kaeru i386
Architecture: i386
Machine: i386
>Description:
	bitkeeper 3.2.1 (http://www.bitkeeper.com/) dumps core
	with recent libc.
	the same binary works fine with libc.so.12.117.

>How-To-Repeat:

kaeru% LD_PRELOAD=/lib/libc.so.12.117 bk -r check -cR      [~/tmp/bk/linux-2.5]
sane: not in a BitKeeper repository
kaeru% LD_PRELOAD=/lib/libc.so.12.118 bk -r check -cR      [~/tmp/bk/linux-2.5]
output error: Broken pipe
kaeru% bk version                                          [~/tmp/bk/linux-2.5]
BitKeeper/Free version is bk-3.2.1 20040528210414 for x86-netbsd.1
Built by: wscott@netbsd.bitmover.com in /tmp/.build/bk-3.2.x-wscott/src
Built on: Fri May 28 14:24:47 PDT 2004
kaeru% gdb /usr/local/bitkeeper/bk bk.core                 [~/tmp/bk/linux-2.5]
(no debugging symbols found)...Core was generated by `bk'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/libexec/ld.elf_so...(no debugging symbols found)...
done.
Loaded symbols for /usr/libexec/ld.elf_so
Reading symbols from /lib/libc.so.12.118...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.12.118
#0  0x08153002 in ?? ()
(gdb) bt
#0  0x08153002 in ?? ()
#1  0xbdba69a5 in fgets () from /lib/libc.so.12.118
#2  0x0807c8bf in dirname ()
#3  0x0807ccd3 in dirname ()
#4  0x0805b34e in dladdr ()
#5  0x0804b59c in dladdr ()
#6  0x0804b2f0 in dladdr ()
#7  0x0804a840 in getsockname ()
(gdb)


diff of libc idents:

--- 117.2	2004-06-08 18:37:56.000000000 +0900
+++ 118	2004-06-08 17:38:46.000000000 +0900
@@ -41,6 +41,7 @@
      $NetBSD: ashrdi3.c,v 1.9 2003/08/07 16:43:16 agc Exp $
      $NetBSD: asprintf.c,v 1.12 2003/01/18 11:29:50 thorpej Exp $
      $NetBSD: assert.c,v 1.15 2003/08/07 16:42:46 agc Exp $
+     $NetBSD: assertions.c,v 1.2 2004/05/20 19:52:31 christos Exp $
      $NetBSD: atof.c,v 1.12 2003/08/07 16:43:38 agc Exp $
      $NetBSD: atoi.c,v 1.11 2003/08/07 16:43:38 agc Exp $
      $NetBSD: atol.c,v 1.10 2003/08/07 16:43:38 agc Exp $
@@ -128,6 +129,8 @@
      $NetBSD: errlist.c,v 1.14 2003/08/07 16:42:47 agc Exp $
      $NetBSD: errx.c,v 1.11 2003/10/27 00:12:42 lukem Exp $
      $NetBSD: ethers.c,v 1.20 2002/09/16 19:25:33 tron Exp $
+     $NetBSD: ev_streams.c,v 1.2 2004/05/20 19:52:31 christos Exp $
+     $NetBSD: ev_timers.c,v 1.2 2004/05/20 19:52:31 christos Exp $
      $NetBSD: execl.c,v 1.11 2003/08/07 16:42:47 agc Exp $
      $NetBSD: execle.c,v 1.8 2003/08/07 16:42:47 agc Exp $
      $NetBSD: execlp.c,v 1.8 2003/08/07 16:42:47 agc Exp $
@@ -190,7 +193,7 @@
      $NetBSD: fvwrite.c,v 1.15 2003/08/07 16:43:26 agc Exp $
      $NetBSD: fwalk.c,v 1.11 2003/08/07 16:43:26 agc Exp $
      $NetBSD: fwrite.c,v 1.15 2003/08/07 16:43:26 agc Exp $
-     $NetBSD: getaddrinfo.c,v 1.69 2004/04/14 04:46:04 itojun Exp $
+     $NetBSD: getaddrinfo.c,v 1.70 2004/05/21 02:30:03 christos Exp $
      $NetBSD: getbsize.c,v 1.15 2003/08/07 16:42:48 agc Exp $
      $NetBSD: getc.c,v 1.11 2003/08/07 16:43:26 agc Exp $
      $NetBSD: getcap.c,v 1.41 2004/04/25 06:45:29 christos Exp $
@@ -202,7 +205,7 @@
      $NetBSD: getenv.c,v 1.17 2003/08/07 16:43:39 agc Exp $
      $NetBSD: getgrent.c,v 1.48 2003/10/13 15:36:33 agc Exp $
      $NetBSD: getgrouplist.c,v 1.17 2003/08/07 16:42:49 agc Exp $
-     $NetBSD: gethnamaddr.c,v 1.58 2003/10/11 03:35:42 enami Exp $
+     $NetBSD: gethnamaddr.c,v 1.59 2004/05/21 02:30:03 christos Exp $
      $NetBSD: gethostid.c,v 1.6 2004/04/19 13:16:42 atatat Exp $
      $NetBSD: gethostname.c,v 1.11 2003/08/07 16:42:50 agc Exp $
      $NetBSD: getifaddrs.c,v 1.10 2002/08/09 04:29:29 itojun Exp $
@@ -213,7 +216,7 @@
      $NetBSD: getnetconfig.c,v 1.12 2003/09/09 03:56:40 itojun Exp $
      $NetBSD: getnetent.c,v 1.16 2004/05/08 18:52:15 kleink Exp $
      $NetBSD: getnetgrent.c,v 1.29 2002/05/26 14:03:20 wiz Exp $
-     $NetBSD: getnetnamadr.c,v 1.29 2004/05/08 18:52:15 kleink Exp $
+     $NetBSD: getnetnamadr.c,v 1.30 2004/05/21 02:30:03 christos Exp $
      $NetBSD: getnetpath.c,v 1.8 2003/09/09 03:56:40 itojun Exp $
      $NetBSD: getopt.c,v 1.26 2003/08/07 16:43:40 agc Exp $
      $NetBSD: getopt_long.c,v 1.16 2003/10/27 00:12:42 lukem Exp $
@@ -243,6 +246,7 @@
      $NetBSD: getw.c,v 1.9 2003/08/07 16:43:27 agc Exp $
      $NetBSD: getwd.c,v 1.14 2003/08/07 16:42:39 agc Exp $
      $NetBSD: gmon.c,v 1.22 2004/05/10 22:16:42 thorpej Exp $
+     $NetBSD: h_errno.c,v 1.1 2004/05/20 19:31:40 christos Exp $
      $NetBSD: hash.c,v 1.18 2003/08/07 16:42:42 agc Exp $
      $NetBSD: hash_bigkey.c,v 1.17 2003/08/07 16:42:42 agc Exp $
      $NetBSD: hash_buf.c,v 1.10 2003/08/07 16:42:42 agc Exp $
@@ -251,8 +255,8 @@
      $NetBSD: hash_page.c,v 1.16 2003/08/07 16:42:43 agc Exp $
      $NetBSD: hcreate.c,v 1.5 2004/04/23 02:48:12 simonb Exp $
      $NetBSD: heapsort.c,v 1.14 2003/09/07 19:06:50 wiz Exp $
-     $NetBSD: herror.c,v 1.17 2003/08/07 16:43:10 agc Exp $
-     $NetBSD: hesiod.c,v 1.20 2002/11/11 17:56:11 thorpej Exp $
+     $NetBSD: herror.c,v 1.4 2004/05/23 05:09:52 christos Exp $
+     $NetBSD: hesiod.c,v 1.21 2004/05/21 02:30:03 christos Exp $
      $NetBSD: humanize_number.c,v 1.5 2003/12/26 11:30:36 simonb Exp $
      $NetBSD: iconv.c,v 1.2 2003/07/01 09:42:17 tshiozak Exp $
      $NetBSD: if_indextoname.c,v 1.4 2000/11/24 08:21:12 itojun Exp $
@@ -260,16 +264,19 @@
      $NetBSD: if_nametoindex.c,v 1.4 2000/11/24 08:21:12 itojun Exp $
      $NetBSD: index.S,v 1.11 2003/07/26 19:24:34 salo Exp $
      $NetBSD: index.S,v 1.11 2003/07/26 19:24:34 salo Exp $
-     $NetBSD: inet_lnaof.c,v 1.10 2003/08/07 16:43:11 agc Exp $
-     $NetBSD: inet_makeaddr.c,v 1.15 2003/08/07 16:43:11 agc Exp $
-     $NetBSD: inet_net_ntop.c,v 1.19 2002/11/17 20:49:33 itojun Exp $
-     $NetBSD: inet_net_pton.c,v 1.16 2001/12/08 12:06:12 lukem Exp $
-     $NetBSD: inet_neta.c,v 1.15 2002/11/11 18:02:37 thorpej Exp $
-     $NetBSD: inet_netof.c,v 1.11 2003/08/07 16:43:11 agc Exp $
-     $NetBSD: inet_network.c,v 1.19 2003/08/07 16:43:11 agc Exp $
-     $NetBSD: inet_ntoa.c,v 1.11 2003/08/07 16:43:11 agc Exp $
-     $NetBSD: inet_ntop.c,v 1.13 2002/11/11 18:03:10 thorpej Exp $
-     $NetBSD: inet_pton.c,v 1.19 2003/05/05 21:35:42 bjh21 Exp $
+     $NetBSD: inet_addr.c,v 1.2 2004/05/20 23:12:33 christos Exp $
+     $NetBSD: inet_cidr_ntop.c,v 1.2 2004/05/20 23:12:33 christos Exp $
+     $NetBSD: inet_cidr_pton.c,v 1.2 2004/05/20 23:12:33 christos Exp $
+     $NetBSD: inet_lnaof.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_makeaddr.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_net_ntop.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_net_pton.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_neta.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_netof.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_network.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_ntoa.c,v 1.1 2004/05/20 23:13:02 christos Exp $
+     $NetBSD: inet_ntop.c,v 1.2 2004/05/20 23:12:33 christos Exp $
+     $NetBSD: inet_pton.c,v 1.2 2004/05/20 23:12:33 christos Exp $
      $NetBSD: initgroups.c,v 1.21 2003/08/07 16:42:51 agc Exp $
      $NetBSD: iordi3.c,v 1.4 2003/08/07 16:43:16 agc Exp $
      $NetBSD: ip6opt.c,v 1.9 2002/05/05 08:28:47 simonb Exp $
@@ -330,8 +337,14 @@
      $NetBSD: nlist_elf64.c,v 1.6 2003/07/26 19:24:43 salo Exp $
      $NetBSD: notdi2.c,v 1.4 2003/08/07 16:43:17 agc Exp $
      $NetBSD: ns_addr.c,v 1.17 2004/05/09 11:25:20 kleink Exp $
+     $NetBSD: ns_name.c,v 1.2 2004/05/20 20:35:05 christos Exp $
+     $NetBSD: ns_netint.c,v 1.2 2004/05/20 20:19:00 christos Exp $
      $NetBSD: ns_ntoa.c,v 1.12 2003/09/23 03:19:28 itojun Exp $
-     $NetBSD: nsap_addr.c,v 1.12 2003/08/07 16:43:12 agc Exp $
+     $NetBSD: ns_parse.c,v 1.2 2004/05/20 20:35:05 christos Exp $
+     $NetBSD: ns_print.c,v 1.4 2004/05/21 08:20:50 martin Exp $
+     $NetBSD: ns_samedomain.c,v 1.2 2004/05/20 20:35:05 christos Exp $
+     $NetBSD: ns_ttl.c,v 1.2 2004/05/20 20:35:05 christos Exp $
+     $NetBSD: nsap_addr.c,v 1.2 2004/05/20 23:12:33 christos Exp $
      $NetBSD: nsdispatch.c,v 1.18 2002/05/26 14:48:19 wiz Exp $
      $NetBSD: nslexer.l,v 1.7 2004/01/25 16:38:15 lukem Exp $
      $NetBSD: nsparser.y,v 1.9 2004/01/25 16:38:15 lukem Exp $
@@ -358,7 +371,7 @@
      $NetBSD: puts.c,v 1.12 2003/08/07 16:43:29 agc Exp $
      $NetBSD: putw.c,v 1.11 2003/08/07 16:43:29 agc Exp $
      $NetBSD: pw_scan.c,v 1.13 2003/10/27 00:12:42 lukem Exp $
-     $NetBSD: pwcache.c,v 1.26 2004/04/23 02:58:27 simonb Exp $
+     $NetBSD: pwcache.c,v 1.27 2004/05/18 22:14:35 sjg Exp $
      $NetBSD: pwrite.c,v 1.7 2003/08/07 16:44:04 agc Exp $
      $NetBSD: pwritev.c,v 1.4 2003/08/07 16:44:04 agc Exp $
      $NetBSD: qabs.c,v 1.6 2003/08/07 16:43:42 agc Exp $
@@ -388,13 +401,14 @@
      $NetBSD: regexec.c,v 1.17 2003/08/07 16:43:21 agc Exp $
      $NetBSD: regfree.c,v 1.13 2003/08/07 16:43:21 agc Exp $
      $NetBSD: remove.c,v 1.13 2003/08/07 16:43:30 agc Exp $
-     $NetBSD: res_comp.c,v 1.21 2003/08/07 16:43:12 agc Exp $
-     $NetBSD: res_data.c,v 1.8 2003/08/07 16:43:13 agc Exp $
-     $NetBSD: res_debug.c,v 1.35 2003/08/07 16:43:13 agc Exp $
-     $NetBSD: res_init.c,v 1.45 2003/09/09 22:16:58 itojun Exp $
-     $NetBSD: res_mkquery.c,v 1.25 2003/09/09 22:16:58 itojun Exp $
-     $NetBSD: res_query.c,v 1.37 2003/08/07 16:43:14 agc Exp $
-     $NetBSD: res_send.c,v 1.37 2003/08/07 16:43:14 agc Exp $
+     $NetBSD: res_comp.c,v 1.6 2004/05/22 23:47:09 christos Exp $
+     $NetBSD: res_data.c,v 1.7 2004/05/22 23:47:09 christos Exp $
+     $NetBSD: res_debug.c,v 1.6 2004/05/21 16:03:05 christos Exp $
+     $NetBSD: res_init.c,v 1.5 2004/05/21 16:03:05 christos Exp $
+     $NetBSD: res_mkquery.c,v 1.5 2004/05/21 16:03:05 christos Exp $
+     $NetBSD: res_query.c,v 1.5 2004/05/21 16:03:05 christos Exp $
+     $NetBSD: res_send.c,v 1.6 2004/05/21 16:03:05 christos Exp $
+     $NetBSD: res_state.c,v 1.3 2004/05/22 15:44:26 christos Exp $
      $NetBSD: resumecontext.S,v 1.4 2003/01/26 18:14:03 kleink Exp $
      $NetBSD: rewind.c,v 1.13 2003/08/07 16:43:30 agc Exp $
      $NetBSD: rewinddir.c,v 1.10 2003/08/07 16:42:56 agc Exp $
@@ -426,7 +440,7 @@
      $NetBSD: setbuffer.c,v 1.10 2003/08/07 16:43:31 agc Exp $
      $NetBSD: setdomainname.c,v 1.12 2003/08/07 16:42:56 agc Exp $
      $NetBSD: setenv.c,v 1.23 2003/08/07 16:43:44 agc Exp $
-     $NetBSD: sethostent.c,v 1.12 2003/08/07 16:43:15 agc Exp $
+     $NetBSD: sethostent.c,v 1.13 2004/05/21 02:30:04 christos Exp $
      $NetBSD: sethostid.c,v 1.7 2004/04/19 13:16:42 atatat Exp $
      $NetBSD: sethostname.c,v 1.12 2003/08/07 16:42:56 agc Exp $
      $NetBSD: setjmp.S,v 1.13 2003/08/07 16:42:07 agc Exp $
@@ -631,4 +645,4 @@
      $NetBSD: yperr_string.c,v 1.6 2003/12/10 12:06:25 agc Exp $
      $NetBSD: yplib.c,v 1.40 2003/12/10 12:06:25 agc Exp $
      $NetBSD: ypprot_err.c,v 1.5 2003/12/10 12:06:25 agc Exp $
-libc.so.12.117:
+/lib/libc.so.12.118:

>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: