[v9_15_7] tcp.c:298: fatal error: RUNTIME_CHECK(r == 0) failed
Ubuntu 20.04
Building with:
echo --------------------
echo Building ./configure
echo --------------------
export NOCONFIGURE=yes
./autogen.sh
...
echo ---------------------
echo "Configuring $package"
echo ---------------------
./configure --build=x86_64-pc-linux-gnu \
--prefix=/usr --sysconfdir=/etc/bind --localstatedir=/var \
--datarootdir=/usr/share --docdir=/usr/share/doc --mandir=/usr/share/man \
--disable-linux-caps \
--disable-querytrace \
--enable-auto-validation \
--enable-developer \
--enable-dnsrps \
--enable-dnstap \
--enable-fixed-rrset \
--enable-full-report \
--enable-largefile \
--with-cc-alg=aes \
--with-cmocka=no \
--with-gperftools-profiler \
--with-libxml2=yes \
--with-maxminddb=yes \
--with-openssl \
--with-tuning=large \
--with-zlib
...
echo -------------------
echo "Compiling $package"
echo -------------------
make
...
---------------------------------
Building and Installing bind9
---------------------------------
...
leads to:
Job for bind9.service failed because the control process exited with error code.
See "systemctl status bind9.service" and "journalctl -xe" for details.
● bind9.service - BIND Domain Name Server
Loaded: loaded (/lib/systemd/system/bind9.service; disabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Thu 2019-12-19 23:48:43 CET; 14ms ago
Docs: man:named(8)
Process: 537390 ExecStart=/usr/sbin/named $OPTIONS (code=exited, status=1/FAILURE)
Dec 19 23:48:41 samsung5-ubuntu named[537401]: looking for GeoIP2 databases in '/usr/share/GeoIP'
Dec 19 23:48:41 samsung5-ubuntu named[537401]: using default UDP/IPv4 port range: [32768, 60999]
Dec 19 23:48:41 samsung5-ubuntu named[537401]: using default UDP/IPv6 port range: [32768, 60999]
Dec 19 23:48:41 samsung5-ubuntu named[537401]: listening on IPv6 interfaces, port 953
Dec 19 23:48:41 samsung5-ubuntu named[537401]: tcp.c:298: fatal error:
Dec 19 23:48:41 samsung5-ubuntu named[537401]: RUNTIME_CHECK(r == 0) failed
Dec 19 23:48:41 samsung5-ubuntu named[537401]: exiting (due to fatal error in library)
Dec 19 23:48:43 samsung5-ubuntu systemd[1]: bind9.service: Control process exited, code=exited, status=1/FAILURE
Dec 19 23:48:43 samsung5-ubuntu systemd[1]: bind9.service: Failed with result 'exit-code'.
Dec 19 23:48:43 samsung5-ubuntu systemd[1]: Failed to start BIND Domain Name Server.
...
The systemd service file looks like this:
[Unit]
Description=BIND Domain Name Server
Documentation=man:named(8)
After=network.target
Wants=nss-lookup.target
Before=nss-lookup.target
[Service]
Type=forking
EnvironmentFile=-/etc/default/bind9
ExecStart=/usr/sbin/named $OPTIONS
ExecReload=/usr/sbin/rndc reload
ExecStop=/usr/sbin/rndc stop
[Install]
WantedBy=multi-user.target
The full build & test log is attached: