Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 May 2023 08:11:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        threads@FreeBSD.org
Subject:   [Bug 271490] Deadlock between _rtld_atfork_pre and _thr_attr_init
Message-ID:  <bug-271490-13406-VWL3A07vkL@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-271490-13406@https.bugs.freebsd.org/bugzilla/>
References:  <bug-271490-13406@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271490

--- 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 |=3D (1 << locki);

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-271490-13406-VWL3A07vkL>