From nobody Wed Sep 20 19:39:25 2023 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 4RrTPT5npQz4v5Dq for ; Wed, 20 Sep 2023 19:39:25 +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 4RrTPT4Kvnz3csf for ; Wed, 20 Sep 2023 19:39:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695238765; a=rsa-sha256; cv=none; b=lKt5wxIuCOBGxJtNsKRBCj2+9j7TdV/86AxYfa3FZXFlnewyxekSUIbdhb2jljlPO1ijMZ Lb3lJnnQhfFXhlvBIGouQb0EzvjvSuTnRTczCv+fk8jIkkiyyFBLQYIOl5S7CrenEOO0zW bsKTCSrmanrcESK8HxBSo9lSH7x7VZIis5sVVAO767NDQ6a4JXxIERbnmIgKqWpdBfD1UD Zou+vWRJjYYwu1+QY92tKY+ybjG39kVAXigkMs28J9rCjSK/X2aReFxoEL8D1Na1Ort3sd NmKaDJGAYBqk2dcpZCQyOneiuslyJNU0dSbph/OjpbFZHiBTd/J+V/2URdpr6w== 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=1695238765; 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=d/bAf5wCv9k6GJ0ZdYzeM37seVxiBxA42PMJICJ+Imo=; b=mGK822ku5iARuU+J4UZTQ/7SaMWQDI4wcnKtCTbor17vwyPfyiWHC9QYmJRzhSvhiORDUo 03TpcGkcmsY73RSI6COPzqgDsTZ0e5K2hCb9sCOiEPbHKgW5qZHbAuVzVnl+g0qu2wK4BY 3tMBvkIUjnNk/XdKn+pX6v44nWgEAMMTpmmIyOeW4OI8I2/Wfyn7AtJdE1w9N75bs0PRyb zZmZJtggrCqoFm/Y8kVnbAuVDYS+p3XTld8IOPum5gWvmB7X2Tcjba5+bm1S8aS4RF2Rb7 HsfLqxu+9GJQ1tJ3wdOsKIYSUHu0429k2M2gsd/UHeFMx4q5bPwwUcDPzUcRQQ== 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 4RrTPT3JC9z180G for ; Wed, 20 Sep 2023 19:39:25 +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 38KJdPt7072329 for ; Wed, 20 Sep 2023 19:39:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38KJdPtv072328 for bugs@FreeBSD.org; Wed, 20 Sep 2023 19:39:25 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 273956] KERN_PROC_VMMAP does not read all mapped files Date: Wed, 20 Sep 2023 19:39:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-CURRENT X-Bugzilla-Keywords: needs-qa X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr X-Bugzilla-Status: Open 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-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=3D273956 --- Comment #8 from Paul Floyd --- (In reply to Ed Maste from comment #6) I know a thing or two about this. Initially Valgrind would only trigger reading debuginfo when it considered a file to have finished mapping. That used to mean seeing 1 RX and 1 RW secti= on. Then lld 9 started writing 2 RW sections. Gory details here: https://bugs.kde.org/show_bug.cgi?id=3D452802 So now Valgrind takes a peak at the binary to count the RW PT_LOADs and then triggers the debuginfo when it has seen 1 RW and the right number of RW PT_LOADs. Pretty much all binaries on FreeBSD now have 1 RC and 2 RW. For instance=20 readelf -l /bin/sleep RO 02 .interp .note.tag .dynsym .gnu.version .gnu.version_r .gnu.hash .hash .dynstr .rela.dyn .rela.plt .rodata .eh_frame_hdr .eh_frame=20 RX 03 .text .init .fini .plt=20 RW1 04 .ctors .dtors .jcr .init_array .dynamic .got=20 RW2 05 .data .got.plt .bss=20 (I added the 1st column) The valgrind tools are totally static so they son't have any segments like = got plt=20 readelf -l .in_place/memcheck-amd64-freebsd RO 01 .note.tag .rodata .eh_frame_hdr .eh_frame=20 RX 02 .text=20 RW1 03 .data .bss --=20 You are receiving this mail because: You are the assignee for the bug.=