From nobody Mon May 22 13:47:15 2023 X-Original-To: threads@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QPzK05tjZz4BTR3 for ; Mon, 22 May 2023 13:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QPzK04w7tz4clY for ; Mon, 22 May 2023 13:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1684763236; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UndDCyov39lDTUx7nlSq25/UKd5KrKa5b2I9nK2P8rE=; b=atZxCyDK8Ixzm4q9H3dlIlsF3qRXW9ZFXdFLSW4pNe8YS5LoZxSGA4udsP9tRSNVHNfTvy OEuoaXhV3VrYP6wFLjJy0jt8zNOgAu6YQwS0Gds7xW/2LVaiI3feFyvIFcVSw1tWl3Yo1C 21guWHtRlBPbE9S37HzZosL3DxLfmPhuObPc8541q99SV87TRfPMQTK3Or6GWqN+lkhenN MDVacJ8Ts+eP+isSYx9Ok32w5rKHSx+/yneSa8PrAzkbGcpMIF1zyHjENhUvyHFAzXii2q aoMazPBHpfeHgpZYngqmQhTM2tG+eD4aEYAdM+Z0NosNCSh51M/4XhrplI4SaA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684763236; a=rsa-sha256; cv=none; b=A/0mLFIlymbg0KNPQOxSjLRTmM+W89m4bB82DRjAh9MeIGv38qAGLtftxUzH9vHCTUyNnE Zb/0Th7ow6L2iOnArZOqVtzUuz14YBkCLEvW7mvAX9TyY8fqLR9NRz4RVpNN1RisyrUNbO shd9p7mig+8cA4IWWFHhgOC7kFC5z/R8d7Ci/wxpa/bCf9UYlQeMv/4pAuUhDwlzGjM7HR KhSv9VZQe/xAr5SgpWmbwOisTgg2is1wVaOPvwXx+i27RQzik/0KUwM5UBSY660g8FY6sF pqDSJ+VOmJP1/V3vM7SYLZAkh+mqnH4az+jU11Snl0AMsIW8heDPsPPMq0kXvg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QPzK03zlGzKWY for ; Mon, 22 May 2023 13:47:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34MDlG6H097094 for ; Mon, 22 May 2023 13:47:16 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34MDlG3o097093 for threads@FreeBSD.org; Mon, 22 May 2023 13:47:16 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: threads@FreeBSD.org Subject: [Bug 271490] Deadlock between _rtld_atfork_pre and _thr_attr_init Date: Mon, 22 May 2023 13:47:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: threads X-Bugzilla-Version: 13.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: threads@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271490 --- Comment #16 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6f49eafb056cfa0703dfc97a731cabe4e= d2596b8 commit 6f49eafb056cfa0703dfc97a731cabe4ed2596b8 Author: Konstantin Belousov AuthorDate: 2023-05-20 08:11:54 +0000 Commit: Konstantin Belousov CommitDate: 2023-05-22 13:46:42 +0000 libthr rtld locks: do not leak URWLOCK_READ_WAITERS into child Since there is only the current thread in the child, no pending readers exist. Clear the bit, since it confuses future attempts to acquire write ownership of the rtld locks, due to URWLOCK_PREFER_READERS flag. To be future-proof, clear all state about pending writers and readers. PR: 271490 Reported and tested by: KJ Tsanaktsidis Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D40178 lib/libthr/thread/thr_fork.c | 4 ++++ lib/libthr/thread/thr_private.h | 2 ++ lib/libthr/thread/thr_rtld.c | 11 +++++++++++ 3 files changed, 17 insertions(+) --=20 You are receiving this mail because: You are the assignee for the bug.= From nobody Sun May 28 21:00:21 2023 X-Original-To: threads@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QTrdx6dYKz4Xt2N for ; Sun, 28 May 2023 21:00:21 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QTrdx4rvmz44r0 for ; Sun, 28 May 2023 21:00:21 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685307621; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=JrZZ1tCOQBC0F0dg1W80lNEgI8aYQNeoKtJSwBYhhjU=; b=fLmlPaFJnVjjGmD5DG5oHX0G8uBozt6YpHp7qESFwnT74yoyHMpyO2ane3DUJgxdumwgsN HKJCF0rzA9J+60g0LH0W4lJ+90NSDLrbI7tCbAVB6ZbqHowJSdy0jxYLdWoV1GjEhZbqBe /8E/gAv3+Z9sJl03b4QW0R5MxXOoiQiO9VMaz9inrmiCgY4bX8ojTRb1kxZKJYxD5pLRt7 Aabrw+RILu6DEfKUcBl28A37zZVZoZUDRbV+p9xgoldRNr8WM1HzlbiGGrK6ZBKOmBu7k2 eP9tVui+8wemOSgrdX+dHz3KpeArQfA5zIKH/+HemiYjqpGNHcwzkZpR5DVo+Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685307621; a=rsa-sha256; cv=none; b=aihH+XwWQTPQba1hIUzWRoLudPfLPSgJnG3uTl9U/a1ymMyDz2L/Pfo/XQpcItrraoL1xs 565rj95iYx901qTl5HQObTHYhCQe34DdcBm4ks7JTtQDBOXwOdmmiHLd6mz+4dthSkSlo6 oLx8a1MDwFXbeT6AhOUtxwrj7+gz85ycTnIazLLmP0UBQriZCwLGbQqDmMg1Knyfts1jap J4/bGt5G4yY8KkoRpaEftQ9TipFa4ISYFrPRg+9IcKHewFwHtjzjWHr9lPi5CFEs/PVtOU pUqI9u7AUm3Ruq9t0Ra4gTBV5SSD8cvzGjA0fJjHeX8qKEyDFz9sP7mEDbvNAw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QTrdx3xVyzlGJ for ; Sun, 28 May 2023 21:00:21 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34SL0LHg015679 for ; Sun, 28 May 2023 21:00:21 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34SL0LcJ015678 for threads@FreeBSD.org; Sun, 28 May 2023 21:00:21 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202305282100.34SL0LcJ015678@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: threads@FreeBSD.org Subject: Problem reports for threads@FreeBSD.org that need special attention Date: Sun, 28 May 2023 21:00:21 +0000 List-Id: Threading List-Archive: https://lists.freebsd.org/archives/freebsd-threads List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-threads@freebsd.org X-BeenThere: freebsd-threads@freebsd.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="16853076210.06DEE9FbB.13752" Content-Transfer-Encoding: 7bit X-ThisMailContainsUnwantedMimeParts: N --16853076210.06DEE9FbB.13752 Date: Sun, 28 May 2023 21:00:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 237195 | pthread_mutex_unlock crash as unlocked mutex dest 1 problems total for which you should take action. --16853076210.06DEE9FbB.13752 Date: Sun, 28 May 2023 21:00:21 +0000 MIME-Version: 1.0 Content-Type: text/html; charset="UTF-8"
The following is a listing of current problems submitted by FreeBSD users,
which need special attention. These represent problem reports covering
all versions including experimental development code and obsolete releases.

Status      |    Bug Id | Description
------------+-----------+---------------------------------------------------
Open        |    237195 | pthread_mutex_unlock crash as unlocked mutex dest

1 problems total for which you should take action.
--16853076210.06DEE9FbB.13752--