On 2022-01-11 02:48:53 +0100, Vincent Lefevre wrote:
> Package: bind9-host
> Version: 1:9.17.21-1
> Severity: important
>
> I've just got the following error:
>
> zira:~> host 164.160.126.15
> netmgr/netmgr.c:1737: REQUIRE((((handle) != ((void *)0) && ((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))) && __extension__ ({ __auto_type __atomic_load_ptr = (&(handle)->references); __typeof__ ((void)0, *__atomic_load_ptr) __atomic_load_tmp; __atomic_load (__atomic_load_ptr, &__atomic_load_tmp, (5)); __atomic_load_tmp; }) > 0)) failed, back trace
[...]
Here's the backtrace obtained with gdb:
[...]
Core was generated by `host 164.160.126.15'.
Program terminated with signal SIGABRT, Aborted.
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
49 ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
[Current thread is 1 (Thread 0x7f2c9717f640 (LWP 332931))]
(gdb) bt
#0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:49
#1 0x00007f2c9aa0e536 in __GI_abort () at abort.c:79
#2 0x00007f2c9ae965bf in isc_assertion_failed (
file=file@entry=0x7f2c9aecb289 "netmgr/netmgr.c", line=line@entry=1737,
type=type@entry=isc_assertiontype_require,
cond=cond@entry=0x7f2c9aec96b0 "(((handle) != ((void *)0) && ((const isc__magic_t *)(handle))->magic == ((('N') << 24 | ('M') << 16 | ('H') << 8 | ('D')))) && __extension__ ({ __auto_type __atomic_load_ptr = (&(handle)->references);"...) at ./lib/isc/assertions.c:48
#3 0x00007f2c9ae80af3 in isc__nmhandle_attach (handle=<optimized out>,
handlep=handlep@entry=0x7f2c9642d0a8) at netmgr/netmgr.c:1737
#4 0x000055be27fc339a in launch_next_query (query=<optimized out>,
query@entry=0x7f2c9642d000) at ./bin/dig/dighost.c:3137
#5 0x000055be27fc42b7 in start_udp (query=<optimized out>)
at ./bin/dig/dighost.c:2941
#6 0x000055be27fc676b in recv_done (handle=<optimized out>,
eresult=<optimized out>, region=<optimized out>, arg=<optimized out>)
at ./bin/dig/dighost.c:3899
#7 0x00007f2c9ae83f8d in isc__nm_async_readcb (worker=worker@entry=0x0,
ev0=ev0@entry=0x7f2c9717a060) at netmgr/netmgr.c:2805
#8 0x00007f2c9ae840b7 in isc__nm_readcb (sock=sock@entry=0x7f2c96413400,
uvreq=<optimized out>, eresult=eresult@entry=ISC_R_SUCCESS)
at netmgr/netmgr.c:2778
#9 0x00007f2c9ae91e00 in udp_recv_cb (handle=handle@entry=0x7f2c964139b0,
nrecv=nrecv@entry=45, buf=buf@entry=0x7f2c9717a1c0,
addr=addr@entry=0x7f2c9717a210, flags=flags@entry=0) at netmgr/udp.c:637
#10 0x00007f2c9ae935e6 in isc__nm_udp_read_cb (handle=0x7f2c964139b0,
nrecv=45, buf=0x7f2c9717a1c0, addr=0x7f2c9717a210, flags=0)
at netmgr/udp.c:1021
#11 0x00007f2c9a9cee8d in uv__udp_recvmsg (handle=0x7f2c964139b0)
at ./src/unix/udp.c:302
#12 uv__udp_io (loop=<optimized out>, w=0x7f2c96413a30, revents=1)
at ./src/unix/udp.c:178
#13 0x00007f2c9a9d2c75 in uv__io_poll (loop=loop@entry=0x7f2c9782c010,
timeout=<optimized out>) at ./src/unix/epoll.c:374
#14 0x00007f2c9a9bf854 in uv_run (loop=loop@entry=0x7f2c9782c010,
mode=mode@entry=UV_RUN_DEFAULT) at ./src/unix/core.c:389
#15 0x00007f2c9ae858fa in nm_thread (worker0=0x7f2c9782c000)
at netmgr/netmgr.c:688
#16 0x00007f2c9aebdca6 in isc__trampoline_run (arg=0x55be29195e80)
at ./lib/isc/trampoline.c:185
#17 0x00007f2c9abb9d80 in start_thread (arg=0x7f2c9717f640)
at pthread_create.c:481
#18 0x00007f2c9aae4b6f in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
And attached, a full backtrace with all threads (thread apply all bt full).