TDB lock contention during "startup" event caused winbind crash

Kenny Dinh kdinh at peaxy.net
Fri May 27 19:59:09 UTC 2016


Hello,

I ran into a situation where contention for tdb lock caused "winbind" to
crash. Below is the scenario

-- ctdb process                       smbd process           winbindd
process

-- "service start winbind"------------------------------         winbindd
 started (pid 14461)
-- "service start smb" ------ smbd started ( pid 14602)
-------------------------------------- smbd acquires lock g_lock.tdb - hung
-- invoke hung script ------  smbd child pid (14602) is still hung
-- ----------------------------------- smbd still lock g_lock.tdb
-- CTDB restart all services
-- kill existing winbindd ------------------------------------------
winbindd (pid 14461 term)
-- service start winbind ---------------------------------------- winbindd
started (pid 14733)
-- 
 -----------------------------------------------------------------------try
to lock g_lock.tdb but failed
-- 
 ------------------------------------------------------------------------
PANIC
--  kill existing smbd -------- Kill pid 14602
--  service start smb ------- smbd started

Attached are log file from ctdb, winbind, and smb, and winbind core
backtrace.

My propose patch is to make sure all winbindd, smbd, and nmbd services are
terminated at the beginning of "startup" event.

Thanks for looking,
~Kenny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.ctdbd
Type: application/octet-stream
Size: 24656 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160527/f827daa4/log-0003.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.smbd
Type: application/octet-stream
Size: 29127 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160527/f827daa4/log-0004.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log.winbindd
Type: application/octet-stream
Size: 52422 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160527/f827daa4/log-0005.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: application/octet-stream
Size: 1178 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160527/f827daa4/patch-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backtrace
Type: application/octet-stream
Size: 1367 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20160527/f827daa4/backtrace-0001.obj>


More information about the samba-technical mailing list