"dig { +trace | +nssearch } +tcp" always crashes in BIND 9.18+
On my laptop, I am consistently observing the following behavior:
$ dig +tcp +trace www.isc.org.
; <<>> DiG 9.17.22 <<>> +tcp +trace www.isc.org.
;; global options: +cmd
. 77196 IN NS f.root-servers.net.
. 77196 IN NS g.root-servers.net.
. 77196 IN NS k.root-servers.net.
. 77196 IN NS m.root-servers.net.
. 77196 IN NS j.root-servers.net.
. 77196 IN NS c.root-servers.net.
. 77196 IN NS b.root-servers.net.
. 77196 IN NS d.root-servers.net.
. 77196 IN NS h.root-servers.net.
. 77196 IN NS a.root-servers.net.
. 77196 IN NS i.root-servers.net.
. 77196 IN NS e.root-servers.net.
. 77196 IN NS l.root-servers.net.
. 77287 IN RRSIG NS 8 0 518400 20220219050000 20220206040000 9799 . HHcODlZKloXHTGpG2jEDuCtBrOBIhXKf+C08Rlaps84YbLolC8BDw3XO KGXtnojjOAAkVJkjhBxKQTX31l5+Vd4pdG1egoP5W88EuZhe9bYomSCT yVsUBJS68+NvBfYnblOE5QAgIX2v9IgHWg7HzJqMuKLzzVuQhaCGW/XC gnZVyGT5hriM2j7R1n9gfzPjvunv3HduvYg4DKf5Ngio6ZU+ncAiiH0w b+uu4QU1MFZk8UbJ7Cl9oDza+siaQzRLy3eZJoPSY8snpeu8kSRyFfo4 /6GTZxrpmTXNJnHBfaBSL6Emsxah/T/DL56e5oB93JlDwUVMc2LR7d5U zDAgew==
dighost.c:1683: INSIST(query->readhandle == ((void *)0)) failed, back trace
AFAICT, this issue is not specific to my local environment, to the address family used, etc.
Edited by Michał Kępień