From owner-freebsd-stable Tue May 21 16:13:35 2002 Delivered-To: freebsd-stable@freebsd.org Received: from drugs.dv.isc.org (drugs.dv.isc.org [130.155.191.236]) by hub.freebsd.org (Postfix) with ESMTP id 9557937B40C; Tue, 21 May 2002 16:13:30 -0700 (PDT) Received: from isc.org (localhost.dv.isc.org [127.0.0.1]) by drugs.dv.isc.org (8.12.3/8.12.3) with ESMTP id g4LNDROI048521; Wed, 22 May 2002 09:13:27 +1000 (EST) (envelope-from marka@isc.org) Message-Id: <200205212313.g4LNDROI048521@drugs.dv.isc.org> To: "Jacques A. Vidrine" Cc: Mike Tancsa , stable@FreeBSD.ORG From: Mark.Andrews@isc.org Subject: Re: New resolver bug ? In-reply-to: Your message of "Tue, 21 May 2002 13:07:17 EST." <20020521180717.GA11790@madman.nectar.cc> Date: Wed, 22 May 2002 09:13:27 +1000 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). > It looks like the correct fix. Mark > > 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 -- Mark Andrews, Internet Software Consortium 1 Seymour St., Dundas Valley, NSW 2117, Australia PHONE: +61 2 9871 4742 INTERNET: Mark.Andrews@isc.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message