From owner-dev-commits-src-all@freebsd.org Tue Apr 6 23:27:34 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id C65475C1F80; Tue, 6 Apr 2021 23:27:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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 "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FFNwk4r0fz57TK; Tue, 6 Apr 2021 23:27:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from freefall.freebsd.org (pool-100-8-53-238.nwrknj.fios.verizon.net [100.8.53.238]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: jkim/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 8562E21988; Tue, 6 Apr 2021 23:27:34 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Subject: Re: git: d36d68161517 - main - rtld dl_iterate_phdr(): dlpi_tls_data is wrong To: Konstantin Belousov Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org References: <202104060037.1360bKwT029051@gitrepo.freebsd.org> From: Jung-uk Kim Organization: FreeBSD.org Message-ID: <4f125d25-e7ef-f5ee-5c9c-5c4d386a4095@FreeBSD.org> Date: Tue, 6 Apr 2021 19:27:28 -0400 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="BZS0nEdqvUIoGYpPfb6a8KMTGtJ5n1IWu" X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2021 23:27:34 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --BZS0nEdqvUIoGYpPfb6a8KMTGtJ5n1IWu Content-Type: multipart/mixed; boundary="njADhHwbuhVJJBZCsEh9k7vWzhtf1NUoI"; protected-headers="v1" From: Jung-uk Kim To: Konstantin Belousov Cc: src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org Message-ID: <4f125d25-e7ef-f5ee-5c9c-5c4d386a4095@FreeBSD.org> Subject: Re: git: d36d68161517 - main - rtld dl_iterate_phdr(): dlpi_tls_data is wrong References: <202104060037.1360bKwT029051@gitrepo.freebsd.org> In-Reply-To: --njADhHwbuhVJJBZCsEh9k7vWzhtf1NUoI Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 21. 4. 6., Konstantin Belousov wrote: > On Tue, Apr 06, 2021 at 09:46:59PM +0300, Konstantin Belousov wrote: >> On Tue, Apr 06, 2021 at 02:35:59PM -0400, Jung-uk Kim wrote: >>> On 21. 4. 5., Konstantin Belousov wrote: >>>> The branch main has been updated by kib: >>>> >>>> URL: https://cgit.FreeBSD.org/src/commit/?id=3Dd36d68161517059073938= 89d661cbfd25c630ca8 >>>> >>>> commit d36d6816151705907393889d661cbfd25c630ca8 >>>> Author: Konstantin Belousov >>>> AuthorDate: 2021-04-05 03:05:44 +0000 >>>> Commit: Konstantin Belousov >>>> CommitDate: 2021-04-06 00:23:08 +0000 >>>> >>>> rtld dl_iterate_phdr(): dlpi_tls_data is wrong >>>> =20 >>>> dl_iterate_phdr() dlpi_tls_data should provide the TLS module se= gment >>>> address, and not the TLS init segment address as it does now. >>>> =20 >>>> Reported by: emacsray@gmail.com >>>> PR: 254774 >>>> Sponsored by: The FreeBSD Foundation >>>> MFC after: 1 week >>> >>> I started having strange hangs in various applications from yesterday= , >>> e.g., Xorg, Thunderbird, etc. Today, I updated ports tree from Git f= or >>> the first time and started updating packages. Then, I experienced >>> similar problems, e.g., building editors/kate, multimedia/vlc, etc., >>> were hanging. I noticed some tools were stuck in urwlck state and I >>> found reverting this commit fixed the problem for me. >>> >>> Please take a look. >> >> Can you get backtrace for all threads in hanging process? >> I do not need debugging symbols for the apps, libc/libthr/rtld with de= bug >> info, installed by default from the base, should be enough. >=20 > Also you might try this. It should help if my guess is right. > Only x86 handled ATM. It seems the patch fixed the problem for me. I'll try it on other boxes, too. Jung-uk Kim --njADhHwbuhVJJBZCsEh9k7vWzhtf1NUoI-- --BZS0nEdqvUIoGYpPfb6a8KMTGtJ5n1IWu Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEl1bqgKaRyqfWXu/CfJ+WJvzb8UYFAmBs7mAFAwAAAAAACgkQfJ+WJvzb8UYG JQf/XUwFAg/Ta+FLtSJ+/QQCER8UkJSK7pp8I0fBeJmCcXYp4biJDFIAabEf+6nEzyTLkO1QnLad xfLdKI741KxoIOnthJ7HmnWSXeQvCvtglI7H8058ZeaK5kJSAYW0ooBbTnrcYXBJV2wYd/HeZfBG mYZGcrWAoeJUsPBDSrRHtgek6/PzpfZQ5Xguv+HnlS5dtEEMhmgv/1JRKhTylJg4eMdmEDScATHl fu5OB5pDbiVdUngpusxMNJICLcuNCQWL3ouT2hm7bzYzlEhV9JelgoarD2X4IjjHbPZxHLis+yuF 5EuMvhrVb4ZufQu6K3ma8r5JywQMydfO2DNVzY1dWw== =ttPj -----END PGP SIGNATURE----- --BZS0nEdqvUIoGYpPfb6a8KMTGtJ5n1IWu--