[Bug 224362] 'mutex is on list' assertion failed on pthread_mutex_lock/pthread_mutex_unlock

[email protected]
Newsgroups gmane.os.freebsd.devel.threading
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=224362

Konstantin Belousov <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Konstantin Belousov <[email protected]> ---
(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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-threads
To unsubscribe, send any mail to "[email protected]"
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.