Bug 11761 - Lock order violation, smbd dumps core
Lock order violation, smbd dumps core
Status: NEW
Product: Samba 4.1 and newer
Classification: Unclassified
Component: File services
4.1.20
All FreeBSD
: P5 normal
: ---
Assigned To: Samba QA Contact
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-02-29 16:22 UTC by Jakub Klama
Modified: 2016-06-19 22:26 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jakub Klama 2016-02-29 16:22:28 UTC
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.001781,  0] ../lib/dbwrap/dbwrap.c:193(dbwrap_check_lock_order)
Feb 28 22:22:02 freenas smbd[92728]:   Lock order violation: Trying /var/db/samba4/file_ntacls.tdb at 1 while /var/db/samba4/locking.tdb at 1 is locked
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.001927,  0] ../lib/dbwrap/dbwrap.c:133(debug_lock_order)
Feb 28 22:22:02 freenas smbd[92728]:   lock order:  1:/var/db/samba4/locking.tdb 2:<none> 3:<none>
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.001982,  0] ../source3/lib/util.c:785(smb_panic_s3)
Feb 28 22:22:02 freenas smbd[92728]:   PANIC (pid 92728): invalid lock_order
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002163,  0] ../lib/util/fault.c:72(fault_report)
Feb 28 22:22:02 freenas smbd[92728]:   ===============================================================
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002228,  0] ../lib/util/fault.c:73(fault_report)
Feb 28 22:22:02 freenas smbd[92728]:   INTERNAL ERROR: Signal 10 in pid 92728 (4.1.21)
Feb 28 22:22:02 freenas smbd[92728]:   Please read the Trouble-Shooting section of the Samba HOWTO
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002299,  0] ../lib/util/fault.c:75(fault_report)
Feb 28 22:22:02 freenas smbd[92728]:   ===============================================================
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002356,  0] ../source3/lib/util.c:785(smb_panic_s3)
Feb 28 22:22:02 freenas smbd[92728]:   PANIC (pid 92728): internal error
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002616,  0] ../source3/lib/util.c:896(log_stack_trace)
Feb 28 22:22:02 freenas smbd[92728]:   BACKTRACE: 5 stack frames:
Feb 28 22:22:02 freenas smbd[92728]:    #0 0x80207920c <smb_panic_s3+111> at /usr/local/lib/libsmbconf.so.0
Feb 28 22:22:02 freenas smbd[92728]:    #1 0x80084716f <smb_panic+40> at /usr/local/lib/libsamba-util.so.0
Feb 28 22:22:02 freenas smbd[92728]:    #2 0x800846e7c <fault_setup_disable+410> at /usr/local/lib/libsamba-util.so.0
Feb 28 22:22:02 freenas smbd[92728]:    #3 0x800846e91 <fault_setup_disable+431> at /usr/local/lib/libsamba-util.so.0
Feb 28 22:22:02 freenas smbd[92728]:    #4 0x803884236 <pthread_sigmask+918> at /lib/libthr.so.3
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.002789,  0] ../source3/lib/util.c:797(smb_panic_s3)
Feb 28 22:22:02 freenas smbd[92728]:   smb_panic(): calling panic action [/usr/local/libexec/samba/samba-backtrace]
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.062068,  0] ../source3/lib/util.c:805(smb_panic_s3)
Feb 28 22:22:02 freenas smbd[92728]:   smb_panic(): action returned status 2
Feb 28 22:22:02 freenas smbd[92728]: [2016/02/28 22:22:02.062623,  0] ../source3/lib/dumpcore.c:317(dump_core)
Feb 28 22:22:02 freenas smbd[92728]:   dumping core in /var/db/system/cores
Feb 28 22:22:02 freenas smbd[92728]: 
Feb 28 22:22:02 freenas kernel: pid 92728 (smbd), uid 0: exited on signal 6 (core dumped)
Comment 1 Volker Lendecke 2016-02-29 20:19:47 UTC
Can you try setting DBWRAP_LOCK_ORDER_1 to DBWRAP_LOCK_ORDER_2 in source3/modules/vfs_acl_tdb.c line 63?
Comment 2 Volker Lendecke 2016-02-29 20:20:23 UTC
BTW, you have ZFS with NFSv4 ACLs, why do you use this module?
Comment 3 Jakub Klama 2016-04-02 13:56:10 UTC
Which module?
Comment 4 Volker Lendecke 2016-04-04 08:47:13 UTC
(In reply to Jakub Klama from comment #3)
> Which module?

acl_xattr
Comment 5 Michael Adam 2016-06-19 22:26:21 UTC
(In reply to Volker Lendecke from comment #4)
> (In reply to Jakub Klama from comment #3)
> > Which module?
> 
> acl_xattr

rather acl_tdb ?

It would be good to see the full smb.conf...