[Samba] Samba 4.1.11 crashes sporadically

Leander Schäfer info at netocean.de
Thu Nov 6 07:09:50 MST 2014


... Same issue again ... and again ... This time no one was busy doing a 
transfer. There was only one client - a Mac OSx and it had two shares 
open of the server when it crashed - but no activity from the Mac side 
on the shares. Where is this coming from?



System Events
=-=-=-=-=-=-=
Nov  6 13:32:55 Storage-01 smbd[18800]:   STATUS=daemon 'smbd' finished starting up and ready to serve connections===============================================================
Nov  6 13:32:55 Storage-01 smbd[18800]: [2014/11/06 13:32:55.943801,  0] ../lib/util/fault.c:73(fault_report)
Nov  6 13:32:55 Storage-01 smbd[18800]:   INTERNAL ERROR: Signal 10 in pid 18800 (4.1.13)
Nov  6 13:32:55 Storage-01 smbd[18800]:   Please read the Trouble-Shooting section of the Samba HOWTO
Nov  6 13:32:55 Storage-01 smbd[18800]: [2014/11/06 13:32:55.943919,  0] ../lib/util/fault.c:75(fault_report)
Nov  6 13:32:55 Storage-01 smbd[18800]:   ===============================================================
Nov  6 13:32:55 Storage-01 smbd[18800]: [2014/11/06 13:32:55.943979,  0] ../source3/lib/util.c:785(smb_panic_s3)
Nov  6 13:32:55 Storage-01 smbd[18800]:   PANIC (pid 18800): internal error
Nov  6 13:32:55 Storage-01 smbd[18800]: [2014/11/06 13:32:55.994915,  0] ../source3/lib/util.c:896(log_stack_trace)
Nov  6 13:32:55 Storage-01 smbd[18800]:   BACKTRACE: 7 stack frames:
Nov  6 13:32:55 Storage-01 smbd[18800]:    #0 0x802d8dabc <log_stack_trace+0x1c> at /usr/local/lib/libsmbconf.so.0
Nov  6 13:32:55 Storage-01 smbd[18800]:    #1 0x802d8d8a8 <smb_panic_s3+0x98> at /usr/local/lib/libsmbconf.so.0
Nov  6 13:32:55 Storage-01 smbd[18800]:    #2 0x801470625 <smb_panic+0x35> at /usr/local/lib/libsamba-util.so.0
Nov  6 13:32:55 Storage-01 smbd[18800]:    #3 0x801470c0a <smb_panic+0x61a> at /usr/local/lib/libsamba-util.so.0
Nov  6 13:32:55 Storage-01 smbd[18800]:    #4 0x8014705e3 <fault_setup+0x73> at /usr/local/lib/libsamba-util.so.0
Nov  6 13:32:55 Storage-01 smbd[18800]:    #5 0x80471d40b <_swapcontext+0x15b> at /lib/libthr.so.3
Nov  6 13:32:55 Storage-01 smbd[18800]:    #6 0x80471cff3 <sigaction+0x343> at /lib/libthr.so.3
Nov  6 13:32:55 Storage-01 smbd[18800]: [2014/11/06 13:32:55.997015,  0] ../source3/lib/dumpcore.c:312(dump_core)
Nov  6 13:32:55 Storage-01 smbd[18800]:   unable to change to %N.core
Nov  6 13:32:55 Storage-01 smbd[18800]:   refusing to dump core





Am 19.09.14 11:35, schrieb Leander Schäfer:
> Hi,
>
> I thought I should share this unusual behaiviour of samba 4.1.11. All 
> of a sudden while I tried to delete a Folder via samba on a share it 
> crashed. I was using Mac OSx's V 10.9.4 internal samba client (regular 
> "CMD+K" mount via Finder).
>
>
> Server: [...] FreeBSD 10.0-RELEASE-p7 #0: Tue Jul  8 06:37:44 UTC 2014 
> root at amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
> Client: uname -a [...] Darwin Kernel Version 13.3.0 [...] 
> xnu-2422.110.17~1/RELEASE_X86_64 x86_64
>
>
> Here is the latest content of /var/log/samba4/log.smbd
>
> [2014/09/10 23:48:38.329054,  0] 
> ../lib/util/become_daemon.c:136(daemon_ready)
>   STATUS=daemon 'smbd' finished starting up and ready to serve 
> connectionsFailed to delete pidfile /var/run/samba4/smbd.pid. Error 
> was No such file or directory
> [2014/09/11 03:13:43,  0] ../source3/smbd/server.c:1209(main)
>   smbd version 4.1.11 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2013
> [2014/09/11 03:13:43.967669,  0] 
> ../lib/util/become_daemon.c:136(daemon_ready)
>   STATUS=daemon 'smbd' finished starting up and ready to serve 
> connectionsFailed to delete pidfile /var/run/samba4/smbd.pid. Error 
> was No such file or directory
> [2014/09/11 06:16:13,  0] ../source3/smbd/server.c:1209(main)
>   smbd version 4.1.11 started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2013
> [2014/09/11 06:16:13.378807,  0] 
> ../lib/util/become_daemon.c:136(daemon_ready)
>   STATUS=daemon 'smbd' finished starting up and ready to serve 
> connectionsSecurity context stack overflow!
> [2014/09/19 11:22:23.723144,  0] ../source3/lib/util.c:785(smb_panic_s3)
>   PANIC (pid 34791): Security context stack overflow!
> [2014/09/19 11:22:23.724020,  0] 
> ../source3/lib/util.c:896(log_stack_trace)
>   BACKTRACE: 43 stack frames:
>    #0 0x802d81848 <smb_panic_s3+152> at /usr/local/lib/libsmbconf.so.0
>    #1 0x801470205 <smb_panic+53> at /usr/local/lib/libsamba-util.so.0
>    #2 0x80180c442 <push_sec_ctx+162> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #3 0x8017ecde9 <smbd_become_root+9> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #4 0x8034a59ab <become_root+27> at 
> /usr/local/lib/samba/libsmbd_shim.so
>    #5 0x80324271d <pdb_get_account_policy+29> at 
> /usr/local/lib/libpdb.so.0
>    #6 0x80323316f <init_samu_from_buffer+15903> at 
> /usr/local/lib/libpdb.so.0
>    #7 0x803233893 <init_samu_from_buffer+17731> at 
> /usr/local/lib/libpdb.so.0
>    #8 0x80322f40a <init_samu_from_buffer+186> at 
> /usr/local/lib/libpdb.so.0
>    #9 0x803224105 <pdb_tdbsam_init+1637> at /usr/local/lib/libpdb.so.0
>    #10 0x803246411 <make_pdb_method+9281> at /usr/local/lib/libpdb.so.0
>    #11 0x803242880 <pdb_uid_to_sid+48> at /usr/local/lib/libpdb.so.0
>    #12 0x80323a01e <uid_to_sid+574> at /usr/local/lib/libpdb.so.0
>    #13 0x803239f24 <uid_to_sid+324> at /usr/local/lib/libpdb.so.0
>    #14 0x8150107a7 <smb_fget_nt_acl_nfs4+1479> at 
> /usr/local/lib/shared-modules/vfs/zfsacl.so
>    #15 0x815010e6a <smb_get_nt_acl_nfs4+314> at 
> /usr/local/lib/shared-modules/vfs/zfsacl.so
>    #16 0x815013e2e <samba_init_module+494> at 
> /usr/local/lib/shared-modules/vfs/zfsacl.so
>    #17 0x801814bb8 <smb_vfs_call_get_nt_acl+104> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #18 0x81541edc7 <samba_init_module+14695> at 
> /usr/local/lib/shared-modules/vfs/shadow_copy2.so
>    #19 0x801814bb8 <smb_vfs_call_get_nt_acl+104> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #20 0x8017f602d <smbd_check_access_rights+925> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #21 0x80180033c <create_file_default+29532> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #22 0x8017fd267 <create_file_default+17031> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #23 0x8017fa1ed <create_file_default+4621> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #24 0x8017f953a <create_file_default+1370> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #25 0x801973696 <vfs_default_init+5062> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #26 0x80181322b <smb_vfs_call_create_file+395> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #27 0x801865cb1 <smbd_smb2_request_process_create+10305> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #28 0x801863c3e <smbd_smb2_request_process_create+1998> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #29 0x801853fdc <smbd_smb2_request_dispatch+4588> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #30 0x801857f25 <smbd_smb2_send_oplock_break+6277> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #31 0x80185bf96 <smbd_smb2_first_negprot+16214> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #32 0x802da5446 <run_events_poll+1718> at 
> /usr/local/lib/libsmbconf.so.0
>    #33 0x802da6244 <event_add_idle+2372> at 
> /usr/local/lib/libsmbconf.so.0
>    #34 0x80492b602 <_tevent_loop_once+114> at 
> /usr/local/lib/libtevent.so.0
>    #35 0x801830726 <smbd_process+5830> at 
> /usr/local/lib/samba/libsmbd_base.so
>    #36 0x102ec4a <main+15626> at /usr/local/sbin/smbd
>    #37 0x802da5446 <run_events_poll+1718> at 
> /usr/local/lib/libsmbconf.so.0
>    #38 0x802da6244 <event_add_idle+2372> at 
> /usr/local/lib/libsmbconf.so.0
>    #39 0x80492b602 <_tevent_loop_once+114> at 
> /usr/local/lib/libtevent.so.0
>    #40 0x102db8d <main+11341> at /usr/local/sbin/smbd
>    #41 0x102ce08 <main+7880> at /usr/local/sbin/smbd
>    #42 0x1026ff3 <_start+419> at /usr/local/sbin/smbd
> [2014/09/19 11:22:23.724651,  0] ../source3/lib/dumpcore.c:312(dump_core)
>   unable to change to %N.core
>   refusing to dump core
>
>
>
>
>
> And here is my correlating smb4.conf
>
> # ============= Global ============= #
>
> [global]
>
>   # Basic server settings
>   workgroup          = MYDOMAIN
>   realm              = MYDOMAIN.LOCAL
>   netbios name       = STORAGE-03
>
>   # Password backend
>   passdb backend     = tdbsam
>
>   # Logging
>   log level    = 0
>   max log size = 0
>
>   # NTLMv2
>   ntlm auth          = No
>   lanman auth        = No
>   client ntlmv2 auth = Yes
>
>   # Printing
>   load printers = No
>   printing      = BSD
>   printcap name = /dev/null
>
>   # Disable CIFS UNIX extensions, since they confuse MS Win clients
>   unix extensions      = No
>
>   # Force file and dir modes
>   create mask          = 0770
>   force create mode    = 0770
>   directory mask       = 0770
>   force directory mode = 0770
>
>   # Required for vfs shadow_copy2
>  #follow symlinks    = Yes
>  #wide links         = Yes
>
>   # Miscellaneous
>   veto oplock files  = /*.doc/*.xls/*.ppt/*.mdb/*.docx/*.xlsx/*.ppt
>   veto files         = /Thumbs.db/.DS_Store/._.DS_Store/.TemporaryItems/
>  #delete veto files  = yes
>
>
> # ============= Shares ============= #
>
> [Media]
>   comment     = Shared Media
>   path        = /mnt/Media
>   guest ok    = No
>   read only   = No
>   valid users = @media
>   force group = media
>   wide links  = Yes
>   nt acl support  = Yes
>   inherit acls    = No
>   map acl inherit = Yes
>   vfs objects = shadow_copy2, zfsacl, streams_xattr, recycle
>   zfsacl:acesort = dontcare
>   nfs4:mode      = special
>   nfs4:acedup    = merge
>   nfs4:chown     = yes
>   shadow:format  = GMT-%Y-%m-%d_%H-%M-%S
>   shadow:sort    = desc
>   shadow:snapdir = .zfs/snapshot
>   recycle:repository     = /mnt/Media/.Trashes
>   recycle:directory_mode = 0770
>   recycle:keeptree       = Yes
>   recycle:versions       = Yes
>   recycle:touch          = Yes
>   recycle:touch_mtime    = No
>   recycle:exclude        = ?~$*,~$*,._*,.smbdelete*
>
>
>
>
>
> Best Regards
> Leander



More information about the samba mailing list