Date: Wed, 22 May 2002 09:13:27 +1000 From: Mark.Andrews@isc.org To: "Jacques A. Vidrine" <nectar@FreeBSD.ORG> Cc: Mike Tancsa <mike@sentex.net>, stable@FreeBSD.ORG Subject: Re: New resolver bug ? Message-ID: <200205212313.g4LNDROI048521@drugs.dv.isc.org> In-Reply-To: Your message of "Tue, 21 May 2002 13:07:17 EST." <20020521180717.GA11790@madman.nectar.cc>
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).
>
It looks like the correct fix.
Mark
>
> 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
--
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200205212313.g4LNDROI048521>
