[Bug 254995] pthread_cond_timedwait() returns EDEADLK

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 3 16:09:13 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254995

--- Comment #4 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to nkoch from comment #3)
Of course I cannot exclude memory corruption, but both condvar and mutex looks
consistent.  And mutex seems to be owned by the errored thread, so the most
likely
cause is that mutex was not unlocked properly before sleeping for condvar.

I read the code and do not see how could it happen.  The only possible case
which
might cause some disturbance there is stop.  Hm, could it be that some of your
exec's failed?  Do you ever exec from mt process, or only exec after fork?

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-threads mailing list