From nobody Thu Jun 29 11:52:52 2023 X-Original-To: current@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 4QsGzh3Vj0z4kcDG for ; Thu, 29 Jun 2023 11:53:04 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from smtp.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4QsGzh1Z6mz3sSk; Thu, 29 Jun 2023 11:53:04 +0000 (UTC) (envelope-from wjw@digiware.nl) Authentication-Results: mx1.freebsd.org; none Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by smtp.digiware.nl (Postfix) with ESMTP id 9A5034AB22; Thu, 29 Jun 2023 13:52:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digiware.nl; s=medusa-2017; t=1688039576; bh=To1pcG1M1+AQJsjKjlNqki4qzkqXp6cJ9oYi/lDxExo=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=cPx/riKQ7umvy47uKkMtoNR9AJTDQOlhtzarPanVb1oGM2vth/L3WkpNwKJTDKCri auE18LA0Ad3T7iIXC7YW9SZi6u/xro+UzeYxPTtlldhzxOudIGhmN7RBHoq2gfR7/6 3A+TVW+akbh0hO+ewryd0T3u+h3qh33X/+VExnHm+N5EiqKYVoxvVT0kZyBNlg05qQ IkHbZxZzz6lRRmjDNdtkLlTm6Vg4Efbn+TdwYBo50W1Rjr06Six8jcT9EmokBzPJa9 R+sQLpyWdNL+fp0E2AawVnKU18yzrTDFYFTK6Fklz6FxHm80zKVCxCxNThSpwI/rK0 Z+8eAqSP5d0jg== X-Virus-Scanned: amavisd-new at digiware.nl Received: from smtp.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vQPJP7LdKfPb; Thu, 29 Jun 2023 13:52:55 +0200 (CEST) Received: from [IPV6:2001:4cb8:3:1:7004:11e2:3726:f035] (unknown [IPv6:2001:4cb8:3:1:7004:11e2:3726:f035]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp.digiware.nl (Postfix) with ESMTPSA id 518924AB21; Thu, 29 Jun 2023 13:52:55 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=digiware.nl; s=medusa-2017; t=1688039575; bh=To1pcG1M1+AQJsjKjlNqki4qzkqXp6cJ9oYi/lDxExo=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=Pu6PNI/ztrVRlfJbd0zHfAPnLVZoYtJyDxn1TPrlOgNXZLHBkxfVgRSnXyUS9DIK1 V4XIC7+grSdbYR9O8sXNFHqSn2gei0QnDSLnUxyCLGmxNfTr1lv9q/OUJ3lgrHUOev UWmHNdBsdkiju1Z2ptjkKcv3WsUG9qgfxUyWunTGdgi6gEpz6U8lFDNJoHNRTGLfpi 9Iayh730UceaGFI8gk+tWaKyPX2YeRR3vtkoN48WAMJjCEh+dmXBthriLtNdKlN5fO jPzrUg4kUih/GR7Ff8ipLlYzeSUJpdD8qxMZqeXykINnRKbTbTrD7QMU/YMmNEZfQt KIUaZEmngHK3g== Message-ID: <9e0a27a0-acb3-d30c-14db-ea59042d435b@digiware.nl> Date: Thu, 29 Jun 2023 13:52:52 +0200 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Firefox/102.0 Thunderbird/102.12.0 Subject: Re: __cxa_thread_call_dtors: dtr 0x........ from unloaded dso, skipping Content-Language: nl To: Dimitry Andric Cc: "Bjoern A. Zeeb" , current@freebsd.org References: <46pq4r4n-p46r-47nn-r1ss-7r2984891pn7@yvfgf.mnoonqbm.arg> <16A8852E-DEA9-408E-80BC-94322FB2415E@FreeBSD.org> <0A55614E-3577-4933-9CCD-4D723DFA86E8@FreeBSD.org> <08035b3a-7356-efc8-616b-cbf46c1904e7@digiware.nl> From: Willem Jan Withagen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4QsGzh1Z6mz3sSk X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 29-6-2023 12:37, Dimitry Andric wrote: > On 29 Jun 2023, at 12:25, Willem Jan Withagen wrote: >> On 26-6-2023 17:38, Dimitry Andric wrote: >>> On 26 Jun 2023, at 17:29, Bjoern A. Zeeb wrote: >>>> On Mon, 26 Jun 2023, Dimitry Andric wrote: >>>> >>>>> On 26 Jun 2023, at 17:00, Bjoern A. Zeeb 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. > There is no "loading" and "unloading" going on, since this is about a > static executable. What happened was that __cxa_thread_call_dtors() was > giving a misleading message, because _rtld_addr_phdr() always returned > 0. Kostik has now made it so _rtld_addr_phdr() does the right thing for > static executables. So the "feature" I described is still in there? Any chance of that getting fixed? --WjW