As requested:
gdb /usr/sbin/named
GNU gdb (Debian 13.2-1+b2) 13.2
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/sbin/named...
(No debugging symbols found in /usr/sbin/named)
(gdb) set args -f -u bind
(gdb) run
Starting program: /usr/sbin/named -f -u bind
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3000680 (LWP 30029)]
[New Thread 0x7ffff2600680 (LWP 30030)]
[New Thread 0x7ffff1400680 (LWP 30031)]
[New Thread 0x7ffff0600680 (LWP 30032)]
free(): invalid pointer
Thread 1 "named" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
44 ./nptl/pthread_kill.c: Arquivo ou diret▒rio inexistente.
(gdb) bt
#0 __pthread_kill_implementation (threadid=<optimized out>,
signo=signo@entry=6, no_tid=no_tid@entry=0) at ./nptl/pthread_kill.c:44
#1 0x00007ffff6e0db6f in __pthread_kill_internal (signo=6,
threadid=<optimized out>) at ./nptl/pthread_kill.c:78
#2 0x00007ffff6dbf4e2 in __GI_raise (sig=sig@entry=6) at
../sysdeps/posix/raise.c:26
#3 0x00007ffff6da84ed in __GI_abort () at ./stdlib/abort.c:79
#4 0x00007ffff6da9395 in __libc_message (fmt=fmt@entry=0x7ffff6f1d55e
"%s\n") at ../sysdeps/posix/libc_fatal.c:150
#5 0x00007ffff6e17455 in malloc_printerr (str=str@entry=0x7ffff6f1b02b
"free(): invalid pointer") at ./malloc/malloc.c:5765
#6 0x00007ffff6e195b4 in _int_free (av=0x7ffff6f58ac0 <main_arena>,
p=<optimized out>, have_lock=have_lock@entry=0) at ./malloc/malloc.c:4500
#7 0x00007ffff6e1be2f in __GI___libc_free (mem=<optimized out>) at
./malloc/malloc.c:3391
#8 0x00007fffedc97155 in ?? () from
/usr/lib/x86_64-linux-gnu/samba/ldb/schema_load.so
#9 0x00007ffff266082b in dsdb_get_schema () from
/usr/lib/x86_64-linux-gnu/samba/libldbsamba-private-samba.so.0
#10 0x00007fffedc96d5c in ?? () from
/usr/lib/x86_64-linux-gnu/samba/ldb/schema_load.so
#11 0x00007ffff39632c2 in ldb_module_init_chain () from
/lib/x86_64-linux-gnu/libldb.so.2
#12 0x00007ffff39632c2 in ldb_module_init_chain () from
/lib/x86_64-linux-gnu/libldb.so.2
#13 0x00007fffedce8dd4 in ?? () from
/usr/lib/x86_64-linux-gnu/samba/ldb/rootdse.so
#14 0x00007ffff39632c2 in ldb_module_init_chain () from
/lib/x86_64-linux-gnu/libldb.so.2
#15 0x00007fffedcc6f13 in ?? () from
/usr/lib/x86_64-linux-gnu/samba/ldb/samba_dsdb.so
#16 0x00007ffff39632c2 in ldb_module_init_chain () from
/lib/x86_64-linux-gnu/libldb.so.2
#17 0x00007ffff39633ac in ldb_load_modules () from
/lib/x86_64-linux-gnu/libldb.so.2
#18 0x00007ffff39622be in ldb_connect () from
/lib/x86_64-linux-gnu/libldb.so.2
#19 0x00007ffff265b435 in samba_ldb_connect () from
/usr/lib/x86_64-linux-gnu/samba/libldbsamba-private-samba.so.0
#20 0x00007ffff3924678 in samdb_connect_url () from
/lib/x86_64-linux-gnu/libsamdb.so.0
#21 0x00007ffff66aca6e in dlz_create () from
/usr/lib/x86_64-linux-gnu/samba/bind9/dlz_bind9_18.so
#22 0x0000555555579126 in ?? ()
#23 0x00007ffff794d49a in ?? () from
/lib/x86_64-linux-gnu/libdns-9.19.25-185-g392e7199df2-1-Debian.so
#24 0x00007ffff7859105 in dns_dlzcreate () from
/lib/x86_64-linux-gnu/libdns-9.19.25-185-g392e7199df2-1-Debian.so
#25 0x000055555558cf07 in ?? ()
#26 0x000055555559d88f in ?? ()
#27 0x000055555559eb81 in ?? ()
#28 0x00007ffff7f4e537 in isc.async_cb () from
/lib/x86_64-linux-gnu/libisc-9.19.25-185-g392e7199df2-1-Debian.so
#29 0x00007ffff7b12d33 in ?? () from /lib/x86_64-linux-gnu/libuv.so.1
#30 0x00007ffff7b26a72 in ?? () from /lib/x86_64-linux-gnu/libuv.so.1
#31 0x00007ffff7b139f8 in uv_run () from /lib/x86_64-linux-gnu/libuv.so.1
#32 0x00007ffff7f61850 in ?? () from
/lib/x86_64-linux-gnu/libisc-9.19.25-185-g392e7199df2-1-Debian.so
#33 0x000055555556e97a in main ()
Em 28/06/2024 01:56, Michael Tokarev escreveu:
On 6/27/24 16:33, Lucas Bocchi wrote:
Package: bind9
Version: 1:9.19.24-185-g392e7199df2-1
Severity: important
Dear Maintainer,
BIND9 with default configs, only enabling BIND9_DLZ, appears SEGFAULT
on new bind9 version to debian testing
Jun 27 10:26:01 gw-fw-local named[146587]: Loading 'AD DNS Zone'
using driver dlopen
Jun 27 10:26:01 gw-fw-local kernel: named[146587]: segfault at 8 ip
00007ff967100340 sp 00007ffcf4188950 error 4 in
libc.so.6[7ff96708f000+157000] likely on CPU 0 (core 0, socket 0)
Jun 27 10:26:01 gw-fw-local kernel: Code: 5c 41 5d 41 5e e9 f0 fa ff
ff 48 8d 3d a9 71 10 00 e8 14 e1 ff ff 0f 1f 40 00 48 8d 3d 31 71 10
00 e8 04 e1 ff ff 0f 1f 40 00 <48> 8b 50 08 48 83 e2 f8 48 01 d0 49
39 c5 0f 82 38 ff ff ff 48 8d
Can you try to get a stack backtrace from named?
We already had a similar bug before,
https://bugzilla.samba.org/show_bug.cgi?id=14030
Thanks,
/mjt