Unbound fatal error

Hello,

I had unbound 1.4.17 crash with this rather cryptic message:

Jul 25 21:48:45 unbound[11518:2] error: bad event for iterator
Jul 25 21:48:45 unbound[11518:2] fatal error: services/outside_network.c:1508: serviced_callbacks: pointer whitelist fptr_whitelist_serviced_query(p->cb) failed

Due to the immense query load I'm not logging queries (this is one of 8 instances servicing between 30k and 50k queries/sec)

I've seen one mention of this particular error from 1.4.16 with no apparent resolution; I'm rather hoping this has been explored.

Compile flags:

Version 1.4.17
linked libs: libevent 2.0.19-stable (it uses epoll), ldns 1.6.13, OpenSSL 1.0.1c 10 May 2012
linked modules: validator iterator
configured for x86_64-unknown-linux-gnu on Thu Jul 12 02:31:03 GMT 2012 with options: '--with-username=dns' '--with-libevent' '--enable-shared' '--enable-largefile' '--with-chroot-dir=/usr/local/dns'

Thanks in advance,

-- Dan

Dan,

Thanks for the info.
I'll test with those flags.

:slight_smile:

Hi,

I would like more information, all I have is this error message; tried
to find the flaw via code review but this did not succeed. What query
was active; if you perform query-logging or packet capture.

It could be that this flaw is a side-effect of the assertion failure
that was fixed recently (and there are already patches for that).
That fix is to be released in the upcoming 1.4.18 release.

If it happens again (hopefully reproducible), I could try to implement
debug code that is triggered by the 'bad event for iterator' that
attempts to printout the internal state in more detail. (this would
not take time in normal production, but printout debug info when the
problem happens).

Best regards,
   Wouter