From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9A6DF3858D1E; Fri, 29 Mar 2024 13:49:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9A6DF3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1711720175; bh=q2I42wYqTUH44YFdCH9+kQ6oTtbFgIEh91tBSsE/aGg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=umazlVvl6haZcRx3z3tfwEkH5nhz3gTm1cWDKf7dH9XgFQk6MAY0yMuMZPC4jPmFw ePIzVujahyvYmTJAulSxpTdnKSE4jNPTIKIDh9U8r5CO9QMAH1Aq4s8BFxHeK48vU3 pYJb+OWmJgIh6SHwgFOXg9aVCR9ml5/e1IZjr1EI= From: "toyaniv at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/31578] GDB shows wrong offset value using 'info proc mapping' Date: Fri, 29 Mar 2024 13:49:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 12.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: toyaniv at gmail dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- 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: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31578 --- Comment #2 from Yaniv Buta --- (In reply to Tom Tromey from comment #1) > "info proc mapping" is just a very thin wrapper that > reads /proc/$pid/maps. Can you examine that file with "cat"? > I suspect there's no gdb problem here. Hi Tom Thanks for replying that fast. Indeed, below is that cat command and now it seems as OS bug... Can you suggest what actually going on ?=20 I wonder what makes the offset be miscalculated that way by the OS ... (gdb) shell $ uname -a Linux 0d142311433c 6.6.9-amd64 #1 SMP PREEMPT_DYNAMIC Kali 6.6.9-1kali1 (2024-01-08) x86_64 x86_64 x86_64 GNU/Linux $ cat /proc/25/maps 562634041000-562634044000 r--p 00000000 08:01 1208457=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 /home/ctf/device_control 562634044000-562634049000 r-xp 00003000 08:01 1208457=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 /home/ctf/device_control 562634049000-56263404b000 r--p 00008000 08:01 1208457=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 /home/ctf/device_control 56263404b000-56263404c000 r--p 00009000 08:01 1208457=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 /home/ctf/device_control 56263404c000-56263404d000 rw-p 0000a000 08:01 1208457=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20 /home/ctf/device_control Thanks, Yaniv --=20 You are receiving this mail because: You are on the CC list for the bug.=