[Bug 224362] 'mutex is on list' assertion failed on pthread_mutex_lock/pthread_mutex_unlock
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Dec 15 22:12:31 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224362
Konstantin Belousov <kib at FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kib at FreeBSD.org
--- Comment #1 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Andrey Sploshnov from comment #0)
Do you really complain about 9.2 release, as indicated in the bug's metadata ?
Reproduce the problem on HEAD or 11.1.
The mutex queue is maintained per thread, in other words it is thread-local,
and since only locked mutex is put or removed from the queue, your naive
spinlock does not add any protection.
The state of the mutex you printed is indeed strange, it has the lock owner but
it is not on the queue, as the assertion claims.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-threads
mailing list