https://bugs.openldap.org/show_bug.cgi?id=9278
Xin Li delphij@freebsd.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #736 is|0 |1 obsolete| |
--- Comment #3 from Xin Li delphij@freebsd.org --- Created attachment 738 --> https://bugs.openldap.org/attachment.cgi?id=738&action=edit Proposed patch
Oops, yes you are right and I clearly have some misunderstanding of the code here, sorry for the noise.
Here is a different proposal, basically, it would destroy the robust mutex if we are the only remaining user. My understanding of https://pubs.opengroup.org/onlinepubs/9699919799/functions/V2_chap02.html#ta... was that the effect after unmapping of the mutex object is undefined, on FreeBSD, it seems to confuse the threading library because after the last mmap is gone, the kernel GC's the object, while it's still on userland threading library's bookkeeping ( https://svnweb.freebsd.org/base/head/lib/libthr/thread/thr_pshared.c?annotat... ) if they are not destroyed.