https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274352
Bug ID: 274352
Summary: unbound stop working - infinite loop in
comm_point_send_udp_msg()
Product: Base System
Version: 13.2-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
rgw:/etc/unbound # freebsd-version -uk
13.2-RELEASE
13.2-RELEASE
rgw:/etc/unbound # /usr/sbin/local-unbound -V
Version 1.17.1
Configure line: --with-ssl=/usr --with-libexpat=/usr --disable-dnscrypt
--disable-dnstap --enable-ecdsa --disable-event-api --enable-gost
--with-libevent --disable-subnet --disable-tfo-client --disable-tfo-server
--with-pthreads--prefix=/usr --localstatedir=/var/unbound
--mandir=/usr/share/man --build=freebsd
Linked libs: mini-event internal (it uses select), OpenSSL 1.1.1t-freebsd 7
Feb 2023
Linked modules: dns64 respip validator iterator
BSD licensed, see LICENSE in source package for details.
Report bugs to [email protected] or
https://github.com/NLnetLabs/unbound/issues
ktrace of unbound running process show loop:
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
1005 local-unbound CALL sendto(0x9,0x2562128aa400,0x2d,0,0,0)
1005 local-unbound RET sendto -1 errno 55 No buffer space available
1005 local-unbound CALL poll(0x25620a5796a8,0x1,0xc8)
1005 local-unbound RET poll 1
.../...
I think it's an infinite loop inside netevent.c / comm_point_send_udp_msg()
while(sent == -1 && ( .../...
variable "pret" never get 0 and we are locked in loop using 100% of CPU,
of course in this case unbound is unable to resolve request or reply
to command local-unbound-control
JC
--
You are receiving this mail because:
You are the assignee for the bug.