Hi,
I have successfully compiled and installed Samba 4.0.0rc2 on Debian
Squeeze as described in the Wiki. In order to support Win XP and Win 7
clients, I have created GPOs for folders redirection. The problem I am
facing is with random PANIC messages in the logs and logon/logoff/file
access process gets hung on the client.
Here are the logs:
Oct 18 13:42:32 pdc smbd[27384]: [2012/10/18 13:42:32.418846, 0]
../source3/smbd/open.c:1463(defer_open)
Oct 18 13:42:32 pdc smbd[27384]: Trying to defer an already deferred
request: mid=4, exiting
Oct 18 13:42:32 pdc smbd[27384]: [2012/10/18 13:42:32.419608, 0]
../source3/smbd/oplock.c:115(release_file_oplock)
Oct 18 13:42:32 pdc smbd[27384]: PANIC: assert failed at
../source3/smbd/oplock.c(115): sconn->oplocks.exclusive_open>=0
Oct 18 13:42:32 pdc smbd[27384]: [2012/10/18 13:42:32.419714, 0]
../source3/lib/util.c:810(smb_panic_s3)
Oct 18 13:42:32 pdc smbd[27384]: PANIC (pid 27384): assert failed:
sconn->oplocks.exclusive_open>=0
Oct 18 13:42:32 pdc smbd[27384]: [2012/10/18 13:42:32.421355, 0]
../source3/lib/util.c:921(log_stack_trace)
Oct 18 13:42:32 pdc smbd[27384]: BACKTRACE: 46 stack frames:
Oct 18 13:42:32 pdc smbd[27384]: #0
/usr/local/samba/lib/libsmbconf.so.0(log_stack_trace+0x2b)
[0xb717b708]
Oct 18 13:42:32 pdc smbd[27384]: #1
/usr/local/samba/lib/libsmbconf.so.0(smb_panic_s3+0x7f) [0xb717b566]
Oct 18 13:42:32 pdc smbd[27384]: #2
/usr/local/samba/lib/libsamba-util.so.0(smb_panic+0x2a) [0xb76ffb1c]
Oct 18 13:42:32 pdc smbd[27384]: #3
/usr/local/samba/lib/private/libsmbd_base.so(release_file_oplock+0x122)
[0xb752fb4d]
Oct 18 13:42:32 pdc smbd[27384]: #4
/usr/local/samba/lib/private/libsmbd_base.so(+0x10edd8) [0xb74cbdd8]
Oct 18 13:42:32 pdc smbd[27384]: #5
/usr/local/samba/lib/private/libsmbd_base.so(close_file+0xa6)
[0xb74cd3b3]
Oct 18 13:42:32 pdc smbd[27384]: #6
/usr/local/samba/lib/private/libsmbd_base.so(file_close_conn+0x83)
[0xb745c68a]
Oct 18 13:42:32 pdc smbd[27384]: #7
/usr/local/samba/lib/private/libsmbd_base.so(close_cnum+0x2b)
[0xb74f1249]
Oct 18 13:42:32 pdc smbd[27384]: #8
/usr/local/samba/lib/private/libsmbd_base.so(smbXsrv_tcon_disconnect+0x573)
[0xb75273e9]
Oct 18 13:42:32 pdc smbd[27384]: #9
/usr/local/samba/lib/private/libsmbd_base.so(+0x16a6c2) [0xb75276c2]
Oct 18 13:42:32 pdc smbd[27384]: #10
/usr/local/samba/lib/private/libdbwrap.so(+0x4efa) [0xb69bbefa]
Oct 18 13:42:32 pdc smbd[27384]: #11
/usr/local/samba/lib/private/libdbwrap.so(+0x4fc9) [0xb69bbfc9]
Oct 18 13:42:32 pdc smbd[27384]: #12
/usr/local/samba/lib/private/libdbwrap.so(dbwrap_traverse+0x26)
[0xb69ba060]
Oct 18 13:42:32 pdc smbd[27384]: #13
/usr/local/samba/lib/private/libsmbd_base.so(+0x16a494) [0xb7527494]
Oct 18 13:42:32 pdc smbd[27384]: #14
/usr/local/samba/lib/private/libsmbd_base.so(smb2srv_tcon_disconnect_all+0x56)
[0xb7527a18]
Oct 18 13:42:32 pdc smbd[27384]: #15
/usr/local/samba/lib/private/libsmbd_base.so(smbXsrv_session_logoff+0x4a0)
[0xb7524bba]
Oct 18 13:42:32 pdc smbd[27384]: #16
/usr/local/samba/lib/private/libsmbd_base.so(+0x167f3f) [0xb7524f3f]
Oct 18 13:42:32 pdc smbd[27384]: #17
/usr/local/samba/lib/private/libdbwrap.so(+0x4efa) [0xb69bbefa]
Oct 18 13:42:32 pdc smbd[27384]: #18
/usr/local/samba/lib/private/libdbwrap.so(+0x4fc9) [0xb69bbfc9]
Oct 18 13:42:32 pdc smbd[27384]: #19
/usr/local/samba/lib/private/libdbwrap.so(dbwrap_traverse+0x26)
[0xb69ba060]
Oct 18 13:42:32 pdc smbd[27384]: #20
/usr/local/samba/lib/private/libsmbd_base.so(smbXsrv_session_logoff_all+0xd1)
[0xb7524d5d]
Oct 18 13:42:32 pdc smbd[27384]: #21
/usr/local/samba/lib/private/libsmbd_base.so(+0x16dbe7) [0xb752abe7]
Oct 18 13:42:32 pdc smbd[27384]: #22
/usr/local/samba/lib/private/libsmbd_base.so(exit_server_cleanly+0)
[0xb752b049]
Oct 18 13:42:32 pdc smbd[27384]: #23
/usr/local/samba/lib/private/libsmbd_base.so(+0x1065e3) [0xb74c35e3]
Oct 18 13:42:32 pdc smbd[27384]: #24
/usr/local/samba/lib/private/libsmbd_base.so(+0x106d5e) [0xb74c3d5e]
Oct 18 13:42:32 pdc smbd[27384]: #25
/usr/local/samba/lib/private/libsmbd_base.so(+0x1081de) [0xb74c51de]
Oct 18 13:42:32 pdc smbd[27384]: #26
/usr/local/samba/lib/private/libsmbd_base.so(+0x10c0c0) [0xb74c90c0]
Oct 18 13:42:32 pdc smbd[27384]: #27
/usr/local/samba/lib/private/libsmbd_base.so(create_file_default+0x335)
[0xb74c9c78]
Oct 18 13:42:32 pdc smbd[27384]: #28
/usr/local/samba/lib/private/libsmbd_base.so(+0x21e659) [0xb75db659]
Oct 18 13:42:32 pdc smbd[27384]: #29
/usr/local/samba/lib/private/libsmbd_base.so(smb_vfs_call_create_file+0xbb)
[0xb74d51eb]
Oct 18 13:42:32 pdc smbd[27384]: #30
/usr/local/samba/lib/private/libsmbd_base.so(+0x154418) [0xb7511418]
Oct 18 13:42:32 pdc smbd[27384]: #31
/usr/local/samba/lib/private/libsmbd_base.so(smbd_smb2_request_process_create+0x590)
[0xb750f1ce]
Oct 18 13:42:32 pdc smbd[27384]: #32
/usr/local/samba/lib/private/libsmbd_base.so(smbd_smb2_request_dispatch+0xd12)
[0xb75081a0]
Oct 18 13:42:32 pdc smbd[27384]: #33
/usr/local/samba/lib/private/libsmbd_base.so(+0x155b2f) [0xb7512b2f]
Oct 18 13:42:32 pdc smbd[27384]: #34
/usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x21f)
[0xb71970f2]
Oct 18 13:42:32 pdc smbd[27384]: #35
/usr/local/samba/lib/libsmbconf.so.0(+0x3a792) [0xb7197792]
Oct 18 13:42:32 pdc smbd[27384]: #36
/usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xdd)
[0xb71d3414]
Oct 18 13:42:32 pdc smbd[27384]: #37
/usr/local/samba/lib/private/libsmbd_base.so(smbd_process+0x120c)
[0xb74edc8c]
Oct 18 13:42:32 pdc smbd[27384]: #38 /usr/local/samba/sbin/smbd() [0x8050a06]
Oct 18 13:42:32 pdc smbd[27384]: #39
/usr/local/samba/lib/libsmbconf.so.0(run_events_poll+0x62d)
[0xb7197500]
Oct 18 13:42:32 pdc smbd[27384]: #40
/usr/local/samba/lib/libsmbconf.so.0(+0x3a792) [0xb7197792]
Oct 18 13:42:32 pdc smbd[27384]: #41
/usr/local/samba/lib/private/libtevent.so.0(_tevent_loop_once+0xdd)
[0xb71d3414]
Oct 18 13:42:32 pdc smbd[27384]: #42 /usr/local/samba/sbin/smbd() [0x80515ff]
Oct 18 13:42:32 pdc smbd[27384]: #43
/usr/local/samba/sbin/smbd(main+0x171e) [0x8052e82]
Oct 18 13:42:32 pdc smbd[27384]: #44
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe6) [0xb6af4ca6]
Oct 18 13:42:32 pdc smbd[27384]: #45 /usr/local/samba/sbin/smbd() [0x804c2e1]
Oct 18 13:42:32 pdc smbd[27384]: [2012/10/18 13:42:32.424051, 0]
../source3/lib/util.c:822(smb_panic_s3)
Oct 18 13:42:32 pdc smbd[27384]: smb_panic(): calling panic action
[/bin/sleep 999999999]
Restarting the samba daemon solves the problem and then it happens
again randomly.
Following is my smb.conf:
[global]
workgroup = MYWG
realm = mywg.my.realm
netbios name = PDC
server role = active directory domain controller
dns forwarder = 10.0.0.1
[netlogon]
path = /usr/local/samba/var/locks/sysvol/mywg.my.realm/scripts
read only = No
[sysvol]
path = /usr/local/samba/var/locks/sysvol
read only = No
[print$]
comment = Point and Print Printer Drivers
path = /usr/local/samba/var/print
read only = No
[homes$]
comment = User Homes
path = /data/homes
read only = No
guest ok = No
browsable = No
printable = No
create mask = 0644
directory mask = 0755
profile acls = yes
[profiles$]
comment = User Profiles
path = /data/profiles
read only = No
guest ok = No
browsable = No
printable = No
create mask = 0644
directory mask = 0755
store dos attributes = Yes
profile acls = yes
[profiles.V2$]
copy = profiles$
Let me know if more information is needed w.r.t this.
Thanks in advance.
regards,
Nishant