[Samba] Samba Panic when accessing share from OSX

Ali SIMON alouch47 at gmail.com
Fri Oct 5 15:02:37 UTC 2018


Hello,

I'm faced with an issue that I tried to solve myself for some time,
but i'm now totally clueless, hence requesting your help.

I have a Samba4 running on a CentOS 7 server.
>From Windows 10 client, it's working great (except I'm seeing some
core dumps from time to time), I can authenticate and access to the
server and browse the shared folder.

The problem appears when accessing a folder from any MacOS client, the
Samba server enters a Panic loop, and I have to kill it before the
coredumps fill my /var partition.
>From such client, I can authenticate to the server, and see the
folders inside the share, but as soon as I enter a folder, the issue
occur.

These are the system details :

# uname -r
3.10.0-862.11.6.el7.x86_64
# rpm -q samba
samba-4.7.1-9.el7_5.x86_64

# testparm -s
Load smb config files from /etc/samba/smb.conf
rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
Processing section "[media]"
Loaded services file OK.
Server role: ROLE_STANDALONE

# Global parameters
[global]
bind interfaces only = Yes
client max protocol = SMB3
disable spoolss = Yes
dos charset = CP1252
interfaces = 192.168.1.250
load printers = No
local master = No
map to guest = Bad User
max log size = 512
name resolve order = wins lmhosts host bcast
obey pam restrictions = Yes
passdb backend = smbpasswd
passwd program = "/usr/bin/passwd %u"
printcap name = /dev/null
realm = *
security = USER
server string = "Samba on %h"
template homedir = /home/%U
unix extensions = No
unix password sync = Yes
username map = /etc/samba/conf.d/usermap.conf
winbind expand groups = 1
winbind max clients = 6000
winbind use default domain = Yes
wins support = Yes
workgroup = HOME
dbwrap_tdb_mutexes:* = yes
idmap config * : backend = tdb
aio read size = 4096
aio write size = 4096
delete readonly = Yes
delete veto files = Yes
dfree cache time = 15
dos filemode = Yes
ea support = Yes
force unknown acl user = Yes
include = /etc/samba/conf.d/shares.conf
inherit acls = Yes
invalid users = root
map archive = No
map readonly = no
store dos attributes = Yes
use sendfile = Yes
veto files = /Network Trash Folder/Temporary Items/
vfs objects = aio_linux acl_xattr snapper btrfs


[media]
admin users = alouch
comment = "Media Share"
guest ok = Yes
path = "/data/media/"
write list = alouch cigale


Logs at the time of the crash :
[2018/10/05 16:29:07.405015,  2]
../source3/auth/auth.c:314(auth_check_ntlm_password)
  check_ntlm_password:  authentication for user [alouch] -> [alouch]
-> [alouch] succeeded
[2018/10/05 16:30:43.103737,  0] ../lib/util/fault.c:78(fault_report)
  ===============================================================
[2018/10/05 16:30:43.103952,  0] ../lib/util/fault.c:79(fault_report)
  INTERNAL ERROR: Signal 6 in pid 6464 (4.7.1)
  Please read the Trouble-Shooting section of the Samba HOWTO
[2018/10/05 16:30:43.104057,  0] ../lib/util/fault.c:81(fault_report)
  ===============================================================
[2018/10/05 16:30:43.104156,  0] ../source3/lib/util.c:804(smb_panic_s3)
  PANIC (pid 6464): internal error
[2018/10/05 16:30:43.104983,  0] ../source3/lib/util.c:915(log_stack_trace)
  BACKTRACE: 28 stack frames:
   #0 /lib64/libsmbconf.so.0(log_stack_trace+0x1a) [0x7f5af77e3a3a]
   #1 /lib64/libsmbconf.so.0(smb_panic_s3+0x20) [0x7f5af77e3b10]
   #2 /lib64/libsamba-util.so.0(smb_panic+0x2f) [0x7f5af98e0eaf]
   #3 /lib64/libsamba-util.so.0(+0x250c6) [0x7f5af98e10c6]
   #4 /lib64/libpthread.so.0(+0xf6d0) [0x7f5af9d486d0]
   #5 /lib64/libc.so.6(gsignal+0x37) [0x7f5af5e4d277]
   #6 /lib64/libc.so.6(abort+0x148) [0x7f5af5e4e968]
   #7 /lib64/libtevent-util.so.0(+0x10b1) [0x7f5af8b380b1]
   #8 /usr/lib64/samba/libsmbd-base-samba4.so(+0x1bfd84) [0x7f5af9503d84]
   #9 /lib64/libtevent.so.0(_tevent_req_error+0x22) [0x7f5af61ea2f2]
   #10 /usr/lib64/samba/libsmbd-base-samba4.so(+0x1bff23) [0x7f5af9503f23]
   #11 /lib64/libtevent.so.0(_tevent_req_error+0x22) [0x7f5af61ea2f2]
   #12 /lib64/libtevent.so.0(tevent_common_loop_immediate+0xda) [0x7f5af61e9afa]
   #13 /lib64/libtevent.so.0(+0xad2d) [0x7f5af61eed2d]
   #14 /lib64/libtevent.so.0(+0x9337) [0x7f5af61ed337]
   #15 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f5af61e910d]
   #16 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f5af61e933b]
   #17 /lib64/libtevent.so.0(+0x92d7) [0x7f5af61ed2d7]
   #18 /usr/lib64/samba/libsmbd-base-samba4.so(smbd_process+0x6e4)
[0x7f5af94e7584]
   #19 /usr/sbin/smbd(+0xd1d4) [0x55f77e69f1d4]
   #20 /lib64/libtevent.so.0(+0xaf6b) [0x7f5af61eef6b]
   #21 /lib64/libtevent.so.0(+0x9337) [0x7f5af61ed337]
   #22 /lib64/libtevent.so.0(_tevent_loop_once+0x9d) [0x7f5af61e910d]
   #23 /lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x7f5af61e933b]
   #24 /lib64/libtevent.so.0(+0x92d7) [0x7f5af61ed2d7]
   #25 /usr/sbin/smbd(main+0x1afe) [0x55f77e69a25e]
   #26 /lib64/libc.so.6(__libc_start_main+0xf5) [0x7f5af5e39445]
   #27 /usr/sbin/smbd(+0x8571) [0x55f77e69a571]
[2018/10/05 16:30:43.105717,  0] ../source3/lib/dumpcore.c:315(dump_core)
  dumping core in /var/log/samba/cores/smbd


GDB :
[New LWP 6464]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
Core was generated by `/usr/sbin/smbd --foreground --no-process-group'.
Program terminated with signal 6, Aborted.
#0  0x00007f5af5e4d277 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
56    return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
(gdb) bt
#0  0x00007f5af5e4d277 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007f5af5e4e968 in __GI_abort () at abort.c:90
#2  0x00007f5af77f314e in dump_core () at ../source3/lib/dumpcore.c:338
#3  0x00007f5af77e3b77 in smb_panic_s3 (why=<optimized out>) at
../source3/lib/util.c:827
#4  0x00007f5af98e0eaf in smb_panic (why=why at entry=0x7f5af99291aa
"internal error") at ../lib/util/fault.c:166
#5  0x00007f5af98e10c6 in fault_report (sig=<optimized out>) at
../lib/util/fault.c:83
#6  sig_fault (sig=<optimized out>) at ../lib/util/fault.c:94
#7  <signal handler called>
#8  0x00007f5af5e4d277 in __GI_raise (sig=sig at entry=6) at
../nptl/sysdeps/unix/sysv/linux/raise.c:56
#9  0x00007f5af5e4e968 in __GI_abort () at abort.c:90
#10 0x00007f5af8b380b1 in tevent_req_is_nterror
(req=req at entry=0x55f77ed68ce0, status=status at entry=0x7fff8b143510) at
../lib/util/tevent_ntstatus.c:66
#11 0x00007f5af9503d84 in smbd_smb2_flush_recv (req=0x55f77ed68ce0) at
../source3/smbd/smb2_flush.c:211
#12 smbd_smb2_request_flush_done (subreq=0x55f77ed68ce0) at
../source3/smbd/smb2_flush.c:75
#13 0x00007f5af61ea2f2 in _tevent_req_error
(req=req at entry=0x55f77ed68ce0, error=<optimized out>,
location=location at entry=0x7f5af961ce58
"../source3/smbd/smb2_flush.c:201") at ../tevent_req.c:180
#14 0x00007f5af9503f23 in smbd_smb2_flush_done (subreq=0x55f77ed81690)
at ../source3/smbd/smb2_flush.c:201
#15 0x00007f5af61ea2f2 in _tevent_req_error (req=<optimized out>,
error=<optimized out>, location=<optimized out>) at
../tevent_req.c:180
#16 0x00007f5af61e9afa in tevent_common_loop_immediate
(ev=ev at entry=0x55f77ed45710) at ../tevent_immediate.c:135
#17 0x00007f5af61eed2d in epoll_event_loop_once (ev=0x55f77ed45710,
location=<optimized out>) at ../tevent_epoll.c:911
#18 0x00007f5af61ed337 in std_event_loop_once (ev=0x55f77ed45710,
location=0x7f5af96108f8 "../source3/smbd/process.c:4127") at
../tevent_standard.c:114
#19 0x00007f5af61e910d in _tevent_loop_once
(ev=ev at entry=0x55f77ed45710, location=location at entry=0x7f5af96108f8
"../source3/smbd/process.c:4127") at ../tevent.c:726
#20 0x00007f5af61e933b in tevent_common_loop_wait (ev=0x55f77ed45710,
location=0x7f5af96108f8 "../source3/smbd/process.c:4127") at
../tevent.c:849
#21 0x00007f5af61ed2d7 in std_event_loop_wait (ev=0x55f77ed45710,
location=0x7f5af96108f8 "../source3/smbd/process.c:4127") at
../tevent_standard.c:145
#22 0x00007f5af94e7584 in smbd_process
(ev_ctx=ev_ctx at entry=0x55f77ed45710,
msg_ctx=msg_ctx at entry=0x55f77ed46580, sock_fd=sock_fd at entry=34,
interactive=interactive at entry=false) at ../source3/smbd/process.c:4127
#23 0x000055f77e69f1d4 in smbd_accept_connection (ev=0x55f77ed45710,
fde=<optimized out>, flags=<optimized out>, private_data=<optimized
out>) at ../source3/smbd/server.c:1030
#24 0x00007f5af61eef6b in epoll_event_loop (tvalp=0x7fff8b143870,
epoll_ev=0x55f77ed463d0) at ../tevent_epoll.c:728
#25 epoll_event_loop_once (ev=<optimized out>, location=<optimized
out>) at ../tevent_epoll.c:930
#26 0x00007f5af61ed337 in std_event_loop_once (ev=0x55f77ed45710,
location=0x55f77e6a3083 "../source3/smbd/server.c:1397") at
../tevent_standard.c:114
#27 0x00007f5af61e910d in _tevent_loop_once
(ev=ev at entry=0x55f77ed45710, location=location at entry=0x55f77e6a3083
"../source3/smbd/server.c:1397") at ../tevent.c:726
#28 0x00007f5af61e933b in tevent_common_loop_wait (ev=0x55f77ed45710,
location=0x55f77e6a3083 "../source3/smbd/server.c:1397") at
../tevent.c:849
#29 0x00007f5af61ed2d7 in std_event_loop_wait (ev=0x55f77ed45710,
location=0x55f77e6a3083 "../source3/smbd/server.c:1397") at
../tevent_standard.c:145
#30 0x000055f77e69a25e in smbd_parent_loop (parent=<optimized out>,
ev_ctx=0x55f77ed45710) at ../source3/smbd/server.c:1397
#31 main (argc=<optimized out>, argv=<optimized out>) at
../source3/smbd/server.c:2164


Any help would be greatly appreciated.
Thanks



More information about the samba mailing list