[Samba] frequent core dumps (invalid lock_order?)

Sergei Gerasenko gerases at gmail.com
Sat Jan 7 04:28:11 UTC 2017


Hi,

I'm hoping somebody can point me in the right direction. My samba version
is samba-4.2.10-6.2.el7_2.x86_64. I have lots of daily core dumps (~20 on
each machine daily) and I have no clear idea why. I'm including the stack
trace below. It looks like the problem is related to "invalid lock_order".
Any ideas?

Thanks,
  Sergei

#0  0x00007fc5a34945f7 in raise () from /lib64/libc.so.6
#1  0x00007fc5a3495ce8 in abort () from /lib64/libc.so.6
#2  0x00007fc5a4e009db in dump_core () at ../source3/lib/dumpcore.c:337
#3  0x00007fc5a4df31f7 in smb_panic_s3 (why=<optimized out>) at
../source3/lib/util.c:811
#4  0x00007fc5a6c7791f in smb_panic (why=why at entry=0x7fc5a1920401 "*invalid
lock_order*") at ../lib/util/fault.c:166
#5  0x00007fc5a191b81d in dbwrap_check_lock_order (mem_ctx=0x7fc5a893aaa0,
db=0x7fc5a894eb20)
    at ../lib/dbwrap/dbwrap.c:186
#6  dbwrap_fetch_locked_internal (db=db at entry=0x7fc5a894eb20,
mem_ctx=mem_ctx at entry=0x7fc5a893aaa0, key=...,
    db_fn=<optimized out>) at ../lib/dbwrap/dbwrap.c:216
#7  0x00007fc5a191ba48 in dbwrap_fetch_locked (db=db at entry=0x7fc5a894eb20,
mem_ctx=mem_ctx at entry=0x7fc5a893aaa0,
    key=...) at ../lib/dbwrap/dbwrap.c:235
#8  0x00007fc58d962855 in acl_tdb_lock (id=0x7ffd4d922300,
db=0x7fc5a894eb20, mem_ctx=0x7fc5a893aaa0)
    at ../source3/modules/vfs_acl_tdb.c:106
#9  acl_tdb_delete (db=db at entry=0x7fc5a894eb20,
psbuf=psbuf at entry=0x7fc5a895df68,
handle=0x7fc5a8945100)
    at ../source3/modules/vfs_acl_tdb.c:122
#10 0x00007fc58d962fe3 in unlink_acl_tdb (handle=0x7fc5a8945100,
smb_fname=<optimized out>)
    at ../source3/modules/vfs_acl_tdb.c:269
#11 0x00007fc58d759802 in smb_full_audit_unlink (handle=0x7fc5a895c2c0,
smb_fname=0x7fc5a896ed90)
    at ../source3/modules/vfs_full_audit.c:1333
#12 0x00007fc5a683540c in close_remove_share_mode (close_type=NORMAL_CLOSE,
fsp=0x7fc5a896e3c0)
    at ../source3/smbd/close.c:440
#13 close_normal_file (close_type=NORMAL_CLOSE, fsp=0x7fc5a896e3c0,
req=0x7fc5a893e330)
    at ../source3/smbd/close.c:747
#14 close_file (req=req at entry=0x7fc5a893e330, fsp=fsp at entry=0x7fc5a896e3c0,
    close_type=close_type at entry=NORMAL_CLOSE) at
../source3/smbd/close.c:1220
#15 0x00007fc5a6869f75 in smbd_smb2_close (req=req at entry=0x7fc5a893dc50,
fsp=fsp at entry=0x7fc5a896e3c0
...


More information about the samba mailing list