Maintained by: NLnet Labs

[Unbound-users] Problems running Unbound-1.4.0 on FreeBSD 7.2-STABLE and 9.0-CURRENT

Dmitriy Demidov
Mon Nov 30 19:58:58 CET 2009


Hello.

I have a problems with new Unbound-1.4.0. 

I'm using FreeBSD 7.2-STABLE and 9.0-CURRENT:
FreeBSD hius.local.home 7.2-STABLE FreeBSD 7.2-STABLE #0: Sat Aug 15 13:49:47 EEST 2009     terminus at hius.local.home:/usr/obj/usr/src/sys/STABLE  i386
FreeBSD dune.local.home 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Wed Nov 18 19:43:21 EET 2009     terminus at dune.local.home:/usr/obj/usr/src/sys/CURRENT  amd64

I can not run Unbound-1.4.0 on them - it just crashes. Previos Unbound version worked on STABLE without any problems.
I have been tested Unbound with/without libevent, and with/without threads on STABLE - no success.
On CURRENT I been tested default configuration of port (threads+libevent).




$ pkg_info | grep unbound
unbound-1.4.0       A validating, recursive, and caching DNS resolver
$ pkg_info | grep libevent
libevent-1.4.12     Provides an API to execute callback functions on certain ev




Debug output from log with verbosity:5 from STABLE
==
no libevent + threads

[1259534581] unbound[1040:0] debug: module config: "iterator"
[1259534581] unbound[1040:0] notice: init module 0: iterator
[1259534581] unbound[1040:0] debug: target fetch policy for level 0 is 3
[1259534581] unbound[1040:0] debug: target fetch policy for level 1 is 2
[1259534581] unbound[1040:0] debug: target fetch policy for level 2 is 1
[1259534581] unbound[1040:0] debug: target fetch policy for level 3 is 0
[1259534581] unbound[1040:0] debug: target fetch policy for level 4 is 0
[1259534581] unbound[1040:0] debug: Reading root hints from /named.cache
[1259534581] unbound[1040:0] info: DelegationPoint<.>: 13 names (6 missing), 20 addrs (0 result, 20 avail)
[1259534581] unbound[1040:0] info:   M.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   L.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   K.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   J.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   I.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   H.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   G.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   F.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] info:   E.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   D.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   C.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   B.ROOT-SERVERS.NET.  A
[1259534581] unbound[1040:0] info:   A.ROOT-SERVERS.NET. * A AAAA
[1259534581] unbound[1040:0] debug:    ip6 2001:dc3::35 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 202.12.27.33 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:500:3::42 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 199.7.83.42 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:7fd::1 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 193.0.14.129 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:503:c27::2:30 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 192.58.128.30 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 192.36.148.17 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:500:1::803f:235 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 128.63.2.53 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 192.112.36.4 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:500:2f::f port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 192.5.5.241 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 192.203.230.10 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 128.8.10.90 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 192.33.4.12 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip4 192.228.79.201 port 53 (len 16)
[1259534581] unbound[1040:0] debug:    ip6 2001:503:ba3e::2:30 port 53 (len 28)
[1259534581] unbound[1040:0] debug:    ip4 198.41.0.4 port 53 (len 16)
[1259534581] unbound[1040:0] debug: donotq: ::1
[1259534581] unbound[1040:0] debug: donotq: 127.0.0.1/8
[1259534581] unbound[1040:0] debug: donotq: 127.0.0.0/8
[1259534581] unbound[1040:0] debug: duplicate donotquery address ignored.
[1259534581] unbound[1040:0] debug: total of 59701 outgoing ports available
[1259534581] unbound[1040:0] debug: start threads
[1259534581] unbound[1040:0] debug: libevent mini-event-1.4.0 uses not_obtainable method.


===

libevent + threads

[1259527122] unbound[43070:0] debug: module config: "iterator"
[1259527122] unbound[43070:0] notice: init module 0: iterator
[1259527122] unbound[43070:0] debug: target fetch policy for level 0 is 3
[1259527122] unbound[43070:0] debug: target fetch policy for level 1 is 2
[1259527122] unbound[43070:0] debug: target fetch policy for level 2 is 1
[1259527122] unbound[43070:0] debug: target fetch policy for level 3 is 0
[1259527122] unbound[43070:0] debug: target fetch policy for level 4 is 0
[1259527122] unbound[43070:0] debug: Reading root hints from /named.cache
[1259527122] unbound[43070:0] info: DelegationPoint<.>: 13 names (6 missing), 20 addrs (0 result, 20 avail)
[1259527122] unbound[43070:0] info:   M.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   L.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   K.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   J.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   I.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   H.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   G.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   F.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] info:   E.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   D.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   C.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   B.ROOT-SERVERS.NET.  A
[1259527122] unbound[43070:0] info:   A.ROOT-SERVERS.NET. * A AAAA
[1259527122] unbound[43070:0] debug:    ip6 2001:dc3::35 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 202.12.27.33 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:500:3::42 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 199.7.83.42 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:7fd::1 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 193.0.14.129 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:503:c27::2:30 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 192.58.128.30 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 192.36.148.17 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:500:1::803f:235 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 128.63.2.53 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 192.112.36.4 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:500:2f::f port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 192.5.5.241 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 192.203.230.10 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 128.8.10.90 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 192.33.4.12 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip4 192.228.79.201 port 53 (len 16)
[1259527122] unbound[43070:0] debug:    ip6 2001:503:ba3e::2:30 port 53 (len 28)
[1259527122] unbound[43070:0] debug:    ip4 198.41.0.4 port 53 (len 16)
[1259527122] unbound[43070:0] debug: donotq: ::1
[1259527122] unbound[43070:0] debug: donotq: 127.0.0.1/8
[1259527122] unbound[43070:0] debug: donotq: 127.0.0.0/8
[1259527122] unbound[43070:0] debug: duplicate donotquery address ignored.
[1259527122] unbound[43070:0] debug: total of 59701 outgoing ports available
[1259527122] unbound[43070:0] debug: start threads
[1259527122] unbound[43070:0] debug: libevent 1.4.12-stable uses kqueue method.


==


no libevent no treads

[1259605215] unbound[19225:0] debug: module config: "iterator"
[1259605215] unbound[19225:0] notice: init module 0: iterator
[1259605215] unbound[19225:0] debug: target fetch policy for level 0 is 3
[1259605215] unbound[19225:0] debug: target fetch policy for level 1 is 2
[1259605215] unbound[19225:0] debug: target fetch policy for level 2 is 1
[1259605215] unbound[19225:0] debug: target fetch policy for level 3 is 0
[1259605215] unbound[19225:0] debug: target fetch policy for level 4 is 0
[1259605215] unbound[19225:0] debug: Reading root hints from /named.cache
[1259605215] unbound[19225:0] info: DelegationPoint<.>: 13 names (6 missing), 20 addrs (0 result, 20 avail)
[1259605215] unbound[19225:0] info:   M.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   L.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   K.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   J.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   I.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   H.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   G.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   F.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] info:   E.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   D.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   C.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   B.ROOT-SERVERS.NET.  A
[1259605215] unbound[19225:0] info:   A.ROOT-SERVERS.NET. * A AAAA
[1259605215] unbound[19225:0] debug:    ip6 2001:dc3::35 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 202.12.27.33 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:500:3::42 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 199.7.83.42 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:7fd::1 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 193.0.14.129 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:503:c27::2:30 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 192.58.128.30 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 192.36.148.17 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:500:1::803f:235 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 128.63.2.53 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 192.112.36.4 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:500:2f::f port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 192.5.5.241 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 192.203.230.10 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 128.8.10.90 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 192.33.4.12 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip4 192.228.79.201 port 53 (len 16)
[1259605215] unbound[19225:0] debug:    ip6 2001:503:ba3e::2:30 port 53 (len 28)
[1259605215] unbound[19225:0] debug:    ip4 198.41.0.4 port 53 (len 16)
[1259605215] unbound[19225:0] debug: donotq: ::1
[1259605215] unbound[19225:0] debug: donotq: 127.0.0.1/8
[1259605215] unbound[19225:0] debug: donotq: 127.0.0.0/8
[1259605215] unbound[19225:0] debug: duplicate donotquery address ignored.
[1259605215] unbound[19225:0] debug: total of 59701 outgoing ports available
[1259605215] unbound[19225:0] debug: start threads
[1259605215] unbound[19225:0] debug: libevent mini-event-1.4.0 uses not_obtainable method.
==






Debug output from log with verbosity:5 from CURRENT

==
[1259606522] unbound[67297:0] debug: module config: "iterator"
[1259606522] unbound[67297:0] notice: init module 0: iterator
[1259606522] unbound[67297:0] debug: target fetch policy for level 0 is 3
[1259606522] unbound[67297:0] debug: target fetch policy for level 1 is 2
[1259606522] unbound[67297:0] debug: target fetch policy for level 2 is 1
[1259606522] unbound[67297:0] debug: target fetch policy for level 3 is 0
[1259606522] unbound[67297:0] debug: target fetch policy for level 4 is 0
[1259606522] unbound[67297:0] debug: Reading root hints from /named.cache
[1259606522] unbound[67297:0] info: DelegationPoint<.>: 13 names (6 missing), 20 addrs (0 result, 20 avail)
[1259606522] unbound[67297:0] info:   M.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   L.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   K.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   J.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   I.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   H.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   G.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   F.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] info:   E.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   D.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   C.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   B.ROOT-SERVERS.NET.  A
[1259606522] unbound[67297:0] info:   A.ROOT-SERVERS.NET. * A AAAA
[1259606522] unbound[67297:0] debug:    ip6 2001:dc3::35 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 202.12.27.33 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:500:3::42 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 199.7.83.42 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:7fd::1 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 193.0.14.129 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:503:c27::2:30 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 192.58.128.30 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 192.36.148.17 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:500:1::803f:235 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 128.63.2.53 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 192.112.36.4 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:500:2f::f port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 192.5.5.241 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 192.203.230.10 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 128.8.10.90 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 192.33.4.12 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip4 192.228.79.201 port 53 (len 16)
[1259606522] unbound[67297:0] debug:    ip6 2001:503:ba3e::2:30 port 53 (len 28)
[1259606522] unbound[67297:0] debug:    ip4 198.41.0.4 port 53 (len 16)
[1259606522] unbound[67297:0] debug: donotq: ::1
[1259606522] unbound[67297:0] debug: donotq: 127.0.0.1/8
[1259606522] unbound[67297:0] debug: donotq: 127.0.0.0/8
[1259606522] unbound[67297:0] debug: duplicate donotquery address ignored.
[1259606522] unbound[67297:0] debug: total of 59701 outgoing ports available
[1259606522] unbound[67297:0] debug: start threads
[1259606522] unbound[67297:0] debug: libevent 1.4.12-stable uses kqueue method.
[1259606522] unbound[67297:3] debug: libevent 1.4.12-stable uses kqueue method.
[1259606522] unbound[67297:2] debug: libevent 1.4.12-stable uses kqueue method.

==




unbound.conf
==

server:
        verbosity: 5
        #statistics-interval: 300
        num-threads: 4
        interface: 0.0.0.0
        port: 53

        outgoing-range: 512
        num-queries-per-thread: 1024

        msg-cache-size: 16m
        rrset-cache-size: 32m

        msg-cache-slabs: 4
        rrset-cache-slabs: 4
        infra-cache-slabs: 4

        cache-max-ttl: 86400
        infra-host-ttl: 60
        infra-lame-ttl: 120

        infra-cache-numhosts: 10000
        infra-cache-lame-size: 10k

        do-ip4: yes
        do-ip6: no
        do-udp: yes
        do-tcp: yes
        do-daemonize: yes

        access-control: 0.0.0.0/0 refuse
        access-control: 192.168.1.0/24 allow
        access-control: 127.0.0.0/8 allow
        access-control: ::0/0 refuse
        access-control: ::1 allow
        access-control: ::ffff:127.0.0.1 allow

        chroot: "/usr/local/etc/unbound"
        username: "unbound"
        directory: "/usr/local/etc/unbound"
        logfile: "/usr/local/etc/unbound/unbound.log"
        use-syslog: no
        pidfile: "/usr/local/etc/unbound/unbound.pid"
        root-hints: "/usr/local/etc/unbound/named.cache"

        identity: "DNS"
        version: "1.0"
        hide-identity: yes
        hide-version: yes
        harden-glue: yes
        do-not-query-address: 127.0.0.1/8
        do-not-query-address: ::1
        do-not-query-localhost: yes
        module-config: "iterator"

remote-control:
        control-enable: yes
        control-interface: 127.0.0.1
        control-port: 953
        server-key-file: "/usr/local/etc/unbound/unbound_server.key"
        server-cert-file: "/usr/local/etc/unbound/unbound_server.pem"
        control-key-file: "/usr/local/etc/unbound/unbound_control.key"
        control-cert-file: "/usr/local/etc/unbound/unbound_control.pem"

==