Assertion failure during the statistics system test when calling dns_adb_attach() from the resolver
https://gitlab.isc.org/isc-projects/bind9/-/jobs/3193922
Backtrace:
D:/builds/isc-projects/bind9/bin/tests/system/statistics:Core was generated by `/builds/isc-projects/bind9/bin/named/.libs/named -D statistics-ns2 -X named.loc'.
D:/builds/isc-projects/bind9/bin/tests/system/statistics:Program terminated with signal SIGABRT, Aborted.
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
D:/builds/isc-projects/bind9/bin/tests/system/statistics:[Current thread is 1 (Thread 0x7fcd25b4b6c0 (LWP 17992))]
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#1 0x00007fcd2a2dcd2f in __pthread_kill_internal (signo=6, threadid=<optimized out>) at ./nptl/pthread_kill.c:78
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#2 0x00007fcd2a28def2 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#3 0x00007fcd2a278472 in __GI_abort () at ./stdlib/abort.c:79
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#4 0x000056340dae69fa in assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>, cond=0x7fcd2ae8618d "ptr != ((void *)0)") at main.c:234
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#5 0x00007fcd2aefe90a in isc_assertion_failed (file=file@entry=0x7fcd2ae6d490 "adb.c", line=line@entry=1934, type=type@entry=isc_assertiontype_require, cond=cond@entry=0x7fcd2ae8618d "ptr != ((void *)0)") at assertions.c:48
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#6 0x00007fcd2acdc741 in dns_adb_ref (ptr=<optimized out>) at adb.c:1934
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#7 0x00007fcd2acdc9ad in dns_adb_attach (ptr=0x0, ptrp=ptrp@entry=0x7fccfc008510) at adb.c:1934
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#8 0x00007fcd2adda0cc in fctx_create (res=res@entry=0x56340f13bcc0, name=name@entry=0x7fccfc0068d8, type=type@entry=48, domain=domain@entry=0x0, nameservers=nameservers@entry=0x0, client=client@entry=0x0, options=<optimized out>, depth=<optimized out>, qc=<optimized out>, fctxp=<optimized out>) at resolver.c:4894
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#9 0x00007fcd2addaae2 in dns_resolver_createfetch (res=0x56340f13bcc0, name=name@entry=0x7fccfc0068d8, type=type@entry=48, domain=domain@entry=0x0, nameservers=nameservers@entry=0x0, forwarders=forwarders@entry=0x0, client=<optimized out>, id=<optimized out>, options=<optimized out>, depth=<optimized out>, qc=<optimized out>, loop=<optimized out>, cb=<optimized out>, arg=<optimized out>, rdataset=<optimized out>, sigrdataset=<optimized out>, fetchp=<optimized out>) at resolver.c:10638
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#10 0x00007fcd2ae34479 in do_keyfetch (arg=0x7fccfc0068d0) at zone.c:10700
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#11 0x00007fcd2af0bdee in isc__job_cb (idle=0x56340f07ba68) at job.c:75
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#12 0x00007fcd2a7278a1 in ?? () from /lib/x86_64-linux-gnu/libuv.so.1
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#13 0x00007fcd2a7209b9 in uv_run () from /lib/x86_64-linux-gnu/libuv.so.1
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#14 0x00007fcd2af124c6 in loop_run (loop=loop@entry=0x56340ef368a0) at loop.c:273
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#15 0x00007fcd2af125ff in loop_thread (arg=0x56340ef368a0) at loop.c:299
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#16 0x00007fcd2af2968b in isc__trampoline_run (arg=0x56340f01d8b0) at trampoline.c:202
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#17 0x00007fcd2a2dafd4 in start_thread (arg=<optimized out>) at ./nptl/pthread_create.c:442
D:/builds/isc-projects/bind9/bin/tests/system/statistics:#18 0x00007fcd2a35a8d0 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100
D:statistics:--------------------------------------------------------------------------------
D:statistics:full backtrace from /builds/isc-projects/bind9/bin/tests/system/statistics/ns2/core.17976 saved in /builds/isc-projects/bind9/bin/tests/system/statistics/ns2/core.17976-backtrace.txt
D:statistics:core dump /builds/isc-projects/bind9/bin/tests/system/statistics/ns2/core.17976 archived as /builds/isc-projects/bind9/bin/tests/system/statistics/ns2/core.17976.gz
R:statistics:FAIL
E:statistics:2023-02-27T10:26:26+0000
FAIL statistics (exit status: 1)