Crash in "host"
Summary
Running "host" with the -C option causes it to crash sometimes. I've observed it on my MacOS Sonoma 14.2.1 laptop, and I've also seen a report by Francisco Obispo of a similar crash on the bind-users mailing list.
BIND version affected
BIND 9.18.21 (Extended Support Version) <id:cb6cff6>
running on Darwin x86_64 23.2.0 Darwin Kernel Version 23.2.0: Wed Nov 15 21:54:10 PST 2023; root:xnu-10002.61.3~2/RELEASE_X86_64
built by make with '--prefix=/usr/local/Cellar/bind/9.18.21' '--sysconfdir=/usr/local/etc/bind' '--localstatedir=/usr/local/var' '--with-json-c' '--with-libidn2=/usr/local/opt/libidn2' '--with-openssl=/usr/local/opt/openssl@3' '--without-lmdb' 'CC=clang' 'PKG_CONFIG_PATH=/usr/local/opt/json-c/lib/pkgconfig:/usr/local/opt/libidn2/lib/pkgconfig:/usr/local/opt/libnghttp2/lib/pkgconfig:/usr/local/opt/libuv/lib/pkgconfig:/usr/local/opt/openssl@3/lib/pkgconfig' 'PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig:/usr/local/Homebrew/Library/Homebrew/os/mac/pkgconfig/14'
compiled by CLANG Apple LLVM 15.0.0 (clang-1500.1.0.2.5)
compiled with OpenSSL version: OpenSSL 3.2.0 23 Nov 2023
linked to OpenSSL version: OpenSSL 3.2.0 23 Nov 2023
compiled with libuv version: 1.47.0
linked to libuv version: 1.47.0
compiled with libnghttp2 version: 1.58.0
linked to libnghttp2 version: 1.58.0
compiled with libxml2 version: 2.9.13
linked to libxml2 version: 20913
compiled with json-c version: 0.17
linked to json-c version: 0.17
compiled with zlib version: 1.2.12
linked to zlib version: 1.2.12
threads support is enabled
DNSSEC algorithms: RSASHA1 NSEC3RSASHA1 RSASHA256 RSASHA512 ECDSAP256SHA256 ECDSAP384SHA384 ED25519 ED448
DS algorithms: SHA-1 SHA-256 SHA-384
HMAC algorithms: HMAC-MD5 HMAC-SHA1 HMAC-SHA224 HMAC-SHA256 HMAC-SHA384 HMAC-SHA512
TKEY mode 2 support (Diffie-Hellman): yes
TKEY mode 3 support (GSS-API): yes
default paths:
named configuration: /usr/local/etc/bind/named.conf
rndc configuration: /usr/local/etc/bind/rndc.conf
DNSSEC root key: /usr/local/etc/bind/bind.keys
nsupdate session key: /usr/local/var/run/named/session.key
named PID file: /usr/local/var/run/named/named.pid
named lock file: /usr/local/var/run/named/named.lock
Steps to reproduce
Run host -C by
or host -C id.iq
What is the current bug behavior?
Sometimes, "host" crashes with this error:
% host -C by
Nameserver 31.44.1.137:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261150 3600 600 604800 3600
Nameserver 2a0e:b81:8001:1001::2:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261150 3600 600 604800 3600
netmgr/netmgr.c:1737: REQUIRE(handlep != ((void*)0) && *handlep == ((void*)0)) failed, back trace
0 libisc-9.18.21.dylib 0x000000011055bdd3 default_callback + 63
1 libisc-9.18.21.dylib 0x000000011055bd74 isc_assertion_failed + 10
2 libisc-9.18.21.dylib 0x0000000110546e12 isc__nmhandle_attach + 104
3 host 0x000000010ffd2e8f launch_next_query + 145
4 host 0x000000010ffd188f start_udp + 150
5 host 0x000000010ffd4963 recv_done + 3929
6 libisc-9.18.21.dylib 0x000000011054bd35 isc__nm_async_readcb + 149
7 libisc-9.18.21.dylib 0x000000011054aa8e isc__nm_readcb + 271
8 libisc-9.18.21.dylib 0x0000000110558f36 udp_recv_cb + 459
9 libisc-9.18.21.dylib 0x0000000110559fb4 isc__nm_udp_read_cb + 72
10 libuv.1.dylib 0x00000001104ded89 uv__udp_io + 354
11 libuv.1.dylib 0x00000001104e1c9f uv__io_poll + 1680
12 libuv.1.dylib 0x00000001104d214d uv_run + 258
13 libisc-9.18.21.dylib 0x0000000110545036 nm_thread + 115
14 libisc-9.18.21.dylib 0x000000011057e7ef isc__trampoline_run + 22
15 libsystem_pthread.dylib 0x00007ff80a073202 _pthread_start + 99
16 libsystem_pthread.dylib 0x00007ff80a06ebab thread_start + 15
[1] 85023 abort host -C by
What is the expected correct behavior?
% host -C by
Nameserver 31.44.1.137:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 2a0e:b81:8001:1001::2:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 93.125.25.73:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 2a00:c827:a:3::2:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 185.98.83.4:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 2a00:c827:a:2::2:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 93.125.25.72:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 2a01:ba80:e:c:1::4c:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Nameserver 31.44.5.245:
by has SOA record dns1.tld.becloud.by. support.becloud.by. 2312261200 3600 600 604800 3600
Relevant configuration files
No relevant configuration file.
Relevant logs
No relevant log.