From nobody Wed Sep 20 14:51:04 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 4RrM0m5ftQz4tm0B for ; Wed, 20 Sep 2023 14:51:04 +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 4RrM0m1jGTz3g60 for ; Wed, 20 Sep 2023 14:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695221464; a=rsa-sha256; cv=none; b=hXw3jKbfiRrxKtzvvJYKKmHl337egdeOGvDU83YjHqgEO0U+DRSj/ZpchZn0MmR2XcVZE2 /Q/X2XZ6VunrTZGMGvn39LK4ge7XHT54HBOqae+qu0RKd5o5u81nsKIrYdRTx1ay8Fhdgk E2RvF7f+DhPE2FrJyLSwjIum8WeDcnUI3izpu/ae2cpzt0NUpe4LnR+BB197aU1HBWsUpb /NtfGbDVSEYSayVsKO2TZYexj7yulUzUS+CeJgLBYxvpoOu+xKy2niyE7Grs2vhIV6lBBR ruHL4+Eg5mne7kdS4X8a6Abg0N1+v+0XQIC/OoK8gO/n8mWaTmmW+HaW1UKDtQ== 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=1695221464; 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=+NeWJcogPtEzuOjeouESbheEATi0fYYWrtDgTBI+sgM=; b=rmBoJNclsUkECbPpK7H//MSR/KellySl4qOQO3QT5mnwbwaqV56tN43ZBXiKnQHoCzG8zB tQtjCM04tRIfYqzEyMQf56mDdes2OgE+T31JtMG+VAOIO7WJxR68UFx8D0B6bg1uds7ysp lDzS6huFrXGfo2wXRIIE3F7sPhfWotZoWbnOs1azyzPMJG8NonGc3KBrQawVsTxPdlXQd7 +W5fAzZ/S5wFiONK6fGfTA3JAdC+av+8bc6A+4FT7D6EngfjeNx1SA/eXEzbHGKh0nZnWY 0WRI5G1RR2JcCTQdBko7Y9Tj9jP1RKHYXIvp+5wldcwMZQWMjCsWcIze28h7gw== 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 4RrM0m0n4Cz10cR for ; Wed, 20 Sep 2023 14:51:04 +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 38KEp4YE000323 for ; Wed, 20 Sep 2023 14:51:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 38KEp4H2000322 for bugs@FreeBSD.org; Wed, 20 Sep 2023 14:51:04 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 14:51:04 +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: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: pjfloyd@wanadoo.fr 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-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 #3 from Paul Floyd --- Hi Ed Which versions of FreeBSD and Valgrind are you using? I was running my dev buuild of Valgrind under gdb when I ran procstat. The easiest thing is to use a dummy exe that just does a big sleep() and th= en run valgrind normally. Alternatively, to run in gdb, set the folowing env vars: (1) Set VALGRIND_LAUNCHER to point to the valgrind executable. Eg: export VALGRIND_LAUNCHER=3D/usr/local/bin/valgrind or for an uninstalled version in a source directory $DIR: export VALGRIND_LAUNCHER=3D$DIR/coregrind/valgrind export VALGRIND_LIB=3D$DIR/.in_place VALGRIND_LIB is where the default.supp and vgpreload_ libraries are found You should run something like gdb --args /path/to/memcheck-amd64-freebsd --tool=3Dmemcheck `which false` There's no main, if you want to start at the beginning put a break on valgrind_main. For this report I put a breakpoint on 'parse_procselfmaps' which is reached fairly early on. If you do debug much futher than that you should let Valgrind handle exceptions: handle SIGILL SIGSEGV nostop noprint=20=20 lldb should work as well but I mainly use gdb because Valgrind doesn't yet = have an integrated lldb-server Ignoring signals with lldb: pro hand -p true -s false -n false SIGILL SIGSEGV --=20 You are receiving this mail because: You are the assignee for the bug.=