public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "andres at anarazel dot de" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug corefiles/30126] New: Overly verbose "Can't open file [shared memory path] during file-backed mapping note processing" warnings Date: Wed, 15 Feb 2023 01:54:36 +0000 [thread overview] Message-ID: <bug-30126-4717@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=30126 Bug ID: 30126 Summary: Overly verbose "Can't open file [shared memory path] during file-backed mapping note processing" warnings Product: gdb Version: 13.1 Status: UNCONFIRMED Severity: normal Priority: P2 Component: corefiles Assignee: unassigned at sourceware dot org Reporter: andres at anarazel dot de Target Milestone: --- Hi, Whenever loading a core dump from postgres, I'm greeted by a series of warnings like this: warning: Can't open file /anon_hugepage (deleted) during file-backed mapping note processing warning: Can't open file /dev/shm/PostgreSQL.1150234652 during file-backed mapping note processing warning: Can't open file /dev/shm/PostgreSQL.535700290 during file-backed mapping note processing warning: Can't open file /SYSV604b7d00 (deleted) during file-backed mapping note processing Sometimes hundreds of such notes will be emitted, because of shorter lived shared memory allocations. None of those files will ever exist, and that's OK. Unfortunately the above warnings can't be quieted by any setting as far as I can see. From what I can tell the core dump unfortunately does not contain information that'd allow to distinguish the above automatically from other "real" files. So I don't really have a better idea than to quiesce those warnings than to do string prefix matching. Looks like there's already some code for this in gdb, in gdb/linux-tdep.c:mapping_is_anonymous_p, but it's not used for weeding out files during core dump load. Regards, Andres -- You are receiving this mail because: You are on the CC list for the bug.
reply other threads:[~2023-02-15 1:54 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-30126-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).