Public bug reported: Did a fresh installation of Ubuntu Server 21.10 then added Samba 4.13.14-Ubuntu.
Whenever a macOS client (Monterey 12.0.1) that is connected to Samba reboots, Samba panics. Here are the details that are emailed to root: The Samba 'panic action' script, /usr/share/samba/panic-action, was called for PID 24599 (/usr/sbin/smbd). This means there was a problem with the program, such as a segfault. Below is a backtrace for this process generated with gdb, which shows the state of the program at the time the error occurred. The Samba log files may contain additional information about the problem. If the problem persists, you are encouraged to first install the samba-dbgsym package, which contains the debugging symbols for the Samba binaries. Then submit the provided information as a bug report to Ubuntu by visiting this link: https://launchpad.net/ubuntu/+source/samba/+filebug [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". 0x00007fb71b7be70f in __GI___wait4 (pid=24841, stat_loc=stat_loc@entry=0x7ffd2c2 bb578, options=options@entry=0, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/l inux/wait4.c:30 #0 0x00007fb71b7be70f in __GI___wait4 (pid=24841, stat_loc=stat_loc@entry=0x7ff d2c2bb578, options=options@entry=0, usage=usage@entry=0x0) at ../sysdeps/unix/sy sv/linux/wait4.c:30 #1 0x00007fb71b7be68b in __GI___waitpid (pid=<optimized out>, stat_loc=stat_loc @entry=0x7ffd2c2bb578, options=options@entry=0) at waitpid.c:38 #2 0x00007fb71b72594b in do_system (line=<optimized out>) at ../sysdeps/posix/s ystem.c:171 #3 0x00007fb71bc4842f in smb_panic_s3 () from /lib/x86_64-linux-gnu/libsmbconf. so.0 #4 0x00007fb71bcb8fdb in smb_panic () from /lib/x86_64-linux-gnu/libsamba-util. so.0 #5 0x00007fb71bcb92b5 in ?? () from /lib/x86_64-linux-gnu/libsamba-util.so.0 #6 <signal handler called> #7 0x0000000000000000 in ?? () #8 0x00007fb71b26448f in dbwrap_record_delete () from /usr/lib/x86_64-linux-gnu /samba/libdbwrap.so.0 #9 0x00007fb71be805e5 in smbXsrv_session_logoff () from /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0 #10 0x00007fb71be62e17 in ?? () from /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0 #11 0x00007fb71b8ff8ea in tevent_common_invoke_immediate_handler () from /lib/x86_64-linux-gnu/libtevent.so.0 #12 0x00007fb71b8ff90e in tevent_common_loop_immediate () from /lib/x86_64-linux-gnu/libtevent.so.0 #13 0x00007fb71b905760 in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #14 0x00007fb71b903afb in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #15 0x00007fb71b8feb28 in _tevent_loop_once () from /lib/x86_64-linux-gnu/libtevent.so.0 #16 0x00007fb71b8fee0b in tevent_common_loop_wait () from /lib/x86_64-linux-gnu/libtevent.so.0 #17 0x00007fb71b903a8b in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #18 0x00007fb71be4cc38 in smbd_process () from /usr/lib/x86_64-linux-gnu/samba/libsmbd-base.so.0 #19 0x000055cc54ea793d in smbd_accept_connection (ev=0x55cc551e1c20, fde=<optimized out>, flags=<optimized out>, private_data=<optimized out >) at ../../source3/smbd/server.c:1014 #20 0x00007fb71b8ff4a1 in tevent_common_invoke_fd_handler () from /lib/x86_64-linux-gnu/libtevent.so.0 #21 0x00007fb71b90597f in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #22 0x00007fb71b903afb in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #23 0x00007fb71b8feb28 in _tevent_loop_once () from /lib/x86_64-linux-gnu/libtevent.so.0 #24 0x00007fb71b8fee0b in tevent_common_loop_wait () from /lib/x86_64-linux-gnu/libtevent.so.0 #25 0x00007fb71b903a8b in ?? () from /lib/x86_64-linux-gnu/libtevent.so.0 #26 0x000055cc54ea5c3b in smbd_parent_loop (parent=0x55cc551f5040, ev_ctx=0x55cc551e1c20) at ../../source3/smbd/server.c:1361 #27 main (argc=<optimized out>, argv=<optimized out>) at ../../source3/smbd/server.c:2214 A debugging session is active. Here's my /etc/samba/smb.conf [global] allow dns updates = disabled bind interfaces only = Yes client min protocol = SMB3_02 dcerpc endpoint servers = rpcecho delete veto files = Yes disable netbios = Yes disable spoolss = Yes dns forwarder = 192.168.1.1 dns proxy = No # Do not need core dumps (but Samba docs say to leave it alone) ;enable core files = No enhanced browsing = No # Next line requires catia (needed if no Windows clients?) fruit:encoding = native fruit:metadata = stream # Next line never worked ;fruit:model = Macmini7 # Do not use NFS access control entries fruit:nfs_aces = No # Enable extended attributes (requires streams_xattr) fruit:resource = xattr # Next line is already the default ;fruit:zero_file_id = Yes # Next line appears to do nothing for macOS clients ;fstype = Samba host msdfs = No inherit acls = Yes inherit permissions = Yes interfaces = lan lm announce = No load printers = No log file = /var/log/samba/log.smbd log level = 1 logging = file max log size = 10000 # Next 2 lines defer mDNS config to Avahi (better for icon and Time Machine) mdns name = mdns multicast dns register = No name resolve order = host bcast pam password change = Yes panic action = /usr/share/samba/panic-action %d passwd chat = "*New Password:*" %n\n "*Reenter New Password:*" %n\n "*Password changed.*" passwd program = /usr/bin/passwd %u printcap cache time = 0 printcap name = /dev/null printing = bsd restrict anonymous = 2 rpc_daemon:spoolssd = disabled rpc_server:epmapper = disabled rpc_server:winreg = disabled rpc_server:lsarpc = disabled rpc_server:samr = disabled rpc_server:netlogon = disabled rpc_server:netdfs = disabled rpc_server:dssetup = disabled rpc_server:wkssvc = disabled rpc_server:spoolss = disabled rpc_server:svcctl = disabled rpc_server:ntsvcs = disabled rpc_server:eventlog = disabled rpc_server:initshutdown = disabled rpc_server:mdssvc = disabled server max protocol = SMB3_11 server min protocol = SMB3_02 # Next line experimental until 4.15 - macOS clients support multi-channel SMB3 server multi channel support = Yes server role = standalone server server services = rpc, smb server string = %h server (Samba 4.13.14, Ubuntu 21.10) show add printer wizard = No smb ports = 445 unix password sync = Yes use sendfile = Yes veto files = /._*/.DS_Store/ vfs objects = catia fruit streams_xattr [homes] browseable = No comment = Home Directory fruit:time machine = No guest ok = No spotlight = No valid users = %S writable = Yes [Backup] comment = Time Machine fruit:time machine = Yes guest ok = No path = /external/%U spotlight = No valid users = %U writable = Yes On each macOS client, here's /etc/nsmb.conf: signing_required = no protocol_vers_map=6 port445=no_netbios ** Affects: samba (Ubuntu) Importance: Undecided Status: New ** Tags: samba -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1951277 Title: samba panics on client reboot To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1951277/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs