delv 9.16.1-Ubuntu segfaults with certain query
Summary
The following bash command crashes about 10% of the time:
$ delv www.google.com @ns1.netskrt.org
app.c:422: REQUIRE(__extension__ ({ __auto_type __atomic_load_ptr = (&ctx->running); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (5)); __atomic_load_tmp; })) failed, back trace
#0 0x7f7b155e2b8a in ??
#1 0x7f7b155e2ac0 in ??
#2 0x7f7b155e260a in ??
#3 0x7f7b1567d699 in ??
#4 0x7f7b15609fa1 in ??
#5 0x7f7b152dc609 in ??
#6 0x7f7b151ff163 in ??
Aborted (core dumped)
BIND version used
$ delv -v
delv 9.16.1-Ubuntu
$ apt list --installed bind9-dnsutils
bind9-dnsutils/focal-updates,focal-security,now 1:9.16.1-0ubuntu2.11 amd64 [installed,automatic]
$ grep DESC /etc/lsb-release
DISTRIB_DESCRIPTION="Ubuntu 20.04.4 LTS"
Steps to reproduce
while delv www.google.com @ns1.netskrt.org; do date; done
Tested nameservers:
- Fedora 29 running BIND 9.11.10-RedHat-9.11.10-1.fc29
- Ubuntu 20.04.4 running PowerDNS 4.7.2
Could not reproduce the crash while using Google (8.8.8.8) or Cloudflare (1.1.1.1).
What is the current bug behavior?
app.c:422: REQUIRE(__extension__ ({ __auto_type __atomic_load_ptr = (&ctx->running); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (5)); __atomic_load_tmp; })) failed, back trace
#0 0x7f7b155e2b8a in ??
#1 0x7f7b155e2ac0 in ??
#2 0x7f7b155e260a in ??
#3 0x7f7b1567d699 in ??
#4 0x7f7b15609fa1 in ??
#5 0x7f7b152dc609 in ??
#6 0x7f7b151ff163 in ??
Aborted (core dumped)
What is the expected correct behavior?
;; REFUSED unexpected RCODE resolving 'www.google.com/A/IN': 38.88.79.216#53
;; resolution failed: SERVFAIL
Note: the program also crashes with requests that are accepted (not shown).
Note2: running the same request with dig
does not crash.
Relevant configuration files
n/a
Relevant logs and/or screenshots
Tue 24 Jan 2023 08:57:24 PM PST
;; REFUSED unexpected RCODE resolving 'www.google.com/A/IN': 38.88.79.216#53
;; resolution failed: SERVFAIL
Tue 24 Jan 2023 08:57:24 PM PST
;; REFUSED unexpected RCODE resolving 'www.google.com/A/IN': 38.88.79.216#53
;; resolution failed: SERVFAIL
Tue 24 Jan 2023 08:57:24 PM PST
app.c:422: REQUIRE(__extension__ ({ __auto_type __atomic_load_ptr = (&ctx->running); __typeof__ (*__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (5)); __atomic_load_tmp; })) failed, back trace
#0 0x7fe359f8cb8a in ??
#1 0x7fe359f8cac0 in ??
#2 0x7fe359f8c60a in ??
#3 0x7fe35a027699 in ??
#4 0x7fe359fb3fa1 in ??
#5 0x7fe359c86609 in ??
#6 0x7fe359ba9163 in ??
Possible fixes
(If you can, link to the line of code that might be responsible for the problem.)