From nobody Tue Apr 7 07:40:07 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 4fqdQp6q2Vz6YyXn for ; Tue, 07 Apr 2026 07:40:34 +0000 (UTC) (envelope-from 6yearold@gmail.com) Received: from mail-yw1-f178.google.com (mail-yw1-f178.google.com [209.85.128.178]) (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 4fqdQp3zC2z3rr4 for ; Tue, 07 Apr 2026 07:40:34 +0000 (UTC) (envelope-from 6yearold@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-yw1-f178.google.com with SMTP id 00721157ae682-79a74765703so36809097b3.3 for ; Tue, 07 Apr 2026 00:40:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775547634; x=1776152434; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=gM43BUHuUxAcJNc+H4N3mztcrGCewYelDdTw5sYqkhM=; b=FW4AOyw7B8FfZCwJAz/hawoJVng4z2ctjBGWdRuYhPGJCc6gNPjifX1cpdnR2cIjE4 eNMZN0ijz9whfN55tdnh5P+O/tUOivstsnJBu2bzDKY0pqauh/6lY3wSsODF2bPa3U3X edmdp3gNISVWt1GGjccBpcdLhWWKnnAG9dQ8aSmDK3g/ASwMqpS6G9l2dxiijtAdZwOy k5qQ29j1Ys9Tpo0OUvHTCn2LG0aL64OkA10GlyBL/L3zdlgwR5u5jnsARZaK9uAe8g0F gMB7ZqmePqv9Bv0CMxgnCRTcY0jp1JQJ1UEiyWqK3twykI4nDIoOVUyiben80xiHK4sH RbEg== X-Forwarded-Encrypted: i=1; AJvYcCWOaGDSk7eByde+yVdQuwmdOlk/oUq2y03FuRh1vXJpC+jDBnBBlzGJegKYaqXMeB/cZ8iIjhT8O57XlijwzfI=@freebsd.org X-Gm-Message-State: AOJu0Yz6l73gX3SXCLWG2j/+3CORNI30553pFW/Oi8mvJz8qkojDXqxJ Nw68fkTaFbjSecGhnwdMy47E+3jq5A8osmrJJTqBpokKZNWG02WBWPnBuDMAIt+Gy1s= X-Gm-Gg: AeBDiesd/c67xhiG6PoxhbvdhADBUsltbhkReTBO3NN0wIOukCBovREdA02jHmreNo4 8hxjjMyrofYq/cPBoi+bUG2Eqs28nFrhj7OcZ4SvO4UA6Rq5A0xgLZV9hehWEH/Fy1nIqoVCQO8 OszI03rlK1UftOM58xB0nEdy2n0q/oyr2IeDL3EXq6Bdnze8P3azu+DBVz5PkGiLgfHX4EksVn7 bYFqWojNqxyLAfAFt/9uap7lP4zqBR8I8OxyGiNOQJRnhvLfinfVl/yrLaVH022i7qXZ+OgxdUR Jp6pWwD2td++Mr5MSyKGSdR+exSeqL4c5e42z86d59GLkxW3s8iz3vcFO6DzBiKFBX7xKzUcgGS orz3CSPrMP5kMh88DcwU3YBKRMQBlWg0JHlJwns14wKSWmfp9y6ESh3/V3gja04IKlxzrbxhBRm 12JupP4ZZHo/PacEqj5cL3SF/Lz88LN/PLtstmXnTS6dI51T+13h7o0kd6ZBZIPdDC6S7WAF4VM PGG1uBGUrDEG6GtH6fVhj/PI8GtrPFSIGIkDr3B6oQ52nH4DCjuh/rvmou1RVSyEAhGQWHZHlQH Kw0= X-Received: by 2002:a05:690c:1d:b0:79a:dc28:fbda with SMTP id 00721157ae682-7a4d3ac7aaemr168680977b3.15.1775547633572; Tue, 07 Apr 2026 00:40:33 -0700 (PDT) Received: from mail-yx1-f49.google.com (mail-yx1-f49.google.com. [74.125.224.49]) by smtp.gmail.com with ESMTPSA id 00721157ae682-7a36e42ff26sm66863467b3.9.2026.04.07.00.40.33 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Apr 2026 00:40:33 -0700 (PDT) Received: by mail-yx1-f49.google.com with SMTP id 956f58d0204a3-64937edbc9eso4085518d50.2 for ; Tue, 07 Apr 2026 00:40:33 -0700 (PDT) X-Forwarded-Encrypted: i=1; AJvYcCU9NOz6Otkr0ISdYmxEV2wtaj6PitbpoX/1Os4ft5vogojUGE5KDys96ivwVCsppkMztBzQrvTdWkBvSaupPqA=@freebsd.org X-Received: by 2002:a53:d018:0:b0:64f:ef10:7cb0 with SMTP id 956f58d0204a3-65048865868mr14120766d50.49.1775547632903; Tue, 07 Apr 2026 00:40:32 -0700 (PDT) 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 References: <707b0fa7-b345-4802-a018-d6050f4e8f8c@gmail.com> <4DDACD68-1AF2-4502-AF20-4EAB15B13659@FreeBSD.org> In-Reply-To: <4DDACD68-1AF2-4502-AF20-4EAB15B13659@FreeBSD.org> From: Gleb Popov Date: Tue, 7 Apr 2026 10:40:07 +0300 X-Gmail-Original-Message-ID: X-Gm-Features: AQROBzCCCeTdfznXjUjQ2R9YPvCuY5JCDQBPYqon4ZDzywfuBnZ6xZ9aRndzTSE Message-ID: Subject: Re: debug files now have program headers To: Dimitry Andric Cc: Paul Floyd , "freebsd-current@freebsd.org" , Ed Maste Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US] X-Rspamd-Queue-Id: 4fqdQp3zC2z3rr4 X-Spamd-Bar: ---- On Mon, Apr 6, 2026 at 5:16=E2=80=AFPM Dimitry Andric wro= te: > > On 6 Apr 2026, at 15:21, Paul Floyd wrote: > > > > 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-6= 4, 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 a= arch64, 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 i= t 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 in= formation. That extra information stomps on the correct information that it= read from libc.so.7. The result is that functions like malloc no longer ge= t 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? > > I guess this is due to WITH_LLVM_BINUTILS being the default now. That's correct, the informational context is here: https://sourceware.org/bugzilla/show_bug.cgi?id=3D33876#c1