Bug 11332 - smbd when smb encrypt = mandatory
smbd when smb encrypt = mandatory
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
x64 FreeBSD
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2015-06-15 19:32 UTC by Lee
Modified: 2015-06-16 22:20 UTC (History)
0 users

See Also:

smb4.conf configuration file. (2.15 KB, text/plain)
2015-06-15 19:32 UTC, Lee
no flags Details
smbd log (326 bytes, text/plain)
2015-06-16 22:19 UTC, Lee
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lee 2015-06-15 19:32:14 UTC
Created attachment 11158 [details]
smb4.conf configuration file.

Seems to be related to oplock as the logs are spammed with

[2015/06/11 15:43:14.209400,  0] ../source3/smbd/oplock.c:338(oplock_timeout_handler)
  Oplock break failed for file filepath/filename -- replying anyway

while the the smbd seems to crash around the same time causing slow or failed transfers or reads. I don't have the exact time stamps and logs of this as I was using tail -f on the log files in questions and failed to document the exact time and error syntax.

Attached is the smb4.conf file. Clients are windows 8, 8.1, and 10 which are causing the issue. The actual OS is FreeNAS 9.3 based on FreeBSD 9.3
Comment 1 Jeremy Allison 2015-06-15 19:57:39 UTC
If smbd crashes please add :

panic action = /bin/sleep 9999999

to the [global] section of the smb.conf and then attach to the crashed process with gdb. Type "bt" to give us the backtrace.
Comment 2 Lee 2015-06-16 22:19:58 UTC
Created attachment 11165 [details]
smbd log
Comment 3 Lee 2015-06-16 22:20:58 UTC
Looks like I was misinterpreting the messages. From /var/log/samba4/log.smbd

[2015/06/16 09:55:37.235543,  1] ../source3/smbd/service.c:1130(close_cnum)
  lee-workstation (ipv4:ip_address:8702) closed connection to service PCTest
  STATUS=daemon 'smbd' finished starting up and ready to serve connectionsOplock break failed for file filepath/filename.mp4 -- replying anyway
[2015/06/16 09:56:49.714557,  1] ../source3/smbd/service.c:1130(close_cnum)
  lee-workstation (ipv4:ip_address:44801) closed connection to service PCTest

It also seems that smbd isn't crashing but exiting normally so I can't do a backtrace with gdb as the PID exits normally. 

I have included debug output of the smbd process.