Bug#1000447: netmgr/netmgr.c:1737: (...) failed

2022-07-22 Thread Bernhard Schmidt
Control: fixed -1 1:9.18.2-1

Hi,

as far as I understand, this has been fixed upstream in 9.18.2

https://gitlab.isc.org/isc-projects/bind9/-/issues/3020
https://gitlab.isc.org/isc-projects/bind9/-/merge_requests/5998

5831.   [bug]   When resending a UDP request in the result of a timeout,
the recv_done() function in dighost.c was prepending
the new query into the loookup's queries list instead
of inserting, which could cause an assertion failure
when the resent query's result was SERVFAIL. [GL #3020]

Bernhard



Bug#1000447: netmgr/netmgr.c:1737: (...) failed

2021-11-23 Thread Ondřej Surý
Hi Nelson,

that’s very useful. However, can I get a full coredump?

I can’t reproduce the problem locally:

# host www.unesp.br 200.145.86.1
Using domain server:
Name: 200.145.86.1
Address: 200.145.86.1#53
Aliases:

Host www.unesp.br not found: 5(REFUSED)

Perhaps also a packetdump that could trigger the crash would be useful.

Also, can you directly report this to the upstream issue tracker - 
https://gitlab.isc.org/isc-projects/bind9/-/issues?

I am also upstream and it would be useful to have this crash directly there 
instead of in the Debian BTS as it doesn’t seem to be directly related to the 
packaging.

Thanks,
Ondrej
--
Ondřej Surý (He/Him)
ond...@sury.org

> On 23. 11. 2021, at 12:17, Nelson A. de Oliveira  wrote:
> 
> Package: bind9-host
> Version: 1:9.17.20-2
> Severity: important
> 
> Hi!
> 
> I am unsure about this problem:
> 
> =
> $ host www.unesp.br 200.145.86.1
> Using domain server:
> Name: 200.145.86.1
> Address: 200.145.86.1#53
> Aliases: 
> 
> www.unesp.br has address 200.145.6.98
> netmgr/netmgr.c:1737: REQUIREhandle) != ((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
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x3552f)[0x7f8dabbe252f]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc_assertion_failed+0xa)[0x7f8dabbe248a]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nmhandle_attach+0x63)[0x7f8dabbccaa3]
> host(+0xe3aa)[0x562a167da3aa]
> host(+0xf2c7)[0x562a167db2c7]
> host(+0x1177b)[0x562a167dd77b]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_async_readcb+0xad)[0x7f8dabbcfe6d]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_readcb+0x97)[0x7f8dabbcff97]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x30cd0)[0x7f8dabbddcd0]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_udp_read_cb+0x46)[0x7f8dabbdf4c6]
> /usr/lib/x86_64-linux-gnu/libuv.so.1(+0x1ee8d)[0x7f8dab729e8d]
> /usr/lib/x86_64-linux-gnu/libuv.so.1(+0x22c75)[0x7f8dab72dc75]
> /usr/lib/x86_64-linux-gnu/libuv.so.1(uv_run+0x114)[0x7f8dab71a854]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x247da)[0x7f8dabbd17da]
> /usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__trampoline_run+0x16)[0x7f8dabc09bd6]
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x8eae)[0x7f8dab909eae]
> /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f8dab839a5f]
> zsh: IOT instruction  host www.unesp.br 200.145.86.1
> =
> 
> It seems that it's only happening for some specific hosts.
> 
> gdb "thread apply all bt full" is attached.
> 
> Thank you!
> 
> Best regards,
> Nelson
> 
> -- System Information:
> Debian Release: bookworm/sid
>  APT prefers testing
>  APT policy: (990, 'testing'), (500, 'unstable-debug'), (200, 'unstable'), 
> (100, 'experimental')
> Architecture: amd64 (x86_64)
> Foreign Architectures: i386
> 
> Kernel: Linux 5.15.0-1-amd64 (SMP w/4 CPU threads)
> Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
> Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
> LANGUAGE=pt_BR:pt:en
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
> 
> Versions of packages bind9-host depends on:
> ii  bind9-libs  1:9.17.20-2
> ii  libc6   2.32-4
> ii  libidn2-0   2.3.2-2
> 
> bind9-host recommends no packages.
> 
> bind9-host suggests no packages.
> 
> -- no debconf information
> 



Bug#1000447: netmgr/netmgr.c:1737: (...) failed

2021-11-23 Thread Nelson A. de Oliveira
Package: bind9-host
Version: 1:9.17.20-2
Severity: important

Hi!

I am unsure about this problem:

=
$ host www.unesp.br 200.145.86.1
Using domain server:
Name: 200.145.86.1
Address: 200.145.86.1#53
Aliases: 

www.unesp.br has address 200.145.6.98
netmgr/netmgr.c:1737: REQUIREhandle) != ((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
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x3552f)[0x7f8dabbe252f]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc_assertion_failed+0xa)[0x7f8dabbe248a]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nmhandle_attach+0x63)[0x7f8dabbccaa3]
host(+0xe3aa)[0x562a167da3aa]
host(+0xf2c7)[0x562a167db2c7]
host(+0x1177b)[0x562a167dd77b]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_async_readcb+0xad)[0x7f8dabbcfe6d]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_readcb+0x97)[0x7f8dabbcff97]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x30cd0)[0x7f8dabbddcd0]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__nm_udp_read_cb+0x46)[0x7f8dabbdf4c6]
/usr/lib/x86_64-linux-gnu/libuv.so.1(+0x1ee8d)[0x7f8dab729e8d]
/usr/lib/x86_64-linux-gnu/libuv.so.1(+0x22c75)[0x7f8dab72dc75]
/usr/lib/x86_64-linux-gnu/libuv.so.1(uv_run+0x114)[0x7f8dab71a854]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(+0x247da)[0x7f8dabbd17da]
/usr/lib/x86_64-linux-gnu/libisc-9.17.20-2-Debian.so(isc__trampoline_run+0x16)[0x7f8dabc09bd6]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x8eae)[0x7f8dab909eae]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x3f)[0x7f8dab839a5f]
zsh: IOT instruction  host www.unesp.br 200.145.86.1
=

It seems that it's only happening for some specific hosts.

gdb "thread apply all bt full" is attached.

Thank you!

Best regards,
Nelson

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (200, 'unstable'), 
(100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.15.0-1-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), 
LANGUAGE=pt_BR:pt:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages bind9-host depends on:
ii  bind9-libs  1:9.17.20-2
ii  libc6   2.32-4
ii  libidn2-0   2.3.2-2

bind9-host recommends no packages.

bind9-host suggests no packages.

-- no debconf information
Starting program: /usr/bin/host www.unesp.br 200.145.86.1
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libidn2.so.0...
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libuv.so.1...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libssl.so.1.1...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libcrypto.so.1.1...
Downloading separate debug info for /lib/x86_64-linux-gnu/libz.so.1...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libjemalloc.so.2...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libjson-c.so.5...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libnghttp2.so.14...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libmaxminddb.so.0...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libgssapi_krb5.so.2...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libkrb5.so.3...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libfstrm.so.0...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libprotobuf-c.so.1...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/liblmdb.so.0...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libunistring.so.2...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libstdc++.so.6...
Downloading separate debug info for /lib/x86_64-linux-gnu/libgcc_s.so.1...
Downloading separate debug info for /usr/lib/x86_64-linux-gnu/libicuuc.so.67...
Downloading separate debug info for 
/home/naoliv/.cache/debuginfod_client/f871bbd529a02abd860f0d16b842b5b20234cb49/debuginfo...
Downloading separate debug info for /lib/x86_64-linux-gnu/liblzma.so.5...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libk5crypto.so.3...
Downloading separate debug info for /lib/x86_64-linux-gnu/libcom_err.so.2...
Downloading separate debug info for 
/usr/lib/x86_64-linux-gnu/libkrb5support.so.0...
Downloading separate debug info for /lib/x86_64-linux-gnu/libkeyutils.so.1...
[New Thread 0x73d7f640 (LWP 52943)]

Thread 2 "isc-net-"