From nobody Thu May 02 17:07:07 2024 X-Original-To: bugs@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 4VVgMw1wTQz5Jg3L for ; Thu, 2 May 2024 17:07:08 +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 4VVgMw0rktz4ZlD for ; Thu, 2 May 2024 17:07:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1714669628; a=rsa-sha256; cv=none; b=uvX98xAMIpXd9w0fFwroCKyfRg0eXwVbzFZIHdsLx42EGFJbS2IIkWS543mKRov3Qu0ktf 1dXf7qyISXN3du6+9JZ48de8Um/ICrZ6lv08lZo2ocdxcXQmeTvJ+6AX9uD9J12SaSzuTr eOI/cIwGV5BtT5Dg0CB29/QMt1oT1SSLLziR6Oiz4vF8xO5jSLVQMmPe4O+3Kt/PHU6wDp MxbI6S/q+/1kEvT0ULPSaqE/RdbuFGp6vWQwjAanO8FpU9ncaSyL5bnsyjKZJvazxQLwQp 1cxY5jIfNM/1I978nUJWQ656JNzj83IjcrP9ulseaWd0dQPkSewmlQDC/wMEoQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1714669628; 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; bh=iX/yfb2pHOv+272QgQ5zS0FFYqMhAbW/FjFIldkt40s=; b=pirvxyNAoaIy8LxKziRwgt4SIgFpjttL3KSobaO3FjxXHaRmQpVgQWdZnErlAgMefC0P8a qjlxg0XF3OzZ+RabfLqUD83Fb4G7u0Iwt0ix3xqVCP8Mb/hlXqe3ZKFsAljCWw+KnPqwWc b+nVtP7QujQsRdgVkhMnJLxRxTOZxuzZvhti4LYgjkjRQcOpm6A3TEeFKnDMjao3kdFu7+ kHk4w39ZWP49aiqneN0mFeDIEJL1CJA9g+zd343noCUoz0xhJDdgOKpsimLjPBB6th4Cs5 uEm1E5sguo56u9Pabj+jKSl2zfd0Zrc8+7wS5VOMn5YeAtBLjd83Dz1AjG7PtQ== 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 4VVgMw0SK4z19vy for ; Thu, 2 May 2024 17:07:08 +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 442H77uU053950 for ; Thu, 2 May 2024 17:07:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 442H7724053946 for bugs@FreeBSD.org; Thu, 2 May 2024 17:07:07 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: bugs@FreeBSD.org Subject: [Bug 278701] Certain usage of thread_local and -fPIE results in an obscure message printout Date: Thu, 02 May 2024 17:07:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: vd@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: 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: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D278701 Bug ID: 278701 Summary: Certain usage of thread_local and -fPIE results in an obscure message printout Product: Base System Version: 14.0-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: vd@FreeBSD.org freefall:~$ cat > main.cc #include thread_local std::string s; int main(int argc, char** argv) { s =3D "aaa"; return 0; } freefall:~$ c++ -fPIE main.cc -o main freefall:~$ ./main __cxa_thread_call_dtors: dtr 0x820b65830 from unloaded dso, skipping freefall:~$ Same result with FreeBSD-14.0/clang-16.0.6 and FreeBSD-15.0/clang-18.1.4 The printed message is obscure because it is not clear if there is a bug in= the program or in the library or if I am supposed to do something to resolve the problem. Also, I think, the destructor of `s` is not called. The message is printed from walk_cb_call() from lib/libc/stdlib/cxa_thread_atexit_impl.c. --=20 You are receiving this mail because: You are the assignee for the bug.=