Unbound 1.4.0 segfault

Hello,

FYI, I have unbound 1.4.0 configured with --with-libevent on linux kernel 2.6.29 x86_64. The compile process was smooth, but I got the following error when starting unbound :

unbound[30520]: segfault at 10 ip 00007f8e599deb61 sp 00007f8e58c2c020 error 4 in libpthread-2.10.1.so[7f8e599d6000+16000]

The error dissapeared in 1.3.4.

Thank you.

Regards,
Asfihani

Did you have a config setting:
  module-config: "iterator"
instead of the default? If so, that is the issue. "validator iterator"
is a workaround and a fix is in the svn repo.

Thanks for the report, if its not the above, I'd appreciate more detail.

Best regards,
   Wouter

Dear Mr Wijngaards,

Sorry for lack information. Yes the module-config used was "iterator". Commented out module-config fix the problem. For you information, this is unbound 1.4.0 with --with-libevent using libevent-2.0.3-alpha. The machine running Arch Linux Kernel 2.6.29 x86_64 with 4GB memory and E2200 (dual 2.20GHz).

Below is snippet configuration from unbound.conf, if there is any suggestion I will happy to hear:

server:
         verbosity: 1
         interface: 127.0.0.1
         interface: 10.126.10.1
         port: 53
         do-ip4: yes
         do-ip6: no
         do-udp: yes
         do-tcp: yes
         do-daemonize: yes
         access-control: 127.0.0.0/8 allow
         access-control: 10.126.10.0/24 allow
         chroot: "/etc/unbound"
         username: "unbound"
         directory: "/etc/unbound"
         use-syslog: yes
         pidfile: "/etc/unbound/unbound.pid"
         root-hints: "/etc/unbound/named.cache"

         num-threads: 2

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

         rrset-cache-size: 2892m
         msg-cache-size: 1446m

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

         statistics-cumulative: yes

         infra-cache-numhosts: 100000
    so-rcvbuf: 4m

         identity: "Mendoan"
         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: "/etc/unbound/unbound_server.key"
         server-cert-file: "/etc/unbound/unbound_server.pem"
         control-key-file: "/etc/unbound/unbound_control.key"
         control-cert-file: "/etc/unbound/unbound_control.pem"

Regards,
Asfihani

Hi,

That looks fine!

I am happy to hear that libevent 2.0.3-alpha works well. Because I had
to make code and link changes (released in 1.4.0) for libevent 2.0.

Best regards,
   Wouter