From owner-freebsd-stable Tue May 21 11: 7:27 2002 Delivered-To: freebsd-stable@freebsd.org Received: from gw.nectar.cc (gw.nectar.cc [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 9C96A37B40E for ; Tue, 21 May 2002 11:07:18 -0700 (PDT) Received: from madman.nectar.cc (madman.nectar.cc [10.0.1.111]) by gw.nectar.cc (Postfix) with ESMTP id 341C750; Tue, 21 May 2002 13:07:18 -0500 (CDT) Received: from madman.nectar.cc (localhost [IPv6:::1]) by madman.nectar.cc (8.12.3/8.11.6) with ESMTP id g4LI7INX011795; Tue, 21 May 2002 13:07:18 -0500 (CDT) (envelope-from nectar@madman.nectar.cc) Received: (from nectar@localhost) by madman.nectar.cc (8.12.3/8.12.3/Submit) id g4LI7HJq011794; Tue, 21 May 2002 13:07:17 -0500 (CDT) Date: Tue, 21 May 2002 13:07:17 -0500 From: "Jacques A. Vidrine" To: Mike Tancsa Cc: stable@FreeBSD.ORG Subject: Re: New resolver bug ? Message-ID: <20020521180717.GA11790@madman.nectar.cc> References: <5.1.0.14.0.20020521120759.054f8438@192.168.0.12> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5.1.0.14.0.20020521120759.054f8438@192.168.0.12> User-Agent: Mutt/1.3.99i X-Url: http://www.nectar.cc/ Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, May 21, 2002 at 12:10:40PM -0400, Mike Tancsa wrote: > Granted, its a rather strange entry, but why does > > backup2# nslookup -type=a mail.spicer.com > Server: ns2.sentex.ca > Address: 199.212.134.2 > > nslookup in free(): warning: junk pointer, too low to make sense > Name: mail.spicer.com > Address: 216.16.235.172 OK, it appears you are hitting a bug was introduced in 8.3.2-T1B nslookup/getinfo.c where a static data structure is free'd. You can use the following patch: Index: contrib/bind/bin/nslookup/getinfo.c =================================================================== RCS file: /home/ncvs/src/contrib/bind/bin/nslookup/getinfo.c,v retrieving revision 1.3.2.5 diff -u -r1.3.2.5 getinfo.c --- contrib/bind/bin/nslookup/getinfo.c 2002/05/15 19:51:22 1.3.2.5 +++ contrib/bind/bin/nslookup/getinfo.c 2002/05/21 17:48:47 @@ -420,10 +420,8 @@ !memcmp(hostPtr->addrList[l]->addr, addr_list[i], addr_len[i])) break; - if (l < k) { - free(addr_list[i]); + if (l < k) continue; - } hostPtr->addrList[k] = (AddrInfo*)Calloc(1, sizeof(AddrInfo)); hostPtr->addrList[k]->addr = Calloc(1, addr_len[i]); hostPtr->addrList[k]->addrType = addr_type[i]; I've reported the bug, and once it is confirmed I will apply the fix to -CURRENT and -STABLE (hopefully in time for release). Hmm, that fails to explain your `telnet' issue, though ... Cheers, -- Jacques A. Vidrine http://www.nectar.cc/ NTT/Verio SME . FreeBSD UNIX . Heimdal Kerberos jvidrine@verio.net . nectar@FreeBSD.org . nectar@kth.se To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message