[PATCH] tdb: runtime check for robust mutexes may hang

Andrew Bartlett abartlet at samba.org
Sun Mar 12 17:49:00 UTC 2017


On Sun, 2017-03-12 at 14:14 +0100, Ralph Böhme via samba-technical
wrote:
> 
> As there's no POSIX function to change the signal mask of all threads
> in a
> process, this problem can't be solved by a change to
> tdb_runtime_check_for_robust_mutexes().
> 
> Attached patch *moves* the runtime check to a library initializer
> which
> guarantees that only one thread exists in the process when the
> function is run.

Why can we assert this is true?

Surely if tdb is loaded into a program by being linked to a plugin, eg
dlopen(), the library initializer will run then, with threads already
running?

Andrew Bartlett

-- 
Andrew Bartlett                       http://samba.org/~abartlet/
Authentication Developer, Samba Team  http://samba.org
Samba Developer, Catalyst IT          http://catalyst.net.nz/services/samba




More information about the samba-technical mailing list