ed/relaxed; d=freebsd.org; s=dkim; t=1775484929; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=VFhAOGbWvr+wDA9sutMgQLKm2OrK1jMe7vtf9MgeNG8=; b=eYh7TYT8IDf/MYIvZ/ZkK3m8OHcinU2sP3Ca8bmHTDKIZ8jT+6tDfZO7xroGfsPv5ZZDqr CS7TV2H0O7Z8taxwqk/Osm7wDUlY0vemUeAPXIxcKc1HArufJR4ESlT9rktW6ZBZInHbcd CNK/HUYeLvVMKWKACMyfbZ5x+DvGh67WAYbgr0wy1co5rWk+G4pF9IfBN0NB/aA+prhU7v 1xUbs0ujXGMkelKJx1UDXc6Lmh40cNNvAVYxXQ8IO7/dUoE8WhimdUE1YFprWVxZhEuhCv mhnDm5CtBsr25wK7D/Cf6BPH20WrUrDACcI12x57jV2TN6WoXpQOivTcHMEHcQ== Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (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 ECDSA (prime256v1) client-digest SHA256) (Client CN "tensor.andric.com", Issuer "E7" (not verified)) (Authenticated sender: dim) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fqBDx2Q6Kz18SW; Mon, 06 Apr 2026 14:15:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtpclient.apple (bladnoch.home.andric.com [192.168.0.20]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id CC2EC6B178; Mon, 06 Apr 2026 16:15:27 +0200 (CEST) Content-Type: text/plain; charset=us-ascii 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 (Mac OS X Mail 16.0 \(3826.700.81.1.6\)) Subject: Re: debug files now have program headers From: Dimitry Andric In-Reply-To: <707b0fa7-b345-4802-a018-d6050f4e8f8c@gmail.com> Date: Mon, 6 Apr 2026 16:15:27 +0200 Cc: "freebsd-current@freebsd.org" , Ed Maste Content-Transfer-Encoding: quoted-printable Message-Id: <4DDACD68-1AF2-4502-AF20-4EAB15B13659@FreeBSD.org> References: <707b0fa7-b345-4802-a018-d6050f4e8f8c@gmail.com> To: Paul Floyd X-Mailer: Apple Mail (2.3826.700.81.1.6) On 6 Apr 2026, at 15:21, Paul Floyd wrote: >=20 > I just noticed that debug files now contain program headers. >=20 > For instance, on 14.3-RELEASE >=20 > paulf> file /usr/lib/debug/lib/libc.so.7.debug > /usr/lib/debug/lib/libc.so.7.debug: ELF 64-bit LSB shared object, = x86-64, version 1 (FreeBSD), no program > header, for FreeBSD 14.3, with debug_info, not stripped >=20 > but on 16.0-CURRENT >=20 > paulf> file /usr/lib/debug/lib/libc.so.7.debug > /usr/lib/debug/lib/libc.so.7.debug: ELF 64-bit LSB shared object, ARM = aarch64, version 1 (FreeBSD), dynamically linked, for FreeBSD 16.0 = (1600014), with debug_info, not stripped >=20 > (I've seen this on amd64 and arm64). >=20 > That's causing problems with Valgrind if you use double verbose output = (-v -v). With those options Valgrind will print details of functions = that it redirects. Now that libc.so.debug looks like a real shared = library rather than just a split debuginfo file Valgrind will try to = read it for extra information. That extra information stomps on the = correct information that it read from libc.so.7. The result is that = functions like malloc no longer get redirected. >=20 > That's not a problem for most users but it is quite a big issue for me = trying to debug Valgrind itself. >=20 > Is this going to be a permanent change? I guess this is due to WITH_LLVM_BINUTILS being the default now. -Dimitry