Failed assertion during shutdown: REQUIRE(VALID_NMHANDLE(handle));
https://gitlab.isc.org/isc-projects/bind9/-/jobs/1046503
D:shutdown:Program terminated with signal SIGABRT, Aborted.
D:shutdown:#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
D:shutdown:[Current thread is 1 (Thread 0x7fd36f2b6700 (LWP 14624))]
D:shutdown:#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
D:shutdown:#1 0x00007fd37dd81535 in __GI_abort () at abort.c:79
D:shutdown:#2 0x0000557fb2e42397 in assertion_failed (file=<optimized out>, line=<optimized out>, type=isc_assertiontype_require, cond=<optimized out>) at main.c:254
D:shutdown:#3 0x00007fd37eb9043c in isc_assertion_failed (file=file@entry=0x7fd37ebc6e9b "netmgr/netmgr.c", line=line@entry=1129, type=type@entry=isc_assertiontype_require, cond=cond@entry=0x7fd37ebc3060 "((__builtin_expect(!!((handle) != ((void *)0)), 1) && __builtin_expect(!!(((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))), 1)) && ({ typeof((&(handle)->r"...) at assertions.c:46
D:shutdown:#4 0x00007fd37eb733a8 in isc_nmhandle_ref (handle=<optimized out>) at netmgr/netmgr.c:1131
D:shutdown:#5 0x0000557fb2e3ffb1 in control_command (task=<optimized out>, event=<optimized out>) at controlconf.c:364
D:shutdown:#6 0x00007fd37ebb331f in dispatch (threadid=<optimized out>, manager=0x557fb40743a0) at task.c:1152
D:shutdown:#7 run (queuep=<optimized out>) at task.c:1344
D:shutdown:#8 0x00007fd37e31bfa3 in start_thread (arg=<optimized out>) at pthread_create.c:486
D:shutdown:#9 0x00007fd37de584cf in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
This is more than likely yet another manifestation of reference counting issues introduced by !3724 (merged). Perhaps a fix for one of the related issues (#2036 (closed), #2047 (closed), #2052 (closed), #2057 (closed)) will make this one go away, but I decided to open a separate issue nevertheless to keep track of all the distinct crashes just to make sure we get all of them sorted out in due time.