Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 26 May 2007 01:00:18 -0400
From:      Kris Kennaway <kris@obsecurity.org>
To:        Jarrod Sayers <jarrod@netleader.com.au>
Cc:        Randy Bush <randy@psg.com>, deischen@FreeBSD.org, freebsd ports <freebsd-ports@freebsd.org>
Subject:   Re: nagios in current
Message-ID:  <20070526050018.GA19973@xor.obsecurity.org>
In-Reply-To: <46A0B9BE-FDC8-4B29-8E60-16C318C770F9@netleader.com.au>
References:  <46575D6E.1070604@psg.com> <7F2539EE-501A-49C5-BA64-AF74494163CB@netleader.com.au> <4657B99C.9070307@psg.com> <46A0B9BE-FDC8-4B29-8E60-16C318C770F9@netleader.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, May 26, 2007 at 02:24:58PM +0930, Jarrod Sayers wrote:
> On 26/05/2007, at 2:07 PM, Randy Bush wrote:
> ># /usr/local/libexec/nagios/check_dns -H www.netleader.com.au
> >DNS CRITICAL - '/usr/local/bin/nslookup -sil' msg parsing exited  
> >with no address
> ># ktrace -dit+ /usr/local/libexec/nagios/check_dns -H  
> >www.netleader.com.au
> >DNS CRITICAL - '/usr/local/bin/nslookup -sil' msg parsing exited  
> >with no address
> 
> Try running the following:
> wallace> /usr/local/bin/nslookup -sil www.netleader.com.au
> wallace> ldd /usr/local/bin/nslookup
> wallace> /usr/bin/nslookup -sil www.netleader.com.au
> wallace> ldd /usr/bin/nslookup
> 
> The output from pkg_info may help here too...
> 
> >http://rip.psg.com/~randy/ktrace.out
> 
> Looks like nslookup is crashing out with a missing symbol,  
> __udivdi3.  The first command I have above, should confirm this.   
> I'll have to do some digging to work out where that function lives as  
> it doesn't ring any bells with me and isn't a part of the base system  
> from what I could quickly see.
> 
>  61371 nslookup CALL  write(0x2,0xbfbfe63c,0x16)
> 61371 nslookup GIO   fd 2 wrote 22 bytes
>        "/libexec/ld-elf.so.1: "
> 61371 nslookup RET   write 22/0x16
> 61371 nslookup CALL  write(0x2,0xbfbfe66c,0x35)
> 61371 nslookup GIO   fd 2 wrote 53 bytes
>        "/usr/local/bin/nslookup: Undefined symbol "__udivdi3""
> 61371 nslookup RET   write 53/0x35
> 61371 nslookup CALL  write(0x2,0x28174033,0x1)
> 61371 nslookup GIO   fd 2 wrote 1 byte
>        "
>        "
> 61371 nslookup RET   write 1
> 61371 nslookup CALL  exit(0x1)

This symbol is no longer exposed as a public symbol after the symbol
versioning changes.  It is interesting that nslookup uses it and this
only manifests at runtime.  Maybe the OP forgot to recompile his bind
port?

Kris




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