9.18.13 crashed in dlz enabled
Summary
BIND version used
BIND 9.18.13 (Extended Support Version) <id:>
running on Linux x86_64 5.10.130-118.517.amzn2.x86_64 #1 SMP Wed Jul 13 16:51:52 UTC 2022
built by make with '--enable-dnstap' '--enable-epoll' '--with-json-c' '--with-libnghttp2' '--enable-doh' '--prefix=/data/named/' 'PKG_CONFIG_PATH=:/usr/local/lib/pkgconfig'
compiled by GCC 7.3.1 20180712 (Red Hat 7.3.1-15)
compiled with OpenSSL version: OpenSSL 1.1.1g FIPS 21 Apr 2020
linked to OpenSSL version: OpenSSL 1.1.1g FIPS 21 Apr 2020
compiled with libuv version: 1.39.0
linked to libuv version: 1.39.0
compiled with libnghttp2 version: 1.41.0
linked to libnghttp2 version: 1.41.0
compiled with json-c version: 0.11
linked to json-c version: 0.11
compiled with zlib version: 1.2.7
linked to zlib version: 1.2.7
compiled with protobuf-c version: 1.0.2
linked to protobuf-c version: 1.0.2
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: /data/named/etc/named.conf
rndc configuration: /data/named/etc/rndc.conf
DNSSEC root key: /data/named/etc/bind.keys
nsupdate session key: /data/named/var/run/named/session.key
named PID file: /data/named/var/run/named/named.pid
named lock file: /data/named/var/run/named/named.lock
Steps to reproduce
In my production environment, it crashes two minutes after startup.
What is the current bug behavior?
bind crashes。
What is the expected correct behavior?
Operating normally。
Relevant configuration files
tls test-tls {
key-file "/ssl_cert/star.key";
cert-file "/ssl_cert/star.pem";
dhparam-file "/ssl_cert/dhparam.pem";
ciphers "HIGH:!kRSA:!aNULL:!eNULL:!RC4:!3DES:!MD5:!EXP:!PSK:!SRP:!DSS:!SHA1:!SHA256:!SHA384";
prefer-server-ciphers yes;
session-tickets no;
};
http local {
endpoints { "/dns-query"; };
};
options {
listen-on port 53 { any; };
listen-on tls test-tls { any; };
listen-on tls test-tls http local { any; };
listen-on-v6 { none; };
directory "/var/named/";
dump-file "/var/named/data/cache_dump.db";
session-keyfile "/var/named/run/session.key";
bindkeys-file "/etc/bind.keys";
key-directory "/etc";
version none;
notify no;
servfail-ttl 30;
allow-query { any; };
allow-query-cache { any; };
forward first;
hostname none;
reuseport yes;
max-cache-size 6g;
recursion yes;
querylog no;
http-streams-per-connection 100000;
http-listener-clients 100000;
recursive-clients 65535;
clients-per-query 100000;
max-clients-per-query 150000;
tcp-clients 80000;
tcp-initial-timeout 30;
tcp-idle-timeout 50;
tcp-keepalive-timeout 50;
minimal-responses no-auth;
minimal-any yes;
dnstap {
client query;
client response;
resolver query;
resolver response;
};
dnstap-output file "/var/log/dns.tap";
dnstap-identity none;
dnstap-version none;
allow-new-zones yes;
new-zones-directory "/dns-root/";
dnssec-validation no;
};
view "any" {
match-clients { any; };
allow-query-cache { any; };
max-cache-size 256m;
prefetch 10;
max-ncache-ttl 300;
forwarders { *.*.*.* port 5533; };
dlz "file system zone" {
database "dlopen /lib/dlz_filesystem_dynamic.so /dns-root/ .dns .xfr 0 ~";
};
};
Relevant logs and/or screenshots
21-Apr-2023 20:04:06.604 serve-stale: info: static.zhihu.com.cdn.dnsv1.com stale answer used, an attempt to refresh the RRset will still be made
21-Apr-2023 20:04:06.616 general: critical: query.c:8259: INSIST(qctx->rdataset == ((void *)0) || qctx->qtype == ((dns_rdatatype_t)dns_rdatatype_dname)) failed, back trace
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/sbin/named() [0x42bead]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(isc_assertion_failed+0xa) [0x7f38e5882bea]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libns-9.18.5.so(+0x2ab64) [0x7f38e523ab64]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libns-9.18.5.so(+0x2ad09) [0x7f38e523ad09]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libns-9.18.5.so(+0x2652d) [0x7f38e523652d]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libns-9.18.5.so(+0x2b3eb) [0x7f38e523b3eb]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libns-9.18.5.so(+0x2b987) [0x7f38e523b987]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(isc_task_run+0x145) [0x7f38e589eb05]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(+0x1e70d) [0x7f38e586b70d]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(+0x25453) [0x7f38e5872453]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(+0x25b84) [0x7f38e5872b84]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(+0x264a3) [0x7f38e58734a3]
21-Apr-2023 20:04:06.616 general: critical: /lib64/libuv.so.1(+0x10ac4) [0x7f38e2e23ac4]
21-Apr-2023 20:04:06.616 general: critical: /lib64/libuv.so.1(uv__io_poll+0x476) [0x7f38e2e33d96]
21-Apr-2023 20:04:06.616 general: critical: /lib64/libuv.so.1(uv_run+0x113) [0x7f38e2e241a3]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(+0x25e13) [0x7f38e5872e13]
21-Apr-2023 20:04:06.616 general: critical: /usr/local/named/lib/libisc-9.18.5.so(isc__trampoline_run+0x15) [0x7f38e58a61f5]
21-Apr-2023 20:04:06.616 general: critical: /lib64/libpthread.so.0(+0x744b) [0x7f38e23b144b]
21-Apr-2023 20:04:06.616 general: critical: /lib64/libc.so.6(clone+0x3f) [0x7f38e20ec56f]
21-Apr-2023 20:04:06.616 general: critical: exiting (due to assertion failure)