Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Jun 2023 12:25:43 +0200
From:      Willem Jan Withagen <wjw@digiware.nl>
To:        Dimitry Andric <dim@FreeBSD.org>, "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
Cc:        current@freebsd.org
Subject:   Re: __cxa_thread_call_dtors: dtr 0x........ from unloaded dso, skipping
Message-ID:  <08035b3a-7356-efc8-616b-cbf46c1904e7@digiware.nl>
In-Reply-To: <0A55614E-3577-4933-9CCD-4D723DFA86E8@FreeBSD.org>
References:  <46pq4r4n-p46r-47nn-r1ss-7r2984891pn7@yvfgf.mnoonqbm.arg> <16A8852E-DEA9-408E-80BC-94322FB2415E@FreeBSD.org> <p2p1n65r-511q-9oos-6369-0qnq2q7os4q7@yvfgf.mnoonqbm.arg> <0A55614E-3577-4933-9CCD-4D723DFA86E8@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 26-6-2023 17:38, Dimitry Andric wrote:
> On 26 Jun 2023, at 17:29, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
>> On Mon, 26 Jun 2023, Dimitry Andric wrote:
>>
>>> On 26 Jun 2023, at 17:00, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
>>>> while building world and current I see a lot of:
>>>>
>>>> __cxa_thread_call_dtors: dtr 0x...... from unloaded dso, skipping
>>>>
>>>> Can anyone shed light on that?
>>> You need (thanks to Kostik):
>>> https://cgit.freebsd.org/src/commit/?id=42ceab3ea1a997db93b65404be0ee4b17b5382d7
>>>
>>> Build libc and install it, then the messages should disappear.
>> Great!  Basically update world and it'll go.
>> Do we add an UPDATING note for this or do we consider it developer noise?
> I think the message has been there for a long time, but was not often
> noticed. It happened when the buildworld bootstrap decides to build a
> static bootstrap lld ("SYSTEM_LINKER: libclang will be built for
> bootstrapping a cross-linker"), so usually when lld's version is bumped.
> And that is because lld is one of the few threaded build tools in the
> tree.
>
> The messages themselves are harmless and can be ignored. Feel free to
> add an UPDATING note to that effect, otherwise worried users might think
> something is off. :)

Actually I had that in my Ceph-ports as well, and chose to ignore it....
Looked into the difference between FreeBSD and Linux.
Linux prevents that message by counting the number of loads, and only 
unloads
when the counter hits zero. FreeBSD just seems to unload, and report 
illegal access.

--WjW



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?08035b3a-7356-efc8-616b-cbf46c1904e7>