tls.c:1124: REQUIRE(((source) != ((void *)0) && ((const isc__magic_t *)(source))->magic == ((('T') << 24 | ('l') << 16 | ('S') << 8 | ('c'))))) failed, back trace
The stress
system test hit an tls.c:1124: REQUIRE(((source) != ((void *)0) && ((const isc__magic_t *)(source))->magic == ((('T') << 24 | ('l') << 16 | ('S') << 8 | ('c'))))) failed, back trace
assert in https://gitlab.isc.org/isc-projects/bind9/-/jobs/3412077 on BIND 9.18.
D:/builds/isc-projects/bind9/bin/tests/system/stress:Core was generated by `named'.
D:/builds/isc-projects/bind9/bin/tests/system/stress:Program terminated with signal SIGABRT, Aborted.
D:/builds/isc-projects/bind9/bin/tests/system/stress:#0 thrkill () at /tmp/-:3
D:/builds/isc-projects/bind9/bin/tests/system/stress:[Current thread is 1 (process 503498)]
D:/builds/isc-projects/bind9/bin/tests/system/stress:#0 thrkill () at /tmp/-:3
D:/builds/isc-projects/bind9/bin/tests/system/stress:#1 0x2452e580ca188c36 in ?? ()
D:/builds/isc-projects/bind9/bin/tests/system/stress:#2 0x00000c9ab13a077e in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
D:/builds/isc-projects/bind9/bin/tests/system/stress:#3 0x00000c981ee24c03 in assertion_failed (file=<optimized out>, line=<optimized out>, type=<optimized out>, cond=<optimized out>) at main.c:239
D:/builds/isc-projects/bind9/bin/tests/system/stress:#4 0x00000c9ace4e2230 in isc_assertion_failed (file=0x0, line=6, type=isc_assertiontype_require, cond=0xc9ab1410ba7 <thrkill+23> "s\017d\211\004% ") at assertions.c:48
D:/builds/isc-projects/bind9/bin/tests/system/stress:#5 0x00000c9ace50dc2a in isc_tlsctx_cache_attach (source=<optimized out>, targetp=<optimized out>) at tls.c:1124
D:/builds/isc-projects/bind9/bin/tests/system/stress:#6 0x00000c9af1bdab8d in xfrin_create (mctx=<optimized out>, zone=0xc9af550f020, db=<optimized out>, netmgr=<optimized out>, zonename=0xc9af550f0b8, rdclass=<optimized out>, reqtype=252, primaryaddr=0xc9a92dd9cf8, sourceaddr=0xc9a92dd9e10, tsigkey=0x0, transport=0x0, tlsctx_cache=0x0, xfrp=<optimized out>) at xfrin.c:964
D:/builds/isc-projects/bind9/bin/tests/system/stress:#7 dns_xfrin_create (zone=<optimized out>, xfrtype=252, primaryaddr=<optimized out>, sourceaddr=0xc9a92dd9e10, tsigkey=0x0, transport=<optimized out>, tlsctx_cache=0x0, mctx=0xc9aaf021020, netmgr=0xc9ab6777c20, done=0xc9af1c064d0 <zone_xfrdone>, xfrp=0xc9af550ffc8) at xfrin.c:725
D:/builds/isc-projects/bind9/bin/tests/system/stress:#8 0x00000c9af1c061e6 in got_transfer_quota (task=<optimized out>, event=<optimized out>) at zone.c:18171
D:/builds/isc-projects/bind9/bin/tests/system/stress:#9 0x00000c9ace506ac7 in task_run (task=0xc9a6982bb20) at task.c:815
D:/builds/isc-projects/bind9/bin/tests/system/stress:#10 isc_task_run (task=0xc9a6982bb20) at task.c:896
D:/builds/isc-projects/bind9/bin/tests/system/stress:#11 0x00000c9ace4ca847 in isc__nm_async_task (ev0=0xc9a5feddc20, worker=<optimized out>) at netmgr/netmgr.c:848
D:/builds/isc-projects/bind9/bin/tests/system/stress:#12 process_netievent (worker=0xc9a520dc840, ievent=0xc9a5feddc20) at netmgr/netmgr.c:920
D:/builds/isc-projects/bind9/bin/tests/system/stress:#13 0x00000c9ace4d0aa3 in process_queue (worker=0xc9a520dc840, type=<optimized out>) at netmgr/netmgr.c:1013
D:/builds/isc-projects/bind9/bin/tests/system/stress:#14 0x00000c9ace4c4f9e in process_all_queues (worker=0xc9a520dc840) at netmgr/netmgr.c:767
D:/builds/isc-projects/bind9/bin/tests/system/stress:#15 async_cb (handle=0xc9a520dcb18) at netmgr/netmgr.c:796
D:/builds/isc-projects/bind9/bin/tests/system/stress:#16 0x00000c9b0687883d in uv.async_io () from /usr/local/lib/libuv.so.4.1
D:/builds/isc-projects/bind9/bin/tests/system/stress:#17 0x00000c9b0688a852 in uv.io_poll () from /usr/local/lib/libuv.so.4.1
D:/builds/isc-projects/bind9/bin/tests/system/stress:#18 0x00000c9b06878ec5 in uv_run () from /usr/local/lib/libuv.so.4.1
D:/builds/isc-projects/bind9/bin/tests/system/stress:#19 0x00000c9ace4c509b in nm_thread (worker0=0xc9a520dc840) at netmgr/netmgr.c:698
D:/builds/isc-projects/bind9/bin/tests/system/stress:#20 0x00000c9ace510afb in isc__trampoline_run (arg=0xc9a69848d00) at trampoline.c:189
D:/builds/isc-projects/bind9/bin/tests/system/stress:#21 0x00000c9acb43be51 in _rthread_start (v=<optimized out>) at /usr/src/lib/librthread/rthread.c:96
D:/builds/isc-projects/bind9/bin/tests/system/stress:#22 0x00000c9ab13e3a2a in __tfork_thread () at /usr/src/lib/libc/arch/amd64/sys/tfork_thread.S:86