When smbd processes get stuck in system calls and clients disconnect, dead records can remain in messages.tdb. The fix is to remove the record from the parent smbd: https://lists.samba.org/archive/samba-technical/2014-April/098906.html This is a request to backport the patch to 4.0 and 4.1.
Created attachment 9827 [details] Backport to v4.0
Created attachment 9828 [details] Backport to v4.1
LGTM. Reassigning to Karolin for inclusion in 4.1.next, 4.0.next. Jeremy.
Oops. Locking bug needs sorting out first... Jeremy.
False alarm, patches are good :-). From the list: ---------------------------------------------------------------- > I tried adding a record with tdbtool insert, killing the corresponding > smbd process and watch the record disappear. So far i only get -1 from > tdb_delete. Maybe something is wrong with this test, i am still digging > through it. The patch works as expected, i just forgot to add the 0 byte terminator in the key of my fake tdb record. Sorry for the noise. ---------------------------------------------------------------- Re-re-assigning to Karolin for inclusion in 4.1.next, 4.0.next. Jeremy.
Pushed to autobuild-v4-1-test and autobuild-v4-0-test.
(In reply to comment #6) > Pushed to autobuild-v4-1-test and autobuild-v4-0-test. Pushed to v4-1-test, autobuild-v4-0-test failed, re-trying...
Pushed to v4-0-test. Closing out bug report. Thanks!