public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/29907] New: gdb tries to open /proc/pid/mem even for --version
@ 2022-12-16  6:56 sam at gentoo dot org
  2022-12-16  6:57 ` [Bug gdb/29907] " sam at gentoo dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: sam at gentoo dot org @ 2022-12-16  6:56 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=29907

            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 gdb'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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-12-16 23:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-16  6:56 [Bug gdb/29907] New: gdb tries to open /proc/pid/mem even for --version sam at gentoo dot org
2022-12-16  6:57 ` [Bug gdb/29907] " sam at gentoo dot org
2022-12-16 12:32 ` pedro at palves dot net
2022-12-16 16:06 ` cvs-commit at gcc dot gnu.org
2022-12-16 16:14 ` pedro at palves dot net
2022-12-16 23:10 ` sam at gentoo dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).