From nobody Mon Apr 6 13:21:14 2026 X-Original-To: freebsd-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 4fq92V2l34z6Y1sX for ; Mon, 06 Apr 2026 13:21:22 +0000 (UTC) (envelope-from paulf2718@gmail.com) Received: from mail-wm1-x329.google.com (mail-wm1-x329.google.com [IPv6:2a00:1450:4864:20::329]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fq92T58tjz3cTj for ; Mon, 06 Apr 2026 13:21:21 +0000 (UTC) (envelope-from paulf2718@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20251104 header.b=a8wT5H0X; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of paulf2718@gmail.com designates 2a00:1450:4864:20::329 as permitted sender) smtp.mailfrom=paulf2718@gmail.com Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4853c1ca73aso39555105e9.2 for ; Mon, 06 Apr 2026 06:21:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775481675; x=1776086475; darn=freebsd.org; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=UuBOJNXEUP//MudKmeu/Rask8c+z/DGqL9nHjNAG7eo=; b=a8wT5H0XDwAFUru/iJbZx+zxVHh1jGWVG3RsVGmQ+31r1gO1wEBjU+cDDTQrY1bu1W JPC/v68QSlspBSQpcDezaGStzmrWrRu4c6CfChqkdKZuVhHpdbq92UE11qfLDmJTQLtP pNGnNjgX5SSsqesvsMwfk2VGiH80pD6dRgku04UuLpbDPO2oyWal2hTHCxDt6INlGyWK Nw14ejlamac1helsaG800YdpTbzeh5Gd0qW/Bg0HggAowBxZpvyF/DeSK9BtaIQoHx0I dJ9jKPmsU8UEsJ7FUKpnOqZdNHZDK8yQUmCXnqlh72QiCxM+ORH3trQoIxlkf3vfYu1m b9xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775481675; x=1776086475; h=content-transfer-encoding:subject:from:to:content-language :user-agent:mime-version:date:message-id:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=UuBOJNXEUP//MudKmeu/Rask8c+z/DGqL9nHjNAG7eo=; b=UtdCFkKuj/1pKaIC9P2IoLvsnTKkHCfkUasdcVCgwt4TTBcQGB5iSi1kyvJeKWb/Z+ J5MVS94TcapSCEa4UllvIrlYLpoOb91ssg5n7IxJKvm0S6Uo47BCVOem8GjZICJnZtzg 4DxpjlO5oc+mCcmozr1rvmZGeTK2z7K2fUtScuuVA/N7vZnPuEqCcnNjMD0oE+0IB1/F 5xppZwv8FYaMSRYdRt+RduiUay0pficb+Ew8tUx8bNTgt2vv/LcMsEWwYPctRdggkv+F 2sV0a2GdLDuveSc72rUp5jZwXIiXoL0l//+Rtl1x8S3qtI3NA+ca+RswIJHqskTltx8X kAFA== X-Gm-Message-State: AOJu0YzgQvh8xzAyOowWsLigzitLQPcHuEpSe/6ua8yNVVGLkpv5lUa1 haZHjZmHGQFQCI0B09btHqesTp19p1BWh1jF/2/QwZOqyNFE7NOfztNd5mpzcg== X-Gm-Gg: AeBDiev1bak93Zq7GPP//tYGwCj7aM7rSbZMoa4GVhFFLGkcGXqbRwTe/G6CJzncA8O UhItMXsxLU//dtg8MALu0dS0bLUmVyifDVHR/6piwwrA5T613ScmcTPHxacI5MYKQ0jV3I/ig7g DRwGtLcTU1x3KirNH4vGlX7zbxvmzIhrhq2EiyALY6vp6FuRcSBvUeg+uEOVgrcu/TeEBKpXFPJ 8pK+4iy2v+51QpFMHIu8OXQZliKrSilOyFkv6559k3la+puvtQEc26/qAZHxSnawoDmQZfqB4la GO4L2otq3DJgKVDT8Tr7ypAm8+T3iLflZCHW8ZSsyNyqSoE4qTIOf49NS4BwpaCLz5hhoOagt5o ZtXejxk0d6O9pYBab3yRuG9OkAZu5Nkt6EZtdXPD6SP/Dro8+A9ZEZIm3iwMOtf1ro7viqP9Gft GGj+iipSrTCjefleVHMALq51jfePE2Ts9tR2VzluH0dqW3FEsRCpQg+1pD0uqYPe0zwIF/Q4cBZ nNQLyXp+Q== X-Received: by 2002:a05:6000:2913:b0:439:a958:4342 with SMTP id ffacd0b85a97d-43d292d64dfmr17925320f8f.34.1775481675392; Mon, 06 Apr 2026 06:21:15 -0700 (PDT) Received: from ?IPV6:2a01:cb15:8545:7700:62cf:84ff:fe81:caec? ([2a01:cb15:8545:7700:62cf:84ff:fe81:caec]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-43d1e2c5419sm49122155f8f.11.2026.04.06.06.21.14 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Apr 2026 06:21:14 -0700 (PDT) Message-ID: <707b0fa7-b345-4802-a018-d6050f4e8f8c@gmail.com> Date: Mon, 6 Apr 2026 15:21:14 +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 Thunderbird Content-Language: en-US To: "freebsd-current@freebsd.org" From: Paul Floyd Subject: debug files now have program headers Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.61 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.61)[-0.612]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4864::/56]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20251104]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; TO_DN_EQ_ADDR_ALL(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::329:from] X-Rspamd-Queue-Id: 4fq92T58tjz3cTj X-Spamd-Bar: --- Hi I just noticed that debug files now contain program headers. For instance, on 14.3-RELEASE 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 but on 16.0-CURRENT 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 (I've seen this on amd64 and arm64). 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. That's not a problem for most users but it is quite a big issue for me trying to debug Valgrind itself. Is this going to be a permanent change? A+ Paul From nobody Mon Apr 6 14:10:53 2026 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 4fqB7l0T6Fz6Y5gF; Mon, 06 Apr 2026 14:10:59 +0000 (UTC) (envelope-from ivy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqB7k5RgLz3ld7; Mon, 06 Apr 2026 14:10:58 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1775484658; 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; bh=QNsIwUVX9Wcq5WJuWd/O4Sj5YPdo8eaEHLhTGIIIeqk=; b=QCOIyBrGfGOrcpvWB5/L26/JBFACyY/XybEPTxpxYNp29XDw+DUKJRRttOY2BxTT7OXR3+ +k7+ZASHZG5WrKBFTyIHMmcoi4Cp3OHC1p1LtTEFxhb86Ah7rYlDXfDIb+yiUfF2yhYqV/ MuwV6a/XxkKAPgi9KZqR/g5arLUFjvJ6kLRfj1YZ++caXjavhH02S95gF20x3BQxSx5GJm xHN75P+fbLY7pZgJiNcLkJ6XebaH6VJa/4j0aen8XVDYbV06fZ0qYqnnlxd0CWpPMYDaWo hG0/1uZA4BP6JzHaS+Qba6X3GKYOxLBSfLIujPzisf7Rb8Bg+VWU6qUmD/S8dQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775484658; a=rsa-sha256; cv=none; b=GmmsUrjDQW2gFmvKDoCH32QKOmQRQsVJ0sl8ElDf6oGTPhNcWHoS37i4fP9IDXOPOvUUnW nu10XZ294zr9eqa+bSZTNJ0d9pH/jeBGQSWxq+ZFCeUliApaEX0PwMS9poZPkDzcd4OGdI AKPSo1sT1P60j4ZjqymW3O5QouUDd0Gq3cUaI/L0P9Y20NZFx+AEmQ7QAadccBD9oLooIS opXlyLCtNOnLiwwF4IL1ORbm6lyRSqc0+pFmUiLh64L9oCUowlnMRaDy1FDsAzWlZs8djZ ne3m0Cd7wfnjK2YZtZsNuKcLiQZAudjeFcBM5TFzIVmXQfp/Q3+CbkL4pMs0lA== 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=1775484658; 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; bh=QNsIwUVX9Wcq5WJuWd/O4Sj5YPdo8eaEHLhTGIIIeqk=; b=t28JSA3XV1YLHrSk7ZWeII7H/yr8XeGhZwcWeIoiuQTRkYT1dm9+FNabvuRKGWebpUQL4H Qn5ZyG7mzq7cpf81ASRwwxv4xISwe0Urf5aIbZNr99hbiShqODXQ09+Xja7MOeVTSw1Klg ih7xkpGO3d5Va9aIr1gHj1sXsmnLlKcgFbwXed0jjXn5M9rga2rBxMo56eTsEvWiv7vDFB XQdLu++df75gnvmjqcTwQgOcI0PAWH2XZlbHEVww/hmSoymvDGIg52qEY6fXlcHpGYymLd xzJoX6qRhwffN943ZQO5CGJDxcs+PLc1dHWIPq+D/T6IDUgm1oK30fq7//xIIQ== Received: from amaryllis.le-fay.org (amaryllis.le-fay.org [IPv6:2a00:1098:6b:400::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) (Authenticated sender: ivy/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4fqB7k1C7Pz18gZ; Mon, 06 Apr 2026 14:10:58 +0000 (UTC) (envelope-from ivy@freebsd.org) Date: Mon, 6 Apr 2026 15:10:53 +0100 From: Lexi Winter To: current@freebsd.org, pkgbase@freebsd.org Cc: bofh@freebsd.org, bapt@freebsd.org Subject: pkgbase breakage in main due to libucl upgrade Message-ID: Mail-Followup-To: current@freebsd.org, pkgbase@freebsd.org, bofh@freebsd.org, bapt@freebsd.org 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 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="IQt+yfo8H1VcU/Nv" Content-Disposition: inline --IQt+yfo8H1VcU/Nv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable hello, as a couple of people already reported[0][1] the pkgbase build is currently broken in main. this affects building packages for any version of FreeBSD when the build host is main abda442d92fd[2] or later. this is not trivial to fix. the issue is that libucl changed the lua bindings in an incompatible way, specifically to disable use of macros (which includes ".include") by default[3]. that breaks the API that the pkgbase build scripts rely on, and those scripts use the host flua. as an immediate fix, i have three diffs for review: - "packages: Fix build with libucl 0.9.3" https://reviews.freebsd.org/D56266 this change, which is backward-compatible with previous versions of lua libucl, fixes the ABI breakage. - "flua: Always build as a bootstrap tool" https://reviews.freebsd.org/D56270 "packages: Always use the bootstrap flua" https://reviews.freebsd.org/D56271 these changes mean we'll use the version of flua and libucl from the source tree to build packages, instead of the host versions, which protects us from future API breaks. if you're running into this issue right now, you can apply the patch =66rom D56266 to fix your build, and optionally the other two diffs if you like (but they aren't required). this has to be done on the src tree being built, *not* the build system. unfortunately, none of these changes fix the general problem which is that we can't build FreeBSD 15.0 on FreeBSD 16-CURRENT. i'm open to other suggestsions here, but i think the best approach is to revert the libucl commit that changed the ABI; while this is a security fix, the only things using flua are in the base system, and none of them should be affected by the issue being fixed. any thoughts? [0] https://lists.freebsd.org/archives/freebsd-current/2026-April/010080.ht= ml [1] https://lists.freebsd.org/archives/freebsd-pkgbase/2026-April/001284.ht= ml [2] https://cgit.freebsd.org/src/commit/?id=3Dabda442d92fdbadcf81c79bc9ddba= 001d133c429 [3] https://github.com/vstakhov/libucl/commit/8a0294f9eaa4e70342e562cb92792= bbe3df90e70 --IQt+yfo8H1VcU/Nv Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCadO+6QAKCRD1nT63mIK/ YNz7AP0VGjtB3DVG5tXn9u0KVUEprlM9fnW65CZSnudjIR68twEA8RpwlENE7ElS qcMDf5Q5oYN6eqBtgsL201FbJfUKtQ0= =QiIj -----END PGP SIGNATURE----- --IQt+yfo8H1VcU/Nv-- From nobody Mon Apr 6 14:15:27 2026 X-Original-To: freebsd-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 4fqBDx4ghRz6Y5yB for ; Mon, 06 Apr 2026 14:15:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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 "smtp.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fqBDx3wDyz3nPj; Mon, 06 Apr 2026 14:15:29 +0000 (UTC) (envelope-from dim@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/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=RnaAZBe4XxJEygh1EQbLPAgcIXLr6KvQRpU/AoEQliyhxaZa6tJKoFEHVSwiNPv1bxVH06 8QxL7k4IRGUOK8PCOyzXgcTAFn9iJCj1vjqEBzOCI2+KnaMKc14Ulruy8L5kFz6KtzMvqL Ac6I/vFLsK0+Dg8qlk6BoWroADSV/Y1tDmaSFj/hZnCTtNerZ5ZsH6NfYFa3wqae83UiRa tFFaLu+CcFXluRrYQ5rKPPtHsxp6tkUsCgDA4UIL7qW3vrSxx9BssJEV74fIdMVdJJ3Z5I rGvnDPXK2WXiTCdsTyZeR3TCwhOv97MkwRR0ufLAXgn2RNDc0/l2Y7Y3s5FEKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1775484929; a=rsa-sha256; cv=none; b=lsLWQ6W21ZHHgYZwtMIa2vEJqAWox230SLk2pIf8HNp7BtdvyC2RBnyOkTJK5Oq7XoQBsF kwVGB+0L55TnMLU3tQYOWRwWztVIw6ORsfK0HrvhhSy4DVsUi96Q82jhUxy4YTtYWSvthA uhsV+B1bGAIGRcbi2hqcKXz2uqy/dv01QkJ9k5kEPatAdEzIcMb0cm3226/PF1ve1Ms33/ hfC5agCLhgxCtVMDT23FYD8pFqcWSGnU1c2zfrHB/C/uBOhsmGNyUwkk0fDxjWRV5sGCCi FUIPFzMJP8JKdVTrcpSJCS2aj+21GGFaayetRl5zQQJ5WOlLKXSHfGjBdzzcTQ== 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=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