[Unbound-users] Unbound mysteriously crashes

Haw Loeung haw.loeung at tpg.com.au
Tue Dec 23 00:06:49 UTC 2008


Hi All,

We're in the process of replacing all of our caching nameservers with 
Unbound. During testing, it seems that Unbound is crashing and I'm unsure 
why. I've recompiled it with debugging enabled (--enable-debug) and 
"verbosity" set to 4. This is what the last few lines shows:

=====
[1229989936] unbound[9396:0] debug: cache memory msg=72831 
rrset=281352 infra=89090 val=50470                                                                   
[1229989936] unbound[9396:0] debug: svcd callbacks end
[1229989936] unbound[9396:0] debug: close of port 29714
[1229989936] unbound[9396:0] debug: close fd 55
[1229989936] unbound[9396:0] debug: answer cb
[1229989936] unbound[9396:0] debug: Incoming reply id = ced6
[1229989936] unbound[9396:0] debug: Incoming reply addr = ip4 
74.92.59.65 port 53 (len 16)
[1229989936] unbound[9396:0] debug: lookup size is 171 entries
[1229989936] unbound[9396:0] debug: received udp reply.
[1229989936] unbound[9396:0] debug: udp message[366:0] 
CED6800000010000000600090332303902393302333803323033047073626C077375727269656C03636F6D0000010001C01A0002000100000E10000E026E6C056C696E7578036F726700C01A0002000100000E100015047073626C0A7072696D6572656C6179036E657400C01A0002000100000E100008056E732D7072C01FC01A0002000100000E1000090667656E746F6FC03CC01A0002000100000E100009066E732D746962C01FC01A0002000100000E10000A0772626C646E7364C01FC03C000100010000012C000483D38DC4C03C001C000100000E100010200106100128C3240000000000000001C0770001000100000E100004525EFA0EC08B000100
[1229989936] unbound[9396:0] debug: udp message[366:256] 
0100000E10000483D38DF3C08B001C000100000E1000102001061006B10000A8CC00FFFE100103C0A00001000100000E10000448332826C0B50001000100000E10000483D38DF3C0B5001C000100000E10001020024A5C3B41000102163EFFFE5707F40000291000000000000000
[1229989936] unbound[9396:0] debug: outnet handle udp reply
[1229989936] unbound[9396:0] debug: measured roundtrip at 1188 msec
[1229989936] unbound[9396:0] fatal error: services/outside_network.c:1303: 
serviced_callbacks: assertion rem failed
=====


Unbound has been compiled with "--disable-rpath --with-pthreads --without-
solaris-threads --with-libevent=/usr/local/src/libevent-1.4.9-stable --with-ssl --
disable-static --enable-debug" and our config looks like this:

=====
server:
        # verbosity number, 0 is least verbose. 1 is default.
        verbosity: 1                                         

        # enable cumulative statistics, without clearing them after printing.
        statistics-cumulative: yes                                           
        extended-statistics: yes                                             

        # number of threads to create. 1 disables threading.
        # Set num-threads equal to the number of CPU cores on the system. 
        # E.g. for 4 CPUs with 2 cores each, use 8.                       
        num-threads: 2                                                    
        # power of 2 close to num-threads                                 
        msg-cache-slabs: 2                                                
        rrset-cache-slabs: 2                                              
        infra-cache-slabs: 2                                              
        key-cache-slabs: 2                                                

        # specify the interfaces to answer queries from by ip-address.
        interface: 127.0.0.1                                          
        # include file with interfaces                                
        include: "/var/unbound/interfaces.inc"                        

        outgoing-range: 4096 
        num-queries-per-thread: 4096

        # the amount of memory to use for the message cache.
        msg-cache-size: 1024m                               

        # the amount of memory to use for the RRset cache.
        # Use roughly twice as much rrset cache memory as you use msg cache 
        # memory                                                            
        rrset-cache-size: 2048m                                             

        # disable IPv6.
        do-ip6: no     

        # disable daemonize. We need this to be set to "no" so the runner
        # program takes care of things.                                  
        do-daemonize: no                                                 

        # control which clients are allowed to make (recursive) queries
        # to this server. Specify classless netblocks with /size and action.
        # Use "allow_snoop" to enable "dig +trace"                          
        access-control: 127.0.0.1 allow_snoop                               
        access-control: 0.0.0.0/0 allow_snoop                               

        # use log-file instead of syslog.
        logfile: "/var/log/unbound.log"  

        # file to read root hints from.
        # get one from ftp://FTP.INTERNIC.NET/domain/named.cache
        root-hints: "/var/unbound/named.cache"                  

        # allow internal private ranges.
        local-zone: "10.in-addr.arpa" nodefault
        local-zone: "29.172.in-addr.arpa" nodefault
        local-zone: "168.192.in-addr.arpa" nodefault

# Remote control config section.
remote-control:
        # Enable remote control with unbound-control.
        control-enable: yes

        # what interfaces are listened to for remote control.
        control-interface: 127.0.0.1

# Forward zones.
forward-zone:
        name: "tpgi.com.au"
        forward-addr: 203.12.160.40
        forward-addr: 203.26.24.40

forward-zone:
        name: "tpg.com.au"
        forward-host: ns1.tpgi.com.au.
        forward-host: ns2.tpgi.com.au.
=====


Any ideas based on the information provided?

Any suggestions on what I should try?

What other information should I provide to help?

Thanks in advance.


Regards,

Haw

-- 
Haw Loeung
Systems Administrator
TPG Internet
http://www.tpg.com.au
_______________________________________________________________________
  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.nlnetlabs.nl/pipermail/unbound-users/attachments/20081223/38c68d9a/attachment.bin>


More information about the Unbound-users mailing list