zt.c:176: REQUIRE(((zt) != ((void *)0) && ((const isc__magic_t *)(zt))->magic == ((('Z') << 24 | ('T') << 16 | ('b') << 8 | ('l'))))) failed
I started BIND (80eb7c2d) on FreeBSD 12.4-RELEASE-p1 (~/bind9/bin/named/named -c ns4/named.conf -g &
), then started Flamethrower (flame --dnssec -P udp -F inet -g file -f 100k_mixed.txt -Q 1500 -p 5300 -v 99 10.53.0.4
). Then I realized I wanted to do something else, so I terminated Flamethrower with Ctrl-C, then put BIND to the foreground with fg
, hit Ctrl-C a bunch of times, and hit this assert:
zt.c:176: REQUIRE(((zt) != ((void *)0) && ((const isc__magic_t *)(zt))->magic == ((('Z') << 24 | ('T') << 16 | ('b') << 8 | ('l'))))) failed
full backtrace
[New LWP 100678]
[New LWP 101524]
[New LWP 101525]
[New LWP 101526]
[New LWP 101527]
Core was generated by `/home/newman/bind9/bin/named/.libs/named -c ns4/named.conf -g'.
Program terminated with signal SIGABRT, Aborted.
Sent by thr_kill() from pid 28899 and user 1001.
#0 0x000000080153bb8a in thr_kill () from /lib/libc.so.7
[Current thread is 1 (LWP 100678)]
#0 0x000000080153bb8a in thr_kill () from /lib/libc.so.7
#1 0x0000000801539f54 in raise () from /lib/libc.so.7
#2 0x00000008014b2449 in abort () from /lib/libc.so.7
#3 0x000000000023d9da in assertion_failed (file=0x800885429 "zt.c", line=176, type=<optimized out>, cond=0x800880794 "((zt) != ((void *)0) && ((const isc__magic_t *)(zt))->magic == ((('Z') << 24 | ('T') << 16 | ('b') << 8 | ('l'))))") at main.c:225
#4 0x0000000800302c4a in isc_assertion_failed (file=0x18946 <error: Cannot access memory at address 0x18946>, line=6, line@entry=176, type=type@entry=isc_assertiontype_require, cond=0x80153bbaa <thr_self+10> "\017\202\004J") at assertions.c:48
#5 0x0000000800a3f218 in dns_zt_find (zt=<optimized out>, name=name@entry=0x80c5a2810, options=<optimized out>, zonep=zonep@entry=0x7ffffffedb98) at zt.c:176
#6 0x00000008009fa699 in dns_view_findzonecut (view=0x801949500, name=0x80c5a2810, fname=fname@entry=0x7ffffffedc10, dcname=dcname@entry=0x7ffffffede20, now=1685018611, options=0, use_hints=<optimized out>, use_cache=<optimized out>, rdataset=0x80c5a2db8, sigrdataset=0x0) at view.c:1090
#7 0x00000008009c6f2a in resume_qmin (arg=<optimized out>) at resolver.c:4181
#8 0x0000000800302f8f in isc__async_cb (handle=<optimized out>) at async.c:112
#9 0x00000008010fcd1a in ?? () from /usr/local/lib/libuv.so.1
#10 0x000000080110e0d5 in ?? () from /usr/local/lib/libuv.so.1
#11 0x00000008010fd2c8 in uv_run () from /usr/local/lib/libuv.so.1
#12 0x0000000800315759 in loop_thread (arg=0x8018c4000) at loop.c:281
#13 0x0000000800315626 in isc_loopmgr_run (loopmgr=0x80188a190) at loop.c:452
#14 0x000000000023d659 in main (argc=<optimized out>, argv=0x7fffffffe9c8) at main.c:1532
[New LWP 100678]
[New LWP 101524]
[New LWP 101525]
[New LWP 101526]
[New LWP 101527]
Core was generated by `/home/newman/bind9/bin/named/.libs/named -c ns4/named.conf -g'.
Program terminated with signal SIGABRT, Aborted.
Sent by thr_kill() from pid 28899 and user 1001.
#0 0x000000080153bb8a in thr_kill () from /lib/libc.so.7
[Current thread is 1 (LWP 100678)]
Thread 5 (LWP 101527):
#0 0x00000008014e300a in _poll () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000801317b46 in ?? () from /lib/libthr.so.3
No symbol table info available.
#2 0x000000080137125f in ?? () from /usr/local/lib/liburcu.so.8
No symbol table info available.
#3 0x0000000801314fd6 in ?? () from /lib/libthr.so.3
No symbol table info available.
#4 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: Cannot access memory at address 0x7fffdf9fb000
Thread 4 (LWP 101526 "isc-loop-0003"):
#0 0x0000000801526f7a in _kevent () from /lib/libc.so.7
No symbol table info available.
#1 0x00000008013180e3 in ?? () from /lib/libthr.so.3
No symbol table info available.
#2 0x000000080110dc03 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008010fd2c8 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#4 0x0000000800315759 in loop_thread (arg=arg@entry=0x8018c5740) at loop.c:281
loop = 0x8018c5740
r = 4
ret = <optimized out>
#5 0x0000000800324473 in thread_body (wrap=0x80190f5e0) at thread.c:88
jemalloc_enforce_init = 0x8019be000
func = 0x8003156e0 <loop_thread>
ret = 0x0
arg = 0x8018c5740
#6 thread_run (wrap=0x80190f5e0) at thread.c:103
ret = <optimized out>
#7 0x0000000801314fd6 in ?? () from /lib/libthr.so.3
No symbol table info available.
#8 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: Cannot access memory at address 0x7fffdfbfc000
Thread 3 (LWP 101525 "isc-loop-0002"):
#0 0x0000000801526f7a in _kevent () from /lib/libc.so.7
No symbol table info available.
#1 0x00000008013180e3 in ?? () from /lib/libthr.so.3
No symbol table info available.
#2 0x000000080110dc03 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008010fd2c8 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#4 0x0000000800315759 in loop_thread (arg=arg@entry=0x8018c4f80) at loop.c:281
loop = 0x8018c4f80
r = 4
ret = <optimized out>
#5 0x0000000800324473 in thread_body (wrap=0x80190f5c0) at thread.c:88
jemalloc_enforce_init = 0x8019bf000
func = 0x8003156e0 <loop_thread>
ret = 0x0
arg = 0x8018c4f80
#6 thread_run (wrap=0x80190f5c0) at thread.c:103
ret = <optimized out>
#7 0x0000000801314fd6 in ?? () from /lib/libthr.so.3
No symbol table info available.
#8 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: Cannot access memory at address 0x7fffdfdfd000
Thread 2 (LWP 101524 "isc-loop-0001"):
#0 0x0000000801526f7a in _kevent () from /lib/libc.so.7
No symbol table info available.
#1 0x00000008013180e3 in ?? () from /lib/libthr.so.3
No symbol table info available.
#2 0x000000080110dc03 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#3 0x00000008010fd2c8 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#4 0x0000000800315759 in loop_thread (arg=arg@entry=0x8018c47c0) at loop.c:281
loop = 0x8018c47c0
r = 4
ret = <optimized out>
#5 0x0000000800324473 in thread_body (wrap=0x80190f600) at thread.c:88
jemalloc_enforce_init = 0x8019bd000
func = 0x8003156e0 <loop_thread>
ret = 0x0
arg = 0x8018c47c0
#6 thread_run (wrap=0x80190f600) at thread.c:103
ret = <optimized out>
#7 0x0000000801314fd6 in ?? () from /lib/libthr.so.3
No symbol table info available.
#8 0x0000000000000000 in ?? ()
No symbol table info available.
Backtrace stopped: Cannot access memory at address 0x7fffdfffe000
Thread 1 (LWP 100678):
#0 0x000000080153bb8a in thr_kill () from /lib/libc.so.7
No symbol table info available.
#1 0x0000000801539f54 in raise () from /lib/libc.so.7
No symbol table info available.
#2 0x00000008014b2449 in abort () from /lib/libc.so.7
No symbol table info available.
#3 0x000000000023d9da in assertion_failed (file=0x800885429 "zt.c", line=176, type=<optimized out>, cond=0x800880794 "((zt) != ((void *)0) && ((const isc__magic_t *)(zt))->magic == ((('Z') << 24 | ('T') << 16 | ('b') << 8 | ('l'))))") at main.c:225
No locals.
#4 0x0000000800302c4a in isc_assertion_failed (file=0x18946 <error: Cannot access memory at address 0x18946>, line=6, line@entry=176, type=type@entry=isc_assertiontype_require, cond=0x80153bbaa <thr_self+10> "\017\202\004J") at assertions.c:48
No locals.
#5 0x0000000800a3f218 in dns_zt_find (zt=<optimized out>, name=name@entry=0x80c5a2810, options=<optimized out>, zonep=zonep@entry=0x7ffffffedb98) at zt.c:176
qpr = {magic = 256, root_ref = 0, base = 0x80185e000, uctx = 0x7ffffffed850, methods = 0x801319c3c, tid = 100678}
pval = 0x0
exactopts = <optimized out>
exactmask = (DNS_ZTFIND_EXACT | DNS_ZTFIND_NOEXACT)
ival = <optimized out>
result = <optimized out>
#6 0x00000008009fa699 in dns_view_findzonecut (view=0x801949500, name=0x80c5a2810, fname=fname@entry=0x7ffffffedc10, dcname=dcname@entry=0x7ffffffede20, now=1685018611, options=0, use_hints=<optimized out>, use_cache=<optimized out>, rdataset=0x80c5a2db8, sigrdataset=0x0) at view.c:1090
zrdataset = {magic = 1145983826, methods = 0x0, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, rdclass = 0, type = 0, ttl = 0, trust = 0, covers = 0, attributes = 0, count = 4294967295, resign = 0, private1 = 0x0, private2 = 0x0, private3 = 0x0, privateuint4 = 0, private5 = 0x0, private6 = 0x0, private7 = 0x0}
zsigrdataset = {magic = 1145983826, methods = 0x0, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, rdclass = 0, type = 0, ttl = 0, trust = 0, covers = 0, attributes = 0, count = 4294967295, resign = 0, private1 = 0x0, private2 = 0x0, private3 = 0x0, privateuint4 = 0, private5 = 0x0, private6 = 0x0, private7 = 0x0}
zfixedname = {name = {magic = 1145983854, ndata = 0x0, length = 0, labels = 0, attributes = {absolute = false, readonly = false, dynamic = false, dynoffsets = false, nocompress = false, cache = false, answer = false, ncache = false, chaining = false, chase = false, wildcard = false, prerequisite = false, update = false, hasupdaterec = false}, offsets = 0x7ffffffed8e8 "\200<\242\001\b", buffer = 0x7ffffffed968, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, list = {head = 0x0, tail = 0x0}}, offsets = "\200<\242\001\b\000\000\000\260\342\205\001\b", '\000' <repeats 11 times>, "p\331\376\377\377\177\000\000\001\322\061\001\b", '\000' <repeats 12 times>, "\367\244\001\b\000\000\000\200\027\243\001\b\000\000\000\200<\242\001\b", '\000' <repeats 11 times>, "c\200\207\000\000\000\000\000\260\342\205\001\b\000\000\000\000\f<\t\b\000\000\000\320\325\271\f\b\000\000\000\000\260\334\f\b\000\000\000\300F\210\001\b\000\000", buffer = {magic = 1114990113, base = 0x7ffffffed9a8, length = 255, used = 0, current = 0, active = 0, extra = 0, dynamic = false, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, mctx = 0x0}, data = "\231\324J\001\b\000\000\000 \332\376\377\377\177\000\000\231\324J\001\b\000\000\000\060\332\376\377\377\177\000\000\000\342\253\t\b\000\000\000\020\241\200\001\b\000\000\000\000\f<\t\b\000\000\000\000X\211\001\b\000\000\000\070\332\376\377\377\177\000\000k\264\256Jp)\331o \000\000\000\000\000\000\000 \000\000\000\000\000\000\000\300F\210\001\b\000\000\000v\220\207\000\b\000\000\000\000\342\253\t\b\000\000\000`\332\376\377\377\177\000\000\071\205\061\000\b", '\000' <repeats 12 times>, "p\300\002\b\000\000\000p\263\334\f\b\000\000\000\000\260\334\f\b\000\000\000P\263\334\f\b\000\000\000v\220\207\000\b\000\000\000 \333\376\377\377\177\000\000\324\322\233\000\b\000\000\000"...}
db = 0x0
zone = 0x0
try_hints = false
use_zone = false
ztoptions = 0
zfname = 0x0
result = <optimized out>
is_cache = <optimized out>
#7 0x00000008009c6f2a in resume_qmin (arg=<optimized out>) at resolver.c:4181
ffixed = {name = {magic = 1145983854, ndata = 0x0, length = 0, labels = 0, attributes = {absolute = false, readonly = false, dynamic = false, dynoffsets = false, nocompress = false, cache = false, answer = false, ncache = false, chaining = false, chase = false, wildcard = false, prerequisite = false, update = false, hasupdaterec = false}, offsets = 0x7ffffffedc60 "\020\241\200\001\b", buffer = 0x7ffffffedce0, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, list = {head = 0x0, tail = 0x0}}, offsets = "\020\241\200\001\b\000\000\000\240\024\000\000\000\000\000\000@\304\200\001\b\000\000\000\370\244\200\001\b\000\000\000\340\333\376\377\377\177\000\000\360\244\200\001\b\000\000\000\020\241\200\001\b\000\000\000\200\t\240\001\b", '\000' <repeats 27 times>, "\001\000\000\000d\000\000\000\363\251\207\000\b\000\000\000p\b\000\000\000\000\000\000x\331\376\377\377\177\000\000\300\243\200\001\b\000\000", buffer = {magic = 1114990113, base = 0x7ffffffedd20, length = 255, used = 0, current = 0, active = 0, extra = 0, dynamic = false, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, mctx = 0x0}, data = "\360\335\376\377\377\177", '\000' <repeats 18 times>, "\031", '\000' <repeats 16 times>, "\254\210\005\b\000\000\000@\304\200\001\b\000\000\000\003,1\000\b\000\000\000 \336\376\377\377\177\000\000\231\324J\001\b\000\000\000@\304\200\001\b\000\000\000\242\307J\001\b", '\000' <repeats 28 times>, "\254\210\005\b\000\000\000\363\251\207\000\b", '\000' <repeats 27 times>, "\200$(\000\000\000\000\000\273\327\207\305\000\000\000\000@\336\376\377\377\177\000\000\001\322\061\001\b", '\000' <repeats 11 times>...}
dcfixed = {name = {magic = 1145983854, ndata = 0x0, length = 0, labels = 0, attributes = {absolute = false, readonly = false, dynamic = false, dynoffsets = false, nocompress = false, cache = false, answer = false, ncache = false, chaining = false, chase = false, wildcard = false, prerequisite = false, update = false, hasupdaterec = false}, offsets = 0x7ffffffede70 "k\264\256Jp)\331o\n", buffer = 0x7ffffffedef0, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, list = {head = 0x0, tail = 0x0}}, offsets = "k\264\256Jp)\331o\n", '\000' <repeats 15 times>, "\031\000\000\000\000\000\000\000\020\337\376\377\377\177\000\000`}v\001\b\000\000\000\260\342\205\001\b", '\000' <repeats 11 times>, " \337\376\377\377\177\000\000\001\322\061\001\b\000\000\000k\264\256Jp)\331o\n\000\000\000\000\000\000\000\020\337\376\377\377\177\000\000k\264\256Jp)\331oP\026v\005\b\000\000\000\000\000\000\000\000\000\000", buffer = {magic = 1114990113, base = 0x7ffffffedf30, length = 255, used = 0, current = 0, active = 0, extra = 0, dynamic = false, link = {prev = 0xffffffffffffffff, next = 0xffffffffffffffff}, mctx = 0x0}, data = "\000>c\005\b\000\000\000{\343\206\000\b\000\000\000\200\276\255\005\b\000\000\000\300\276\255\005\b\000\000\000 \340\376\377\377\177\000\000\343>\215\000\b\000\000\000 \340\376\377\377\177\000\000\000\254\210\005\b\000\000\000\234\245\200\001\b", '\000' <repeats 11 times>, "\360\337\376\377\377\177\000\000\336\327J\001\b\000\000\000\020\241\200\001\b\000\000\000\000\214Z\f\b\000\000\000\260\342\205\001\b", '\000' <repeats 11 times>, " \340\376\377\377\177\000\000\001\322\061\001\b", '\000' <repeats 11 times>, "\370Wod\n:`\037p\257\210\005\b", '\000' <repeats 11 times>, "\200$(\000\000\000\000\000\360%(\000\000\000\000\000(\000\000\000\031\000\000\000\000"...}
resp = 0x0
dcname = 0x7ffffffede20
fname = 0x7ffffffedc10
findoptions = 0
res = 0x802c07000
fctx = 0x80c5a2800
result = ISC_R_FAILURE
#8 0x0000000800302f8f in isc__async_cb (handle=<optimized out>) at async.c:112
job = 0x802de9d40
jobs = {head = {node = {next = 0x8056334d0}}, tail = {p = 0x802de9090}}
loop = 0x8018c4000
ret = <optimized out>
node = 0x802de9d50
next = 0x80b8023d0
#9 0x00000008010fcd1a in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#10 0x000000080110e0d5 in ?? () from /usr/local/lib/libuv.so.1
No symbol table info available.
#11 0x00000008010fd2c8 in uv_run () from /usr/local/lib/libuv.so.1
No symbol table info available.
#12 0x0000000800315759 in loop_thread (arg=0x8018c4000) at loop.c:281
loop = 0x8018c4000
r = 0
ret = <optimized out>
#13 0x0000000800315626 in isc_loopmgr_run (loopmgr=0x80188a190) at loop.c:452
free_call_rcu_data = <optimized out>
#14 0x000000000023d659 in main (argc=<optimized out>, argv=0x7fffffffe9c8) at main.c:1532
result = <optimized out>