Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 2021 19:27:28 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        Konstantin Belousov <kostikbel@gmail.com>
Cc:        src-committers@freebsd.org, dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject:   Re: git: d36d68161517 - main - rtld dl_iterate_phdr(): dlpi_tls_data is wrong
Message-ID:  <4f125d25-e7ef-f5ee-5c9c-5c4d386a4095@FreeBSD.org>
In-Reply-To: <YGzSaTULw00GTtR3@kib.kiev.ua>
References:  <202104060037.1360bKwT029051@gitrepo.freebsd.org> <a8d3236a-99cf-df0a-1c33-aa62709bf630@FreeBSD.org> <YGysnYc0qhYojZ4j@kib.kiev.ua> <YGzSaTULw00GTtR3@kib.kiev.ua>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <jkim@FreeBSD.org>
To: Konstantin Belousov <kostikbel@gmail.com>
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>
 <a8d3236a-99cf-df0a-1c33-aa62709bf630@FreeBSD.org>
 <YGysnYc0qhYojZ4j@kib.kiev.ua> <YGzSaTULw00GTtR3@kib.kiev.ua>
In-Reply-To: <YGzSaTULw00GTtR3@kib.kiev.ua>

--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 <kib@FreeBSD.org>
>>>> AuthorDate: 2021-04-05 03:05:44 +0000
>>>> Commit:     Konstantin Belousov <kib@FreeBSD.org>
>>>> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4f125d25-e7ef-f5ee-5c9c-5c4d386a4095>