Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 May 2002 13:07:17 -0500
From:      "Jacques A. Vidrine" <nectar@FreeBSD.ORG>
To:        Mike Tancsa <mike@sentex.net>
Cc:        stable@FreeBSD.ORG
Subject:   Re: New resolver bug ?
Message-ID:  <20020521180717.GA11790@madman.nectar.cc>
In-Reply-To: <5.1.0.14.0.20020521120759.054f8438@192.168.0.12>
References:  <5.1.0.14.0.20020521120759.054f8438@192.168.0.12>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <n@nectar.cc>                 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020521180717.GA11790>