From nobody Sun Jan 19 16:20:13 2025 X-Original-To: ppc@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 4Ybdwt4xYhz5lR1F for ; Sun, 19 Jan 2025 16:20:14 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ybdwt3C0Nz3j6x for ; Sun, 19 Jan 2025 16:20:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737303614; 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: in-reply-to:in-reply-to:references:references; bh=TrgT9dSOFgvRHHqoJHIIiKHA6xKrg0KVt235URLfuMc=; b=Aiz2Pqyk7jQ95egqOUAlewuYcWOFx62TZWk+blq1bJ5LAcLNbwDbwvmiTEQmNDrE7D0siD TV7ZBy2zkBiYL0rY9pdk6yYSKnz94hNiWKi1S9QKvimzih0f+amd7Xuy1e8r9ecfPLyHif JcyxUNXbi77ySjuIuIOp2jL7C2HmNd4FExSV0tu2PnCnxfoJ3z7b7+Rbccs8PlP7RK+bIp 5x9xyttzrwNNLzSZFtPO5WXbAIVGYcckPTexwss+ExDSUe9LjDWG5+bs5+jGnBkQzPfq08 XqzKm+kP2tEmrSS0moEQLj6y/yLADCyLPZskOhHdIlr+lqlNNm9KGs1JkeD0Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737303614; 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: in-reply-to:in-reply-to:references:references; bh=TrgT9dSOFgvRHHqoJHIIiKHA6xKrg0KVt235URLfuMc=; b=kU5XY9wA4S3UyuH/4tmASpVfAMI2fm0Dm/dk2UGRNeZ5AL55ySTLx83lg1WprhFRdnsRpC neRM32VCShQ7v+nJQpnMdl4hzXz3O+9n+DKnmxAckpbjqKwZVV99V/b9e5pQQrI7qF6wnm SiSJxwOWzqPiLFs/5+opD+mKGhKXZwi8BGjDkbS4+FHzWHhLQEmfzbkiAcEM2PC/6eKKKn eZiJPFE6eN/93Zp0OTARiwRnHMDIeeZz80pyrb/NHBjEzl+L5Hk7HByRcYoqS1PwoSqe3i aN5PVJA0xawvU/7D9OeVtAoI52bGVuwd2yx2rho3HXWAzNX5IQIV3XaWUoRJoA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737303614; a=rsa-sha256; cv=none; b=dl/vHOTXed7QC2x23RPEvbn4oLOefpCu8C8pkdqptVsuaW6YB14ty1yGWwK9WTRzTXcqyG jf+1pdhzE7Z08oUyFmvhd1lM7AkkGh5DDM4+I9WgKBW96z6XBmddKR17v9WSH4PbELCHLX Li4Z5o1QXCYs0aL9PmR8+7kJ8nyFs/YeqWy8/CTyy16CNrpi2W52+TDSwly5YagWd/WZCg UtunfHZqhe5PppWcCfHCKg1MyhzqjQHa8/Pvt4pguuiDP09W36zSm3CM9EMuKEXETPPfJk 3FNkVUb8FIZb6BZWpr5QA4A70MtGZ1xQf3E7d8oxjU5tXnOS0kXGPwhTHCP5rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4Ybdwt2Wh9zxQh for ; Sun, 19 Jan 2025 16:20:14 +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 50JGKE1A078397 for ; Sun, 19 Jan 2025 16:20:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50JGKEeM078396 for ppc@FreeBSD.org; Sun, 19 Jan 2025 16:20:14 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: ppc@FreeBSD.org Subject: [Bug 235751] Failure to init TLS variables with func ptr inside shared lib Date: Sun, 19 Jan 2025 16:20:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dclarke@blastwave.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: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Porting FreeBSD to the PowerPC List-Archive: https://lists.freebsd.org/archives/freebsd-ppc List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-ppc@freebsd.org Sender: owner-freebsd-ppc@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D235751 --- Comment #8 from Dennis Clarke --- (In reply to Konstantin Belousov from comment #7) What precisely did you do? I see no way that you made this work just fine on a 14.0-STABLE system when it fails in the same way on 13.4-RELEASE-p1 machine :=20 $ uname -apKU=20 FreeBSD dasoyva 13.4-RELEASE-p1 FreeBSD 13.4-RELEASE-p1 GENERIC amd64 amd64 1304000 1304000 $ freebsd-version -kru=20 13.4-RELEASE-p1 13.4-RELEASE-p1 13.4-RELEASE-p2 $=20 $ which cc /usr/bin/cc $ CC=3D/usr/bin/cc $ export CC $=20 $ $CC --version FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67) Target: x86_64-unknown-freebsd13.4 Thread model: posix InstalledDir: /usr/bin $ $ $CC -std=3Diso9899:1999 -pedantic -pedantic-errors -m64 -g -O0 -fno-built= in -shared -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_XOPEN_SOURCE=3D600 -D_REENTRANT -o t1.so -fPIC t1.c $ $CC -std=3Diso9899:1999 -pedantic -pedantic-errors -m64 -g -O0 -fno-built= in -shared -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=3D64 -D_XOPEN_SOURCE=3D600 -D_REENTRANT -o foo t2.c t1.so $ file foo foo: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, for FreeBSD 13.4, with debug_info, not stripped $ readelf -delV foo | grep -E 'NEED|NAME|PATH' 0x0000000000000001 NEEDED Shared library: [t1.so] 0x0000000000000001 NEEDED Shared library: [libc.so.7] 0x000000006ffffffe VERNEED 0x340 0x000000006fffffff VERNEEDNUM 1 $ ./foo Segmentation fault (core dumped) $ LD_LIBRARY_PATH=3D`pwd` ./foo Segmentation fault (core dumped) $=20 So you are saying that, with magic, the problem goes away on a 14 STABLE=20 machine and then returns everywhere else? --=20 You are receiving this mail because: You are on the CC list for the bug.=