From nobody Thu May 18 17:44:25 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 4QMcmV4ps1z4Bpt9 for ; Thu, 18 May 2023 17:44:26 +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 4QMcmV3jYvz4c9C for ; Thu, 18 May 2023 17:44:26 +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=1684431866; 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=6Lkwqad4SU7xx/PyuBaaeLQTfcJN1hPUi/dpv9kq8rc=; b=inLSgswdYls0/QGk6p/cP8r1JVHK60b3/VtG72DHUoNHT4mwEh7aEzALwZ/nk0b0kFSLdz L83hwKksqg4fXooJmJ/rwPpsLxbHFEH/m4s/djLTBSZAFUn/qTiGjnDqcWef4ZpMlvu55c p6qjAZkTbUlqN3xmUy4g5tLyErF45BoVh3Bd2vEPDN0xA7I2zgj2eMRdPjLfC6nu3Sld6a 2NxXGaFSQ7NmCL+JKhDm3T6gt30NUF5IqlclE7wSzZEnMUllheR8U2AbPFagTLetdHDctb gn0JYkzHNsdGDv3NyaNp3atdn6rkVf4ORXkYi8/oMynOtXZWyJhOdyx+ZsTyIg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1684431866; a=rsa-sha256; cv=none; b=Fp6jfgXcgfTRR5whKN5VY68eZk/cMY6e5+xD5Q8xj57d6eMkmRLb4HiUNTWpFshHnLQOGd CMwOFrjJqwD19CD8Z8Tchn0jfmnZJ+nABmb2/JwOTKH9+XsiFPkwaQnicgUOUywLyd5aDA IfaEs1OePoDf344P69o6NcHxuleE65G+vdMrM1ra2KFSZsnKmC2vDDCjBRzG5EkBygMEyM 343tmmcCNhK5/ZOlxZYx/2pUVXrGY7wNnbSg3+BS1xqipoezADxv3usxhAUOgFzktYh7TM SIvd5iMmzTooB5KEkCCsSDg1zEdDD6IJ7EOxU+Ywpd3d5WBwNCCTWItPsh87zg== 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 4QMcmV2gXxzvqj for ; Thu, 18 May 2023 17:44:26 +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 34IHiQcW095408 for ; Thu, 18 May 2023 17:44:26 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34IHiQlZ095407 for threads@FreeBSD.org; Thu, 18 May 2023 17:44:26 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www 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: Thu, 18 May 2023 17:44:25 +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: kib@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: cc 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 Konstantin Belousov changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kib@FreeBSD.org --- Comment #1 from Konstantin Belousov --- Yes, this is indeed a bug in jemalloc. It seems that the problem is that malloc_mutex_prefork() from jemalloc/src/mutex.c does not lock _all_ jemall= oc mutexes, in particular, the extent mtx. OTOH, note that after fork(), in multi-threaded process child, only async-signal safe functions are guaranteed to work. --=20 You are receiving this mail because: You are the assignee for the bug.=