Dig problems...

Jorge Valdes jvaldes at sv.cciglobal.net
Sat Apr 7 14:43:00 UTC 2001


The interesting thing is that it sometimes works and sometimes it does not
work... I still have not recompiled BIND, and the construct works
sometimes... This tells me that something else is wrong...

----- Original Message -----
From: "Sak Wathanasin" <sw at network-analysis.ltd.uk>
To: <jvaldes at sv.cciglobal.net>
Sent: Friday, April 06, 2001 4:48 PM
Subject: Re: Dig problems...


> I posted an answer to the list, but for some reason, the moderator
> did not think it fit to let through. Anyway, here it is:
>
> In article <9aigdu$qu at pub3.rc.vix.com>,
>   "Jorge Valdes" <jvaldes at sv.cciglobal.net> wrote:
>
> >  I recently installed BIND 8.2.3-REL for both my primary and secondary
DNS
> >  servers, and use dig extensively to check delegations for the domains
that I
> >  administer... running on a Linux server w/2.0.34 kernel
> >
> >  Today, I got a core dump when trying to use Dig 8.3 with the following
> >  statement:
> >
> >  dig @cir.red.sv acsasal.com.sv ns
> >
> >  If I don't use the "@" part it works fine...
> >
> >  Any sugestions??
>
> Yes, see my earlier message which I repeat below for your amusement:
>
> >  > I'm getting segmentation fault on RH7.0 systems (tried on at least 2
> >  > different i386 systems) whenever I specify an explicit name server to
> >  > dig, host or nslookup. I.e., if I do
> >  >
> >  > dig @x or host @x
> >  >
> >  > or nslookup followed by "server x" all fail with segmentation fault.
> >  > This happens with all versions of bind from 9.1.0 up to 9.1.1.rc7.
> >  > ..etc etc...
> >
> >  Sorry to follow-up my own post, but some of you may be interested in
> >  what I've found out. It turns out there is soemthing wrong with the
> >  getaddrinfo() routine that is in the libc.so.6 that is part of
> >  glibc-2.2.1-3 (and possibly other glibc 2.2.X RPMs as well). I wrote a
> >  little program that just calls getaddrinfo() and it dies with a
> >  segmentation fault exactly as dig, host etc.
> >
> >  Anyway, if you're getting this, the workaround for me is to, after
> >  running ./configure, to edit config.h and manually change the line
> >
> >  #define HAVE_GETADDRINFO 1
> >
> >  to
> >
> >  #undef HAVE_GETADDRINFO
> >
> >  before doing a "make".
> >
> >  This forces the bind code to call gethostbyname() instead, which
appears
> >  to work fine.
>
> The bug is still in the latest glibc (2.2.2). I have tracked down the
> offending line in the glibc srcs, by the way, and will report it to the
> glibc people, so hopefully it will be incorporated in an official
> release of glibc > 2.2.2. If, in the meantime, you can apply the
> following patch to the glibc srcs:
>
> --- sysdeps/posix/getaddrinfo.c.gai Wed Jan 24 08:57:10 2001
> +++ sysdeps/posix/getaddrinfo.c Thu Apr  5 11:43:38 2001
> @@ -414,7 +414,7 @@
>         /* Neither socket type nor protocol is set.  Return all socket
> types
>       we know about.  */
>         struct gaih_servtuple **lastp = &st;
> -      for (++tp; tp->name != NULL; ++tp)
> +      for (++tp; tp->name[0] != '\0'; ++tp)
>      {
>        struct gaih_servtuple *newp;
> --
> Sak Wathanasin
> Network Analysis Limited
> 178 Wainbody Ave South, Coventry CV3 6BX, UK
>
> Internet: sw at network-analysis.ltd.uk
> Phone: (+44) 24 76 41 99 96        Mobile: (+44) 79 70 75 19 12
> Fax: (+44) 24 76 69 06 90
>



More information about the bind-users mailing list