From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8FDA1383234D; Fri, 16 Dec 2022 06:56:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8FDA1383234D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671173806; bh=MpKiY8ExZ1EvtU5NMUyi1sHYxBtktAQE+WQPw3Q3fik=; h=From:To:Subject:Date:From; b=fTZPCiLK53q4MkQO6cINoeovneva9b7XXrpS7XzhE5YJToxlL7kr5/SmKZ8KuTJZF +cMaG6qfEnjidfSpMRpEfGa1g2YSgRXbwnrhaJlPO/HAOY9WRCusfwMWQjvvVdrLJe FNWBRcJp1FFpJCbgl6ee6zjdq0fJLkA++yLs9IA4= From: "sam at gentoo dot org" To: gdb-prs@sourceware.org Subject: [Bug gdb/29907] New: gdb tries to open /proc/pid/mem even for --version Date: Fri, 16 Dec 2022 06:56:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sam at gentoo dot org X-Bugzilla-Status: NEW 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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=3D29907 Bug ID: 29907 Summary: gdb tries to open /proc/pid/mem even for --version Product: gdb Version: unknown Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: sam at gentoo dot org CC: pedro at palves dot net Target Milestone: --- Build systems (like QEMU's, apparently) may call 'gdb --version' to check g= db's presence & its version on the system. As of 1bcb0708f22956d5128a2e75df6eba5a18327892, gdb will check if /proc/pid= /mem is writable, including for 'gdb --version' calls. Gentoo's build process has sandboxing which blocks this access and then as a result the build fails. Is it possible to skip this the /proc/pid/mem check for simple --version invocations? Thanks. --=20 You are receiving this mail because: You are on the CC list for the bug.=