BIND fails to run with new libuv 1.36
Summary
If i upgrade libuv to 1.36, released today bind failes to start and crashes. Recompile of bind does not help.
BIND version used
BIND 9.16.1 (Stable Release) <id:d497c32>
running on Linux x86_64 5.6.4-gentoo #1 SMP Mon Apr 13 17:04:45 CEST 2020
built by make with '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--docdir=/usr/share/doc/bind-9.16.1' '--htmldir=/usr/share/doc/bind-9.16.1/html' '--with-sysroot=/' '--libdir=/usr/lib64' '--prefix=/usr' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--with-libtool' '--enable-full-report' '--without-readline' '--with-openssl=/usr' '--enable-linux-caps' '--disable-dnsrps' '--disable-dnstap' '--disable-fixed-rrset' '--with-dlz-bdb' '--with-dlopen' '--with-dlz-filesystem' '--with-dlz-stub' '--with-gssapi' '--without-json-c' '--without-dlz-ldap' '--with-dlz-mysql' '--without-dlz-odbc' '--without-dlz-postgres' '--without-lmdb' '--with-python' '--with-libxml2' '--with-zlib' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -pipe -O3 -fomit-frame-pointer -I/usr/include/db6.0' 'LDFLAGS=-Wl,-O3 -Wl,--as-needed -Wl,--sort-common -Wl,--hash-style=gnu -L/usr/lib64 -ldl' 'PKG_CONFIG_PATH=/usr/lib64/pkgconfig'
compiled by GCC 9.3.0
compiled with OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
linked to OpenSSL version: OpenSSL 1.1.1f 31 Mar 2020
compiled with libxml2 version: 2.9.9
linked to libxml2 version: 20909
compiled with zlib version: 1.2.11
linked to zlib version: 1.2.11
threads support is enabled
Steps to reproduce
Upgrade to new libuv 1.36, restart bind.
What is the current bug behavior?
Crash with following error:
15-Apr-2020 23:05:57.838 general: critical: netmgr.c:1000: REQUIRE(worker->recvbuf_inuse) failed, back trace
15-Apr-2020 23:05:57.838 general: critical: #0 0x5629318abbaf in ??
15-Apr-2020 23:05:57.838 general: critical: #1 0x7fc037259d0c in ??
15-Apr-2020 23:05:57.838 general: critical: #2 0x7fc037271eda in ??
15-Apr-2020 23:05:57.838 general: critical: #3 0x7fc0372768fb in ??
15-Apr-2020 23:05:57.838 general: critical: #4 0x7fc03615beea in ??
15-Apr-2020 23:05:57.838 general: critical: #5 0x7fc03615c4eb in ??
15-Apr-2020 23:05:57.838 general: critical: #6 0x7fc03615edd0 in ??
15-Apr-2020 23:05:57.838 general: critical: #7 0x7fc03614e0ca in ??
15-Apr-2020 23:05:57.838 general: critical: #8 0x7fc0372740e9 in ??
15-Apr-2020 23:05:57.838 general: critical: #9 0x7fc03646cea7 in ??
15-Apr-2020 23:05:57.838 general: critical: #10 0x7fc03639ee8f in ??
15-Apr-2020 23:05:57.838 general: critical: exiting (due to assertion failure)
Possible fixes
Reverting libuv back to 1.35 helps :)
Edited by Klemen Mihevc