Hi Andrew !
Here is some log with gdb enable as you suggest.
You also found at bottom our config.
Just tell me if you want more tests or logs
[2020/03/05 11:41:57.287765, 0] ../../source3/smbd/server.c:1775(main)
smbd version 4.11.6-Debian started.
Copyright Andrew Tridgell and the Samba Team 1992-2019
[2020/03/05 11:41:57.496336, 0]
../../lib/util/become_daemon.c:136(daemon_ready)
daemon_ready: daemon 'smbd' finished starting up and ready to serve
connections
[2020/03/05 11:41:58.873528, 0]
../../source3/smbd/server.c:1241(open_sockets_smbd)
open_sockets_smbd: No sockets available to bind to.
[2020/03/05 11:41:58.937959, 0] ../../source3/lib/util.c:824(smb_panic_s3)
PANIC (pid 31188): open_sockets_smbd() failed
[2020/03/05 11:41:58.938405, 0] ../../lib/util/fault.c:265(log_stack_trace)
BACKTRACE: 9 stack frames:
#0 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(log_stack_trace+0x30)
[0x7ff67599dbb0]
#1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x18)
[0x7ff675562a48]
#2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2d)
[0x7ff67599dcad]
#3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1baa9a)
[0x7ff6757b3a9a]
#4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1bae13)
[0x7ff6757b3e13]
#5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-shim.so.0(exit_server+0x14)
[0x7ff674da3264]
#6 /usr/sbin/smbd(main+0x13d2) [0x5587f1990402]
#7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb) [0x7ff6737cc09b]
#8 /usr/sbin/smbd(_start+0x2a) [0x5587f1990efa]
[2020/03/05 11:41:58.938525, 0] ../../source3/lib/util.c:836(smb_panic_s3)
smb_panic(): calling panic action [/usr/local/bin/gdb_backtrace 31188]
[Thread debugging using libthread_db enabled]
Using host libthread_db library
"/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007ff67386e437 in __GI___waitpid (pid=31200, stat_loc=stat_loc at
entry=0x7ffdf0c9c8c8, options=options at entry=0) at
../sysdeps/unix/sysv/linux/waitpid.c:30
30 ../sysdeps/unix/sysv/linux/waitpid.c: Aucun fichier ou dossier de ce
type.
#0 0x00007ff67386e437 in __GI___waitpid (pid=31200, stat_loc=stat_loc at
entry=0x7ffdf0c9c8c8, options=options at entry=0) at
../sysdeps/unix/sysv/linux/waitpid.c:30
resultvar = 18446744073709551104
sc_ret = <optimized out>
#1 0x00007ff6737ec5df in do_system (line=line at entry=0x5587f1b3b830
"/usr/local/bin/gdb_backtrace 31188") at ../sysdeps/posix/system.c:149
__result = <optimized out>
_buffer = {__routine = 0x7ff6737ec8e0 <cancel_handler>, __arg =
0x7ffdf0c9c8cc, __canceltype = 0, __prev = 0x0}
_avail = 1
status = 0
save = <optimized out>
pid = 31200
sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1},
sa_mask = {__val = {65536, 0 <repeats 15 times>}}, sa_flags = 0,
sa_restorer = 0x1}
omask = {__val = {6272, 71776119061217280, 8444003238937632800,
8660248813382890099, 0, 0, 140728643211360, 140728643211168, 0,
18446744073709551360, 0, 35322350010368, 18446744073709551615, 184467
44073709551615, 0, 0}}
#2 0x00007ff6737ec9ca in __libc_system (line=line at entry=0x5587f1b3b830
"/usr/local/bin/gdb_backtrace 31188") at ../sysdeps/posix/system.c:185
No locals.
#3 0x00007ff675562aa7 in smb_panic_s3 (why=<optimized out>) at
../../source3/lib/util.c:837
cmd = 0x5587f1b3b830 "/usr/local/bin/gdb_backtrace 31188"
result = <optimized out>
__FUNCTION__ = "smb_panic_s3"
#4 0x00007ff67599dcad in smb_panic () from
/usr/lib/x86_64-linux-gnu/libsamba-util.so.0
No symbol table info available.
#5 0x00007ff6757b3a9a in exit_server_common (how=how at
entry=SERVER_EXIT_ABNORMAL, reason=0x5587f199bfb7 "open_sockets_smbd()
failed") at ../../source3/smbd/server_exit.c:238
client = 0x0
xconn = 0x0
sconn = 0x0
msg_ctx = 0x5587f1b23f90
__FUNCTION__ = "exit_server_common"
#6 0x00007ff6757b3e13 in smbd_exit_server (explanation=<optimized out>)
at ../../source3/smbd/server_exit.c:255
No locals.
#7 0x00007ff674da3264 in exit_server (reason=<optimized out>) at
../../source3/lib/smbd_shim.c:113
No locals.
#8 0x00005587f1990402 in main (argc=<optimized out>, argv=<optimized
out>) at ../../source3/smbd/server.c:2154
is_daemon = <optimized out>
interactive = <optimized out>
Fork = <optimized out>
no_process_group = <optimized out>
log_stdout = <optimized out>
ports = 0x0
profile_level = 0x0
opt = <optimized out>
pc = <optimized out>
print_build_options = <optimized out>
main_server_id = {pid = 31188, task_id = 0, vnn = 4294967295, unique_id
= 10722666587451043910}
long_options = {{longName = 0x0, shortName = 0 '\000', argInfo =
4, arg = 0x7ff673976160 <poptHelpOptions>, val = 0, descrip =
0x5587f199bc5c "Help options:", argDescrip = 0x0}, {longName = 0x5587f
199bc6a "daemon", shortName = 68 'D', argInfo = 0, arg = 0x0,
val = 1000, descrip = 0x5587f199bc71 "Become a daemon (default)",
argDescrip = 0x0}, {longName = 0x5587f199bc8b "interactive", shortName
= 105
'i', argInfo = 0, arg = 0x0, val = 1001, descrip = 0x5587f199aab0
"Run interactive (not a daemon) and log to stdout", argDescrip = 0x0},
{longName = 0x5587f199bc97 "foreground", shortName = 70 'F',
argInfo
= 0, arg = 0x0, val = 1002, descrip = 0x5587f199aae8 "Run daemon in
foreground (for daemontools, etc.)", argDescrip = 0x0}, {longName =
0x5587f199bca2 "no-process-group", shortName = 0 '\000',
argInfo = 0
, arg = 0x0, val = 1003, descrip = 0x5587f199ab20 "Don't create a new
process group", argDescrip = 0x0}, {longName = 0x5587f199bcb3
"log-stdout", shortName = 83 'S', argInfo = 0, arg = 0x0, val
= 1004, des
crip = 0x5587f199bcbe "Log to stdout", argDescrip = 0x0}, {longName =
0x5587f199bccc "build-options", shortName = 98 'b', argInfo =
0, arg = 0x0, val = 98, descrip = 0x5587f199bcda "Print build
options", a
rgDescrip = 0x0}, {longName = 0x5587f199bcee "port", shortName = 112
'p', argInfo = 1, arg = 0x7ffdf0c9cc58, val = 0, descrip =
0x5587f199bcf3 "Listen on the specified ports", argDescrip = 0x0},
{longName
= 0x5587f199bd11 "profiling-level", shortName = 80 'P',
argInfo = 1, arg = 0x7ffdf0c9cc60, val = 0, descrip = 0x5587f199bd21 "Set
profiling level", argDescrip = 0x5587f199bd35 "PROFILE_LEVEL"},
{longName 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7ff67597e2a0
<popt_common_samba>, val = 0, descrip = 0x5587f199bd43 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0
'\000', argIn
fo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
parent = 0x5587f1b335e0
frame = 0x5587f1b1b610
status = <optimized out>
ev_ctx = 0x5587f1b1f230
msg_ctx = 0x5587f1b32970
server_id = {pid = 31188, task_id = 0, vnn = 4294967295, unique_id =
17695401597802082323}
se = <optimized out>
profiling_level = <optimized out>
np_dir = <optimized out>
smbd_shim_fns = {send_stat_cache_delete_message = 0x7ff6757710d0
<smbd_send_stat_cache_delete_message>, change_to_root_user =
0x7ff675756550 <smbd_change_to_root_user>, become_authenticated_pipe_us
er = 0x7ff6757565f0 <smbd_become_authenticated_pipe_user>,
unbecome_authenticated_pipe_user = 0x7ff6757566a0
<smbd_unbecome_authenticated_pipe_user>, contend_level2_oplocks_begin =
0x7ff6757bcaf0 <smbd_con
tend_level2_oplocks_begin>, contend_level2_oplocks_end = 0x7ff6757bcee0
<smbd_contend_level2_oplocks_end>, become_root = 0x7ff6757566b0
<smbd_become_root>, unbecome_root = 0x7ff6757566f0 <smbd_unbecome_roo
t>, exit_server = 0x7ff6757b3e00 <smbd_exit_server>,
exit_server_cleanly = 0x7ff6757b3e20 <smbd_exit_server_cleanly>}
__FUNCTION__ = "main"
__func__ = "main"
Thread 1 (Thread 0x7ff67022c1c0 (LWP 31188)):
#0 0x00007ff67386e437 in __GI___waitpid (pid=31200, stat_loc=stat_loc at
entry=0x7ffdf0c9c8c8, options=options at entry=0) at
../sysdeps/unix/sysv/linux/waitpid.c:30
resultvar = 18446744073709551104
sc_ret = <optimized out>
#1 0x00007ff6737ec5df in do_system (line=line at entry=0x5587f1b3b830
"/usr/local/bin/gdb_backtrace 31188") at ../sysdeps/posix/system.c:149
__result = <optimized out>
_buffer = {__routine = 0x7ff6737ec8e0 <cancel_handler>, __arg =
0x7ffdf0c9c8cc, __canceltype = 0, __prev = 0x0}
_avail = 1
status = 0
save = <optimized out>
pid = 31200
sa = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1},
sa_mask = {__val = {65536, 0 <repeats 15 times>}}, sa_flags = 0,
sa_restorer = 0x1}
omask = {__val = {6272, 71776119061217280, 8444003238937632800,
8660248813382890099, 0, 0, 140728643211360, 140728643211168, 0,
18446744073709551360, 0, 35322350010368, 18446744073709551615, 184467
44073709551615, 0, 0}}
#2 0x00007ff6737ec9ca in __libc_system (line=line at entry=0x5587f1b3b830
"/usr/local/bin/gdb_backtrace 31188") at ../sysdeps/posix/system.c:185
No locals.
#3 0x00007ff675562aa7 in smb_panic_s3 (why=<optimized out>) at
../../source3/lib/util.c:837
cmd = 0x5587f1b3b830 "/usr/local/bin/gdb_backtrace 31188"
result = <optimized out>
__FUNCTION__ = "smb_panic_s3"
#4 0x00007ff67599dcad in smb_panic () from
/usr/lib/x86_64-linux-gnu/libsamba-util.so.0
No symbol table info available.
#5 0x00007ff6757b3a9a in exit_server_common (how=how at
entry=SERVER_EXIT_ABNORMAL, reason=0x5587f199bfb7 "open_sockets_smbd()
failed") at ../../source3/smbd/server_exit.c:238
client = 0x0
xconn = 0x0
sconn = 0x0
msg_ctx = 0x5587f1b23f90
__FUNCTION__ = "exit_server_common"
#6 0x00007ff6757b3e13 in smbd_exit_server (explanation=<optimized out>)
at ../../source3/smbd/server_exit.c:255
No locals.
#7 0x00007ff674da3264 in exit_server (reason=<optimized out>) at
../../source3/lib/smbd_shim.c:113
No locals.
#8 0x00005587f1990402 in main (argc=<optimized out>, argv=<optimized
out>) at ../../source3/smbd/server.c:2154
is_daemon = <optimized out>
interactive = <optimized out>
Fork = <optimized out>
no_process_group = <optimized out>
log_stdout = <optimized out>
ports = 0x0
profile_level = 0x0
opt = <optimized out>
pc = <optimized out>
print_build_options = <optimized out>
main_server_id = {pid = 31188, task_id = 0, vnn = 4294967295, unique_id
= 10722666587451043910}
long_options = {{longName = 0x0, shortName = 0 '\000', argInfo =
4, arg = 0x7ff673976160 <poptHelpOptions>, val = 0, descrip =
0x5587f199bc5c "Help options:", argDescrip = 0x0}, {longName = 0x5587f
199bc6a "daemon", shortName = 68 'D', argInfo = 0, arg = 0x0,
val = 1000, descrip = 0x5587f199bc71 "Become a daemon (default)",
argDescrip = 0x0}, {longName = 0x5587f199bc8b "interactive", shortName
= 105
'i', argInfo = 0, arg = 0x0, val = 1001, descrip = 0x5587f199aab0
"Run interactive (not a daemon) and log to stdout", argDescrip = 0x0},
{longName = 0x5587f199bc97 "foreground", shortName = 70 'F',
argInfo
= 0, arg = 0x0, val = 1002, descrip = 0x5587f199aae8 "Run daemon in
foreground (for daemontools, etc.)", argDescrip = 0x0}, {longName =
0x5587f199bca2 "no-process-group", shortName = 0 '\000',
argInfo = 0
, arg = 0x0, val = 1003, descrip = 0x5587f199ab20 "Don't create a new
process group", argDescrip = 0x0}, {longName = 0x5587f199bcb3
"log-stdout", shortName = 83 'S', argInfo = 0, arg = 0x0, val
= 1004, des
crip = 0x5587f199bcbe "Log to stdout", argDescrip = 0x0}, {longName =
0x5587f199bccc "build-options", shortName = 98 'b', argInfo =
0, arg = 0x0, val = 98, descrip = 0x5587f199bcda "Print build
options", a
rgDescrip = 0x0}, {longName = 0x5587f199bcee "port", shortName = 112
'p', argInfo = 1, arg = 0x7ffdf0c9cc58, val = 0, descrip =
0x5587f199bcf3 "Listen on the specified ports", argDescrip = 0x0},
{longName
= 0x5587f199bd11 "profiling-level", shortName = 80 'P',
argInfo = 1, arg = 0x7ffdf0c9cc60, val = 0, descrip = 0x5587f199bd21 "Set
profiling level", argDescrip = 0x5587f199bd35 "PROFILE_LEVEL"},
{longName 0x0, shortName = 0 '\000', argInfo = 4, arg = 0x7ff67597e2a0
<popt_common_samba>, val = 0, descrip = 0x5587f199bd43 "Common samba
options:", argDescrip = 0x0}, {longName = 0x0, shortName = 0
'\000', argIn
fo = 0, arg = 0x0, val = 0, descrip = 0x0, argDescrip = 0x0}}
parent = 0x5587f1b335e0
frame = 0x5587f1b1b610
status = <optimized out>
ev_ctx = 0x5587f1b1f230
msg_ctx = 0x5587f1b32970
server_id = {pid = 31188, task_id = 0, vnn = 4294967295, unique_id =
17695401597802082323}
se = <optimized out>
profiling_level = <optimized out>
np_dir = <optimized out>
smbd_shim_fns = {send_stat_cache_delete_message = 0x7ff6757710d0
<smbd_send_stat_cache_delete_message>, change_to_root_user =
0x7ff675756550 <smbd_change_to_root_user>, become_authenticated_pipe_us
er = 0x7ff6757565f0 <smbd_become_authenticated_pipe_user>,
unbecome_authenticated_pipe_user = 0x7ff6757566a0
<smbd_unbecome_authenticated_pipe_user>, contend_level2_oplocks_begin =
0x7ff6757bcaf0 <smbd_con
tend_level2_oplocks_begin>, contend_level2_oplocks_end = 0x7ff6757bcee0
<smbd_contend_level2_oplocks_end>, become_root = 0x7ff6757566b0
<smbd_become_root>, unbecome_root = 0x7ff6757566f0 <smbd_unbecome_roo
t>, exit_server = 0x7ff6757b3e00 <smbd_exit_server>,
exit_server_cleanly = 0x7ff6757b3e20 <smbd_exit_server_cleanly>}
__FUNCTION__ = "main"
__func__ = "main"
resultvar = 18446744073709551104
sc_ret = <optimized out>
A debugging session is active.
Inferior 1 [process 31188] will be detached.
Quit anyway? (y or n) [answered Y; input not from terminal]
[Inferior 1 (process 31188) detached]
[2020/03/05 11:42:06.253900, 0] ../../source3/lib/util.c:844(smb_panic_s3)
smb_panic(): action returned status 0
[2020/03/05 11:42:06.254020, 0] ../../source3/lib/dumpcore.c:315(dump_core)
dumping core in /var/log/samba/cores/smbd
testparm:
# Global parameters
[global]
bind interfaces only = Yes
dedicated keytab file = /etc/krb5.keytab
disable netbios = Yes
domain master = No
enumports command = /usr/local/bin/show-ports.sh
interfaces = lo eth0
kerberos method = secrets and keytab
local master = No
panic action = /usr/local/bin/gdb_backtrace %d
printcap cache time = 60
printcap name = cups
realm = EDUC-FOR.LOCAL
security = ADS
server role = member server
smb ports = 445
winbind enum groups = Yes
winbind enum users = Yes
winbind refresh tickets = Yes
winbind separator = +
winbind use default domain = Yes
workgroup = EDUC-FOR
rpc_daemon:spoolssd = fork
rpc_server:spoolss = external
idmap config educ-for:range = 10000-70000
idmap config educ-for:backend = rid
idmap config *:range = 70001-80000
idmap config * : backend = tdb
csc policy = disable
map acl inherit = Yes
vfs objects = acl_xattr
[Commun]
path = /home/commun
read only = No
[users$]
path = /home/users
read only = No
[printers]
browseable = No
comment = All Printers
create mask = 0700
guest ok = Yes
path = /var/spool/samba
printable = Yes
[print$]
comment = Printer Drivers
path = /var/lib/samba/printing
read only = No
write list = root Administrateur "@Admins du domaine"
ifconfig:
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 10.13.2.1 netmask 255.255.0.0 broadcast 10.13.255.255
ether 7e:38:93:ee:44:00 txqueuelen 1000 (Ethernet)
RX packets 4747460 bytes 205825542 (196.2 MiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 128456 bytes 27047547 (25.7 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1000 (Boucle locale)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
-----Message d'origine-----
De?: Andrew Bartlett <abartlet at samba.org>
Envoy??: mercredi 4 mars 2020 23:44
??: MORILLO Jordi <j.morillo at educationetformation.fr>; samba at
lists.samba.org
Objet?: Re: [Samba] Upgrade 4.9 -> 4.11 oups
On Tue, 2020-03-03 at 17:17 +0000, MORILLO Jordi via samba
wrote:> Hello !
>
> I decided to upgrade my fileservers from stretch/samba 4.9 to
> buster/samba 4.11 I just realized that smbd is not working anymore :-/
> If someone has an idea It would be amazing... as an idiot, I upgraded
> my 20 servers.... without snapshot....
> Thank you so much
>
> Here's some logs :
>
> root at ef113:~# tail /var/log/samba/log.smbd
> #1 /usr/lib/x86_64-linux-gnu/libsmbconf.so.0(smb_panic_s3+0x18)
> [0x7fa495498a48]
> #2 /usr/lib/x86_64-linux-gnu/libsamba-util.so.0(smb_panic+0x2d)
> [0x7fa4958d3cad]
> #3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1baa9a)
> [0x7fa4956e9a9a]
> #4 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0(+0x1bae13)
> [0x7fa4956e9e13]
> #5 /usr/lib/x86_64-linux-gnu/samba/libsmbd-
> shim.so.0(exit_server+0x14) [0x7fa494cd9264]
> #6 /usr/sbin/smbd(main+0x13d2) [0x564221a6d402]
> #7 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xeb)
> [0x7fa49370209b]
> #8 /usr/sbin/smbd(_start+0x2a) [0x564221a6defa]
> [2020/03/03 18:10:46.174670, 0]
> ../../source3/lib/dumpcore.c:315(dump_core)
> dumping core in /var/log/samba/cores/smbd
There should be more information in the logs than that, can you get some more
context please? Then set 'panic action = /path/to/gdb_backtrace %d' to
point at this script:
https://git.samba.org/?p=samba.git;a=blob_plain;f=selftest/gdb_backtrace
Install the full debug packages first, so we get a good line number.
Thanks!
Andrew Bartlett
--
Andrew Bartlett
https://samba.org/~abartlet/
Authentication Developer, Samba Team https://samba.org
Samba Development and Support, Catalyst IT - Expert Open Source Solutions
https://catalyst.net.nz/services/samba