[Bug 271490] Deadlock between _rtld_atfork_pre and _thr_attr_init

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 20 May 2023 08:11:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271490

--- Comment #10 from Konstantin Belousov <kib@FreeBSD.org> ---
Please try the following.  Does the patch help in your settings?
I am esp. interested in the ruby test.

diff --git a/lib/libthr/thread/thr_rtld.c b/lib/libthr/thread/thr_rtld.c
index a9d1924967a7..c9c4871bab54 100644
--- a/lib/libthr/thread/thr_rtld.c
+++ b/lib/libthr/thread/thr_rtld.c
@@ -80,7 +80,7 @@ _thr_rtld_lock_create(void)
        busy_places |= (1 << locki);

        l = &lock_place[locki];
-       l->lock.rw_flags = URWLOCK_PREFER_READER;
+//     l->lock.rw_flags = URWLOCK_PREFER_READER;
        return (l);
 }

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